/ratchet-code:rust-authoringfrom ratchet-code
Use when writing or reviewing Rust code or tests, including a Node.js addon built on N-API, adding a cache, or running cargo build, test, or coverage jobs, especially from several agents or worktrees at once. Lay out Rust tests and caches, and run heavy cargo builds without exhausting a shared machine.
Ships in ratchet-code. 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.
Read every applicable AGENTS.md first. Repository-local policy overrides these defaults. For
lints and their settings, use static-code-analysis.
Keep tests in separate files, not in a #[cfg(test)] mod tests block at the bottom of the source
file. Use the crate's tests/ directory for tests of the public API, and a sibling file
(foo/tests.rs, declared with #[cfg(test)] mod tests;) for tests that need private items.
Source files stay short enough to read, and a change to a test does not show up as a change to
the code it tests.
Cache in memory for the length of one run. Do not persist a cache between runs unless the design calls for it and says how the cache is keyed, invalidated, and versioned. A persisted cache makes a result depend on what ran before, and a stale entry looks like a logic bug.
Every call from JavaScript into an addon crosses the N-API boundary, and that crossing costs more than most of the work inside a small function.
Buffers, not strings. A string is converted between JavaScript's encoding
and UTF-8 and copied on every crossing; a Buffer hands over the bytes.AsyncTask in
napi-rs) and return a promise. A synchronous call blocks the event loop for its whole length.A cargo build uses every core and several gigabytes per target directory.
--jobs or CARGO_BUILD_JOBS.target/ directory. Delete the target/ of a throwaway worktree or
temporary clone when the work is done; a few of them fill a disk.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jongleberry/ratchet-stack --plugin ratchet-code12 skills in this plugin
/interface-feedbackUse when writing or reviewing interface code that shows an action button, a toast or error message, or a form's submit, including a review of such a diff. Show only the actions the server allows this viewer and why one is blocked, render errors by code with their details, and check a submit's preconditions so it never succeeds partly in silence./lint-rule-authoringUse when writing or reviewing the code of a lint rule, analyzer, or codemod that walks a syntax tree, such as an ESLint or oxlint rule, a Clippy lint, or a custom AST check, including a request to "write a rule that bans X". Covers finding the rule's subject by what a name is bound to, reporting a name it cannot trace, and the fixtures that prove both./Other plugins' skills for the same job