skills/rust-web-services/SKILL.md
Implicit Rust web service skill. Use for Axum, Tokio, Tower, Hyper, REST APIs, middleware/layers, request extractors, typed errors, tracing, config, graceful shutdown, SQLx, background jobs, service tests, and production Rust HTTP architecture.
npx skillsauth add bjornmelin/dev-skills rust-web-servicesInstall 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.
Build Rust HTTP services with explicit state, typed boundaries, observable behavior, and production-grade runtime contracts.
axum plus tower layers for new HTTP services unless the repo already standardizes on another framework.references/axum-tower-architecture.md for router structure, state, extractors, middleware, errors, and versioned APIs.references/runtime-config-data.md for Tokio runtime concerns, config, database access, background jobs, and graceful shutdown.references/testing-observability.md for integration tests, tracing, metrics, contract tests, and production readiness.tokio with only required features unless the repo uses full feature sets consistently.serde DTOs at HTTP boundaries and domain types internally.thiserror for domain errors and typed response mapping at the HTTP edge.tracing/tracing-subscriber with structured spans and request IDs.sqlx for database-backed services when compile-time query checking and async pooling are useful.For service changes:
cargo fmt --all --check
cargo test --all-targets
cargo clippy --all-targets --all-features -- -D warnings
Add integration tests for new routes, error status mapping, auth/authorization branches, config parsing, database behavior, and graceful shutdown or background work when touched.
development
Pre-PR multi-model review, parallel opus and codex exec adversarial lanes, then adversarial verification of merged findings. Read-only. Use before shipping nontrivial diffs.
tools
Independent gpt-5.6 diff review via the Codex CLI, normal or steerable adversarial with JSON findings. Use before shipping nontrivial changes.
development
Delegate implementation, investigation, or bulk work to gpt-5.6 codex via pinned codex exec. Use for clear-spec builds, migrations, debugging, or any task MODELS.md routes to codex.
development
Adversarial pre-mortem: imagine the plan failed, work backwards to surface risky assumptions + irreversible bets, then harden them. Proactively offer it (after the current request; confirm first) before a hard-to-reverse or one-way-door call (API, schema, framework, a hire), an all-upside plan, or unvalidated assumptions. Also on request.