/dd:rust:reviewfrom dd:rust
Runs cargo fmt, clippy, and tests, then reviews Rust changes against convention skills for types, error handling, testing, performance, linting, and serde. Generates a structured report with severity-graded issues and a mandatory comment-budget pass.
Ships in dd:rust. 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.
Comprehensive Rust review via automated checks and manual inspection against all Rust conventions. This skill is invoked explicitly (/dd:rust:review), not auto-triggered.
Run these first. Stop and report failures before manual review.
cargo fmt --all --check # formatting
cargo clippy --workspace --all-targets -- -D warnings # lints
cargo test # tests
If any check fails, report the failure and fix it before continuing.
git diff HEAD~1 --name-only -- '*.rs' # for commits
git diff main...HEAD --name-only -- '*.rs' # for PRs
Before reviewing, invoke each of these with the Skill tool to load the full criteria:
dd:rust:core — types, error handling, ownership, async, layout, comments, style, namingdd:rust:testing — unit/integration tests, mocking, async testsdd:rust:performance — iterators, release profiles, inlining, bounds checksdd:rust:linting — workspace lints, clippy enforcement, formattingdd:rust:serde — serde attributes, snake_case defaults, enum representationsReview each changed .rs file against ALL criteria from the skills loaded in Step 3: error handling, ownership, async, type safety, naming, structure, comment and doc-comment budget (Step 5 — its own pass), testing, performance, linting.
For each issue record:
Comment bloat is the convention a diff breaks most often and the one a reviewer most often lets through: it compiles, clippy is silent, and it reads as thoroughness. So it gets its own pass, and the report answers it for every changed file — including the ones that are within budget.
Locate the candidates, then judge them:
# every doc line with a line number — consecutive numbers = a multi-line run
grep -nE '^[[:space:]]*(///|//!)' <file>
# sections that restate the signature
grep -nE '# (Arguments|Returns)' <file>
Read each run against the Comments budget in dd:rust:core — //! 1 line, /// 1 line, // 1–3 — and flag:
//! header past one line, or one narrating other modules;/// past one line whose extra text records no real invariant, precondition, or rationale — rationale that merely sounds insightful is still a poem;// that restates what the code does, rather than a non-obvious why;# Arguments / # Returns sections. (# Errors / # Panics / # Safety stay when the behavior is non-obvious.)Grade these HIGH — comment bloat blocks the merge, it does not warn. Being cosmetic is why it survives review; treating it as cosmetic is the failure this pass exists to stop.
Every fix collapses, never deletes: a public item stripped to no doc breaks the missing_docs gate. One line that says what the name doesn't.
Output the review using the exact structure in references/report-template.md (files table, static-analysis table, comment-budget table, issues grouped by severity with blockquotes, summary table, and recommendation).
| Decision | Condition |
|---|---|
| Approve | No CRITICAL or HIGH issues, comment budget clean |
| Warning | Only MEDIUM issues — merge with caution |
| Block | Any CRITICAL or HIGH issues, incl. comment overruns |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub napalmpapalam/skills --plugin rust6 skills in this plugin
/coreThe Rust conventions that apply to almost every edit — type design, error handling, ownership, async/tokio, module layout, comments and doc comments, code style, and naming. Use whenever writing, changing, or reviewing Rust code, designing types or error enums, dealing with borrows and lifetimes, writing async/tokio code, organizing modules or workspaces, choosing visibility, writing or shortening comments, doc comments, and module headers, refactoring functions to be shorter or flatter, naming anything, or when the user asks about idiomatic Rust. This is the default Rust skill — load it first; reach for serde, testing, linting, or performance on top of it when the task calls for them./lintingRust workspace lint configuration, clippy enforcement, and formatting rules. Use whenever setting up or modifying Cargo.toml lint configuration, configuring clippy or rustfmt, adding CI checks for Rust, or when the user asks about lint rules, formatting settings, or workspace-level lint inheritance./performanceRust performance — iterators, release profiles, inlining, cache layout, bounds checks, allocation profiling. Use whenever optimizing Rust code, choosing between iterators and loops, configuring release profiles, adding inline hints, profiling allocations, or when the user asks about performance patterns, benchmarking, or hot-path optimization in Rust./serdeRust serde serialization — derive patterns, snake_case defaults, enum representations, attributes, zero-copy deserialization. Use whenever working with serde in Rust, adding Serialize/Deserialize derives, configuring JSON/YAML/TOML serialization, handling optional fields, choosing enum representations, or when the user asks about serde attributes, custom serializers, or data format conversion in Rust./testingRust testing — unit/integration layout, mocking with mockall, async test patterns, property testing, snapshot testing. Use whenever writing or reviewing Rust tests, setting up test infrastructure, choosing mocking strategies, organizing test modules, debugging test failures, or when the user asks about testing patterns, coverage, or test utilities in Rust projects.