/ai-devkit:cmk:rustfrom ai-devkit
Applies idiomatic Rust practices inside a crate: error types, module boundaries, feature flags, lint/test wiring, and dependency hygiene. Use when the crate's role is already decided by the system design.
Ships in ai-devkit. 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.
Apply idiomatic Rust practices inside a crate or module boundary the system's design already decided — never the reverse. cmk:project-layout decides which role directory and which crate a piece of code belongs to (design-first, language-agnostic); this skill starts one level in, once that decision is made, and covers what makes the Rust inside that crate good: error types, module boundaries, feature flags, lint/format/test wiring, and dependency hygiene. A design that reshapes itself to fit a generic Rust template has the relationship backwards.
Init (default) — establish the five facets for a crate or workspace that doesn't have them decided yet: module convention, error-handling policy, feature-flag defaults, lint/test wiring, dependency hygiene.
Update — revise one facet (a new error-type family, a lint-strictness migration, adopting a policy scanner) without re-deciding the others.
Verify — report-only audit against the checks under ## Verify; never mutates.
references/module-boundaries.md.references/error-handling.md.cfgs, with the workspace-tested feature union kept honest mechanically. Read references/feature-flags.md.references/build-test-lint.md.references/dependency-hygiene.md.This skill teaches shapes and the decision points inside them — never a single mandated style to copy verbatim into every crate. Recognize and avoid: silent inconsistency (a policy choice — which error shape, whether unsafe_code is forbidden, which module-facade convention — made once, then drifting per-crate with no one deciding whether that's deliberate or accidental); redundant strictness layers (a lint enforced both by a source-level #![warn(...)]/#![deny(...)] attribute and by a CI flag, which can silently diverge — pick one layer to own it); template-first structure (importing a generic Rust project layout wholesale instead of letting the design's own boundaries decide module shape).
Projects own: which error-handling shape each crate uses and why; which crates forbid unsafe; the workspace's actual [workspace.dependencies] choices and version-pin rationale; MSRV and edition (cmk:toolchain owns the pin file itself); which dependency-hygiene tool, if any, is adopted.
Report-only — never mutate:
.unwrap()/.expect() carries a message stating the invariant that makes it safe, or is removed in favor of propagating the error.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkitOther plugins' skills for the same job
36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-instructionsUse when the user asks to "set up CLAUDE.md", "set up AGENTS.md", "agent instructions", "add engineering rules", "make the instructions thinner", or needs to establish or maintain a thin, multi-vendor root instruction file backed by on-demand engineering rules under docs/rules/./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents.