skills/WebDevelopment/SKILL.md
Server-rendered web dashboards and apps in Rust using axum + htmx + Askama + rust-embed. USE WHEN building a web dashboard, adding a web UI to a CLI tool, server-rendered HTML, htmx partials, Askama templates, axum routes, embedded static assets, localhost webserver.
npx skillsauth add n4m3z/forge-dev WebDevelopmentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Server-rendered web applications in Rust. Single binary, no client-side framework, no build step.
| Layer | Tool | Role | |---|---|---| | Server | axum | HTTP routing, middleware, shared state | | Templates | Askama | Compile-time HTML templates (Jinja2 syntax) | | Interactivity | htmx | HTML-attribute-driven partial page updates | | Static assets | rust-embed | Compile CSS/JS into the binary |
spawn_blocking.127.0.0.1 only, random ephemeral port. Validate Host header to block DNS rebinding.HX-Request header.hx-swap strategy per UI intention. Avoid replacing large containers unnecessarily.| Topic | File |
|---|---|
| htmx attributes, swap modes, patterns, anti-patterns | Htmx.md |
| Askama template syntax, compile-time gotchas | Askama.md |
| axum routes, rust-embed handler, security | Axum.md |
| Dark dashboard CSS patterns | VercelStyle.md |
.get() on BTreeMap directly. Add helper methods on view-model structs.tools
Architecture for security and health-check programs: standalone-runnable checks, severity ladder with UNKNOWN, key:value output contract, orchestrator dispatch, exit-code semantics. Language-agnostic; reference implementations in Bash, applies to Python and other languages. USE WHEN writing health checks or audit tools, designing check-script contracts, adding checks to tools like check-mac, reviewing health-check architecture, or porting a check tool between languages.
testing
Scan a dotfiles tree for secrets via gitleaks, aggregate findings by top-level directory and rule, then surgically filter flagged lines from shell-history files before importing into atuin. USE WHEN auditing dotfiles before pushing to a public repo, scanning rsynced dotfiles-private contents, importing legacy zsh or bash history into atuin, filtering credential leaks out of a shell history file, deciding which dotfile subdirectories can be made public.
development
Test-driven development practices — Red-Green-Refactor cycle, test categories, coverage strategy, property-based testing. USE WHEN writing tests, designing testable APIs, or reviewing test coverage.
development
Four-phase debugging methodology — root cause before fixes. USE WHEN encountering any bug, test failure, unexpected behavior, or build failure.