packages/sc-rust/skills/rust-service-hardening/SKILL.md
Harden Rust backend services for production readiness. Use when working on Tokio, Axum, Hyper, Tonic, or Reqwest-based services and you need guidance or review for config validation, structured tracing, request IDs, timeouts, retries, graceful shutdown, backpressure, body limits, health checks, metrics, and dependency hygiene. Not for non-service Rust crates, embedded Rust, pure sync CLI tools, or low-level libraries without runtime, network, or server concerns.
npx skillsauth add randlee/synaptic-canvas rust-service-hardeningInstall 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.
This skill focuses on runtime behavior and service operability. Use it when the main question is "is this Rust service safe to run under load and during deploys?" rather than "is this Rust code idiomatic?"
Use this skill for Rust services that handle network traffic, async workloads, request lifecycles, or deployment/runtime concerns.
Best fit:
Do not use this skill for:
Prefer this skill when the user mentions:
Prefer other Rust skills when the task is mostly about:
rust-developmentrust-best-practicesApply checks in this order and stop early only if the higher-priority gaps make the rest of the review misleading.
spawn_blocking for blocking or CPU-heavy workreferences/production-checklist.md — primary review checklist and evidence to look forreferences/framework-notes.md — framework-specific notes for Tokio, Axum/Hyper, Tonic, and ReqwestRead production-checklist.md first. Read framework-notes.md only for the frameworks that actually appear in the codebase or task.
Use these existing sc-rust agents for service-hardening workflows:
| Operation | Agent | Returns |
|-----------|-------|---------|
| Dedicated service-hardening review | rust-service-hardening-agent | Fenced JSON {success,data,error} findings or a structured skipped result when service indicators are absent |
| Design review or rollout hardening plan | rust-architect | Fenced JSON {success,data,error} architecture blueprint or hardening plan |
| Sprint review or diff-scoped service-hardening review | rust-code-reviewer | Fenced JSON {success,data,error} findings limited to applicable service-hardening topics |
| Codebase tracing before review | rust-code-explorer | Fenced JSON {success,data,error} codepath map for startup, request handling, clients, queues, and shutdown behavior |
| Validation pass after changes | rust-qa-agent | Fenced JSON {success,data,error} QA report covering tests, quality gates, and broader validation after hardening work |
Invoke these agents via Agent Runner using .claude/agents/registry.yaml, and keep the prompt focused on service-hardening concerns rather than general Rust style issues.
Dedicated rust-service-hardening-agent assignment template:
{
"review_mode": "doc_review | sprint_review | phase_end",
"worktree_path": "/absolute/path/to/worktree",
"review_targets": [
"src/",
"Cargo.toml"
],
"topics": [
"config_validation",
"timeouts",
"graceful_shutdown"
],
"service_indicator_dependencies": [
"tokio",
"axum",
"hyper",
"tonic",
"warp",
"actix-web",
"reqwest"
],
"notes": "optional context"
}
Use this mode when reviewing a plan, service design, or rollout readiness:
references/production-checklist.mdreferences/framework-notes.mdrust-architect when the user wants architecture advice, a rollout hardening plan, or a gap analysis before code changesUse this mode for review of recent changes or a narrow file set:
references/production-checklist.mdrust-service-hardening-agent for dedicated runtime-hardening reviewrust-code-reviewer only when the request is a broader Rust review that should include service-hardening concernsIf the service boundaries are unclear, use rust-code-explorer first to locate:
Use rust-qa-agent when the user wants a QA run after hardening changes or asks for broader validation beyond review guidance.
Suggested rust-qa-agent assignment:
{
"worktree_path": "/absolute/path/to/worktree",
"review_mode": "sprint_review | phase_end",
"review_targets": [
"src/",
"Cargo.toml"
],
"run_checks": {
"fmt": true,
"clippy": true,
"tests": true,
"coverage": false
},
"baseline_ref": "optional git ref",
"artifact_regeneration_required": false,
"artifact_commands": "",
"notes": "optional context"
}
rust-development handles broad Rust implementation standards.rust-best-practices handles structural Rust design patterns.rust-service-hardening handles runtime, resilience, and service-operability defaults.These skills complement each other, but this skill should win when the main concern is operating a Rust service safely in production.
tools
Set up a repo-local just task runner with a root Justfile, optional .just/ helper scripts, and curated help, build, fmt, lint, test, and ci recipes. Use when a repo needs just, a Justfile, .just helpers, or when the user mentions task automation, "just build", "just lint", "just fmt", or dropping in a just system.
tools
Convert PDF documents to markdown, extract images and tables using the docling CLI. Use when asked to convert a PDF, extract a datasheet, get images from a PDF, or process any document into structured output. Triggers: 'convert pdf', 'pdf to markdown', 'extract images from pdf', 'datasheet', 'get tables from pdf', 'extract diagrams'. No MCP required — uses docling CLI only.
development
Use when another workflow must launch Claude, Codex, or Gemini as a separate background sub-agent without opening a terminal. Spawns the `launchpad` agent with fenced JSON input and `run_in_background: true`.
testing
Run repo startup: prompt load, checklist sync, optional PR triage, worktree hygiene, and CI pull. Best-effort with structured status.