/dev-tools:rust-stylefrom dev-tools
Agent IX Rust conventions for every Rust coding and review task. Load this baseline even when the repository has additional Rust guidance; read the linked API, implementation, safety, boundary, testing, and Tokio references for the work at hand.
Ships in dev-tools. 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.
If this plugin is not initialized or an Agent IX command fails, read the dev-tools setup guide for its prerequisites and local diagnosis.
Load this skill before designing, writing, or reviewing Rust. These are Agent IX
defaults for Rust code, not instructions for a particular repository. Read
AGENTS.md, CLAUDE.md, a repository Rust skill, and its lint and formatter
configuration too. More specific repository instructions take precedence. A
documented rule remains authoritative even if existing code violates it. Treat
the rule as superseded only when a newer explicit project authority changes it;
report the conflict when those authorities disagree.
&str, &Path, &[T], or &T where possible.
Prefer unique ownership and borrowing over unnecessary deep clones or shared
ownership. Use identity newtypes when two IDs could be confused.Option for genuine absence, Result for recoverable failures, and a
distinct typed condition for each failure a caller must distinguish. Each
crate that surfaces errors uses a stable Copy code enum and a thiserror
envelope; never branch on human-readable error text.pub item, avoid accidental
visibility, use standard traits when they fit, and consider compatibility
before exposing enum variants, struct fields, or a const fn.for loop according to which makes the behavior clearer.unwrap, indexing, slicing, or arithmetic panics. An invariant
panic is only appropriate when the repository permits it and the invariant
is explicit. Prefer pattern matching to check-then-unwrap.#![forbid(unsafe_code)] and workspace safety lints. An allowed
unsafe operation requires a SAFETY: comment, an explanation of why safe
code is insufficient, and an audit of the surrounding abstraction.as cast./// Trace: or its
declared trace attribute; do not hand-edit a Test Matrix. Use the
repository's required gates and license header.#[implements("...")], so tools can find its
tests and the other code that implements the same criterion.These rules describe code and review decisions. Enforceable gates such as Clippy, cargo-deny, and unsafe audits belong in the repository's CI and lint configuration; follow that configuration when it is stricter.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agent-ix/dev-tools --plugin dev-tools15 skills in this plugin
/audit-commentsAudit comments in a repository or bounded code section, remove tautologies and stale notes, convert decision records to ADRs, file issues for hack-enabling excuses, and add a ratcheting lint rule. Use when asked to audit or delete code comments./backport-codeA skill for systematically backporting bug fixes and features across specs, templates, and downstream repositories./code-reviewReview code for Agent-IX Golden Path compliance, focusing on test style, mock boundaries, implementation gaps, and code-test alignment. Dispatches by language — Python inline, Rust via `rust-review`, React via `review-react`.Other plugins' skills for the same job