From programming
Idiomatic Rust development. Use when writing Rust code, Cargo crates/workspaces, Rust tests, or rustfmt/clippy/cargo workflows. Emphasizes ownership, Result errors, small APIs, stdlib-first dependencies, fast cargo feedback, and behavior tests. NOT for Go, Python, TypeScript, shell scripts, or infra-only work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/programming:writing-rustengineerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use only for Rust crates and Cargo workspaces. Follow the crate's edition, MSRV,
Use only for Rust crates and Cargo workspaces. Follow the crate's edition, MSRV,
toolchain file, CI, and local style. Rust CLI development (clap, argument
parsing, subcommands) is in scope; apply patterns.md and testing.md — there
is no dedicated CLI reference.
Read principles.md before writing, changing, or reviewing Rust code. Read conditional references only when the change touches that area.
/// or //! rustdoc for public APIs when users need contracts, edge cases, examples, or safety notes.unsafe blocks.Cargo.toml, Cargo.lock, rust-toolchain.toml, CI, and nearby code before using edition- or version-specific APIs.package.rust-version or the pinned toolchain unless the task is an upgrade.edition = "2024".--all-features assumptions in code unless incompatible feature combinations are ruled out.Run focused Cargo checks while editing, then the project-configured build, tests, format, and lint before final output. Prefer:
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test --all-targets
Use cargo nextest run when the project already uses nextest. Run cargo test --doc separately when doctests matter because nextest does not run doctests.
If a check is unavailable, state that and run the closest configured gate. If a check fails, quote the failure, diagnose the cause, fix one issue, and rerun the relevant check.
Cargo.toml before choosing files, package names, or commands.unsafe needed: isolate it, document the safety invariant, and add focused tests or run configured Miri checks.Include:
npx claudepluginhub alexei-led/cc-thingz --plugin programmingGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.