/rust-toolkit:explainfrom rust-toolkit
This skill should be used when the user asks to "explain a clippy lint", "what does <lint-name> mean", "explain clippy::<lint>", or wants the official rationale and example code for a specific clippy lint rule.
Ships in rust-toolkit. 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.
None: SKILL.md is the whole skill.
Explain a clippy lint rule.
If the user provided a lint name (e.g. needless_return, redundant_closure, clippy::unwrap_used), run:
cargo clippy --explain <lint_name>
Strip the clippy:: prefix if present — the explain command expects just the lint name.
Display the full output: what the lint catches, why it matters, and example code.
If no lint name is provided, run clippy on the current directory to show active warnings:
cargo clippy -- -W clippy::all 2>&1
Then offer to explain any of the reported lints.
If the user provides multiple lint names, explain each one sequentially.
This skill is forward-looking: the canonical triage procedure lives in skills/diagnostic-review/SKILL.md and is invoked via Skill(skill: "rust-toolkit:diagnostic-review") with pass: explain CODE. Per-pass invocation wiring lands in a later chore (per the Path B cut-scope decision); for now the skill body above inlines the procedure that matches the legacy /explain command behavior.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ramda-dev/lang-toolkits --plugin rust-toolkit8 skills in this plugin
/checkThis skill should be used when the user asks to "run cargo check", "check for compile errors", "see if this compiles", "verify the rust build", or wants a fast compile-only verification of a Rust project without producing binaries./clippyThis skill should be used when the user asks to "run clippy", "lint with clippy", "show clippy warnings", "fix clippy lints", or "run cargo clippy", or when the user wants a Rust lint pass with the full clippy ruleset enabled./configureThis skill should be used when the user asks to "configure clippy", "configure rustfmt", "set up rust tools", "scaffold rust-analyzer config", "configure rust-toolkit", or wants to create or update `clippy.toml`, `rustfmt.toml`, `.rust-analyzer.json`, or related Rust tool configuration files with sensible defaults./diagnostic-reviewThis skill should be used when the user asks to "review diagnostics", "check code quality", "show clippy warnings", "explain this clippy lint", "show lint violations", or "explain this error", or when clippy/rustc diagnostic output appears in a tool result without an explicit user request. Provides structured diagnostic triage with severity bucketing, AST-scoped fix suggestions, and noise-suppression integration for the rust-toolkit's clippy and rustc passes./infoThis skill should be used when the user asks to "show rust project info", "check rust toolchain", "what's my rust setup", or wants a summary of the rust toolchain status, installed components, and detected Cargo project metadata./rust-toolkitUse when you see clippy warnings, cargo compile errors, or rust-analyzer diagnostics in terminal or editor output. Also use when the user asks about project or toolchain status, lint configuration, or wants to understand a specific clippy lint.