/prometheus-rust-skills:prometheus-rust-auditor [phase] [--config path] [--format text|json|sarif] [--verbose]from prometheus-rust-skills
Staged autonomous Rust code quality remediation pipeline for Prometheus AGS projects. Runs Clippy enforcement, formatting checks, dependency policy, workspace inventory, partition-based architectural invariant audits, and CI generation. Use when auditing a Rust workspace, remediating code quality issues, or generating CI workflows.
Ships in prometheus-rust-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Staged autonomous Rust code quality remediation pipeline.
.github/workflows/rust-audit.yml CI workflowInstall the binary and optional tools:
bash scripts/install-tools.sh
Run the full audit pipeline:
prometheus-rust-auditor audit
Run a specific phase:
prometheus-rust-auditor enforce # Phase 1: Clippy
prometheus-rust-auditor format # Phase 2: cargo fmt check
prometheus-rust-auditor deps # Phase 3: cargo-deny + cargo-audit
prometheus-rust-auditor inventory # Phase 4: workspace crate map
prometheus-rust-auditor partition # Phase 5: architectural invariants
prometheus-rust-auditor ci # Phase 10: generate CI workflow
prometheus-rust-auditor autonomous # Phases 6-9: AI audit loop (stub)
Create prometheus-auditor.toml in your workspace root (optional — built-in defaults work out of the box):
[workspace]
path = "."
partitions = [
{ name = "actor", crates = ["*-actor", "*-supervisor"] },
{ name = "mcp", crates = ["*-mcp", "*-protocol"] },
{ name = "wasm", crates = ["*-wasm", "*-wasmtime"] },
{ name = "persistence", crates = ["*-store", "*-db"] },
{ name = "runtime", crates = ["scheduler", "orchestration"] },
{ name = "networking", crates = ["*-sync", "*-webrtc"] },
]
[invariants]
actor_no_shared_mutable_state = true
wasm_unsafe_confined = true
async_cancellation_safe = true
zero_copy_preference = true
no_platform_coupling = true
[clippy]
workspace_lints = true
pedantic = "warn"
nursery = "warn"
cargo = "warn"
unwrap_used = "deny"
expect_used = "warn"
panic = "deny"
redundant_clone = "deny"
await_holding_lock = "deny"
Global options (--format, --verbose, --config) come before the subcommand:
# Human-readable (default)
prometheus-rust-auditor --format text audit
# Machine-readable JSON
prometheus-rust-auditor --format json audit
# SARIF 2.1 (for GitHub Code Scanning)
prometheus-rust-auditor --format sarif audit
# Verbose inventory
prometheus-rust-auditor --verbose inventory
| Code | Meaning |
|---|---|
| 0 | Clean — no findings |
| 1 | Findings present |
| 2 | Tool/config error |
| Phase | Command | Tool | Description |
|---|---|---|---|
| 1 | enforce | cargo clippy | Lint enforcement |
| 2 | format | cargo fmt | Style check |
| 3 | deps | cargo-deny, cargo-audit | Dep policy + CVE scan |
| 4 | inventory | cargo metadata | Workspace crate map |
| 5 | partition | (config-driven) | Invariant stubs by partition |
| 6–9 | autonomous | claude --headless | AI invariant + unsafe audit |
| 10 | ci | (built-in) | GitHub Actions workflow gen |
When the user asks to audit a Rust workspace:
prometheus-auditor.toml exists; if not, offer to create one from defaultsprometheus-rust-auditor audit --format json and capture outputHigh findings, propose specific fixes with code snippetsInfo findings, summarize without blockingWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-rust-skills13 skills in this plugin
/actor-modelTokio-native actor model pattern for Prometheus AGS projects. Implements actors as tokio tasks communicating via mpsc channels with a typed message enum, enabling safe concurrent state management without shared locks. Used in UAR session management, pk-librarian event broadcasting, and parking-lot scheduler design. Use when a component needs to own state exclusively while serving concurrent callers.
/async-patternsCanonical async Rust patterns for Prometheus AGS projects. Covers tokio task spawning, Arc<RwLock<T>> vs parking_lot::Mutex selection, blocking guard prevention, broadcast channels, graceful shutdown, and structured concurrency. Use whenever writing async code in any Prometheus Fabric crate.
/axum-patternsAxum 0.8 router, middleware, extractor, and state injection patterns for Prometheus AGS projects. Enforces the canonical Axum structure: typed state via Extension/State extractors, Tower middleware composition, structured error types, and Axum-native SSE for MCP servers. Use when building any Axum HTTP service, MCP server, or API gateway in the Prometheus stack.
/error-handlingCanonical Rust error handling for Prometheus AGS projects. Enforces the thiserror/anyhow boundary: thiserror for library crate errors (typed, composable), anyhow for application code (ergonomic, context-rich). Includes #[cold] error path annotation, no unwrap/expect in non-test code, and structured error propagation via the ? operator.
/karpathy-tokenizerTrain GPT-style BPE tokenizers with rustbpe (Karpathy), export to tiktoken for fast Rust inference, and integrate with agent-tokenizer for prompt-budget enforcement./mcp-serverCanonical Axum MCP server pattern for Prometheus AGS projects. Implements the MCP protocol as JSON-RPC 2.0 over HTTP POST /mcp with optional SSE event stream at GET /events. Covers tool registration, handler dispatch, SSE fan-out via broadcast, and stdio transport for Claude Desktop integration. Use when building any new MCP-enabled service in the Prometheus stack.
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026