/whetstone:ia-rust-systemsfrom whetstone
Rust patterns for CLI tools, backend services, and application code. Covers Cargo workspaces, axum/tokio services, clap CLIs, async concurrency, and tooling config (clippy, rustfmt, cargo-nextest).
Ships in whetstone. 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.
Covers modern application-layer Rust (edition 2024): CLIs, web services, libraries. Not no_std/embedded.
unsafe. If clippy flags it, don't #[allow] it; refactor. The #[expect] escape hatch below does not apply here; unsafe findings get fixed, not annotated.unsafe block gets a // SAFETY: comment naming the operation, the contract clause it discharges, and the code (types, bounds, a dominating check) that enforces each premise. Review the code first and the comment second: a comment asserting a property of a caller-supplied argument that no code checks makes the enclosing safe function unsound.len()/size_hint(), Ord, Eq, Hash, Clone, Deref, Drop, closures, and callbacks may return any type-correct value, panic, or reenter. Check capacity and bounds before each write, call set_len only for elements actually initialized, and restore invariants (or hold a guard) before any call into caller code.unsafe blocks minimal: wrap in a safe abstraction at module boundary, mark the module pub(crate).miri (cargo +nightly miri test) on any crate containing unsafe or raw pointer arithmetic; a clean run is evidence for the paths the tests execute, not a proof premise.bytemuck, zerocopy, bytes over hand-rolled transmutes for zero-copy patterns.unsafe in edition 2024. Write them only in main, before the runtime starts or any thread spawns. Concurrent getenv is UB; OnceLock does not make it safe. Watch for lazy LD_LIBRARY_PATH-style writes on first use; hoist them to startup.unsafe (raw parts to references, transmute, sealed-trait reliance, FFI), read unsafe-review.md and give every unsafe site a recorded disposition before concluding.#[allow(clippy::...)] as a shortcut; fix the underlying issue. When a suppression is genuinely warranted, write #[expect(clippy::lint_name, reason = "...")] instead: expect warns once the lint stops firing, so a suppression that has outlived its cause reports itself, where allow rots silently forever. (expect needs Rust 1.81+; edition 2024 clears that floor.)bool::then_some(x) takes x by value: the argument is computed before the bool is consulted, so a guard written as a condition plus a fixed-width slice panics on exactly the inputs the condition was checking for: (b.len() >= 19 && b[4] == b'-').then_some(&v[..19]) panics on any shorter value, exiting 101 inside the one function written to report the case as undetermined. Use then(|| …), which is lazy. Clippy does not flag the difference. Grep then_some( for an argument that indexes, slices, unwraps, or allocates. Related: a fixed-width slice is not a parse. &v[..19] also panics mid-character on non-ASCII, and comparing two such prefixes lexicographically drops the timezone offset, so 01:00+02:00 sorts after 00:00Z while being an hour earlier. Parse and normalize, or reject.cargo fmt --all -- --check passes with zero diffscargo clippy --workspace --all-targets --all-features -- -D warnings passescargo nextest run --workspace (or cargo test --workspace) passes with zero failurescargo test --doc --workspace also passes; nextest does not run doctestscargo deny check passes (licenses, advisories, duplicates) for any crate going to productionunsafe has each // SAFETY: premise enforced in code or by a caller # Safety contractRead the relevant reference before implementing or reviewing the matching behavior:
unsafe blocks, raw-parts references, transmute, sealed-trait reliance, or FFI wrappers: unsafe-review.md.Existing specialized references, when the corresponding topic applies:
SPEC.md (opens in a new tab)references/applications-and-testing.md (opens in a new tab)references/axum-service.md (opens in a new tab)references/build-profiles.md (opens in a new tab)references/ci-pipeline.md (opens in a new tab)references/cli-tools.md (opens in a new tab)references/macros-and-os-boundaries.md (opens in a new tab)references/observability.md (opens in a new tab)references/ownership-and-execution.md (opens in a new tab)references/performance.md (opens in a new tab)references/production-resilience.md (opens in a new tab)references/rustdoc.md (opens in a new tab)references/toolchain-and-interfaces.md (opens in a new tab)references/unsafe-review.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub iliaal/whetstone --plugin whetstone29 skills in this plugin
/ia-agent-native-architectureDesign agent-native applications where agents replace UI users as the primary actor. Use when designing MCP tools, agent-loop architectures, system prompt design, hooks policy, shared-workspace file patterns, or self-modifying agent systems./ia-brainstormingPre-implementation exploration: deep interview, approach comparison, design doc. Use when exploring a vague feature idea, clarifying ambiguous requirements, or comparing approaches before coding. For the full workflow, use the ia-brainstorm command (Claude Code)./ia-code-reviewStructured code reviews with severity-ranked findings and deep multi-agent mode. Use when performing a code review, auditing code quality, or critiquing PRs, MRs, or diffs, including a diff or patch pasted inline, even when the review looks quick from reading it. For the full multi-agent workflow, use the ia-review command (/ia-review in Claude Code)./ia-cpp-systemsModern C++ patterns: RAII and ownership, rule of zero/five, exceptions and error handling, API and ABI boundaries, templates, and CMake tooling. Use when writing, reviewing, refactoring, or debugging C++, working with smart pointers, move semantics, memory leaks, template errors, or gtest. For plain C, see ia-c-systems./ia-c-systemsC patterns for systems code, libraries, and native extensions: module layout, function decomposition, status-enum errors, memory safety, undefined behavior, and performance measurement. Use when writing, reviewing, refactoring, or debugging C, working with malloc lifetimes, buffer overflows, sanitizers, or Valgrind, or building native extensions. For C++, see ia-cpp-systems./ia-debuggingSystematic root-cause debugging with verification. Use for errors, stack traces, broken tests, flaky tests, regressions, or anything not working as expected, including a pasted stack trace or failing test whose cause looks obvious from reading it. For validating bug reports before fixing, use bug-reproduction-validator agent.Other plugins' skills for the same job