rust-coder
Skill0 starsChanged 4 days agoApache-2.0View on GitHub
Use when writing or changing Rust code within the task's API, ownership, and technical constraints.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- noverwork/noverdbeetheir own version, first seen Nov 22, 2026
- noverwork/novertermtheir own version, first seen Nov 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- noverwork/noverterm★ 4same name
- noverwork/noverdbee★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rust-debuggingSkill
- rust-dependenciesSkill
- rust-errorsSkill
- rust-idiomaticSkill
- rust-performanceSkill
- rust-securitySkill
- rust-structural-qualitySkill
- rust-testingSkill
- rust-verificationSkill
- thermo-nuclear-code-quality-reviewSkill
- rust-modern-guidelinesSkill
The file
Files
Rust Coder
Execution. Establish the observable result, its invariants, and distinguishable effect outcomes first, then choose representations and operations that make those facts visible. Resolve precedence up front whenever multiple rules apply to the same input or transition.
Boundary completion. Read the affected owner and its callers against accepted behavior, treating existing code as convention rather than proof that a current defect must stay. Locate the owning crate and module from the workspace structure in AGENTS.md (core engine, CLI passes, xtask, or catalog/), and complete the full operation through its boundary and failure path.
Existing guarantees and delegation. Lean on invariants the representation already enforces—ordering, uniqueness, contiguous storage, or &mut exclusivity—before adding manual coordination. Before writing a non-domain helper, guard, wrapper, formatter, encoder, or trait impl around std or imported types, inspect the pinned std surface and resolved crate modules and features in Cargo.lock source. Delegate generic framing, encoding, cleanup, or synchronization to an owner with matching inputs, failure precedence, cancellation/drop timing, time precision, and bytes while keeping domain policy local; consult rust-dependencies when enabling features, adding crates, or documenting a boundary divergence in a comment, and preserve fixed public APIs or std-only constraints.
Control flow. Keep the main transformation, mutation boundary, and error paths flat and direct: favor flat match arms and early precondition returns, group related parameters into named values when that clarifies meaning, and add type annotations where inference hides an important boundary. Consult rust-structural-quality when weighing helper extraction, method receivers, or staging/rollback containers.
Data flow. Return newly computed values by default, taking &mut caller storage when in-place update or buffer reuse is the contract. Iterate at the decision's natural unit—item, window, run, or batch—streaming directly where slice materialization adds only allocation, and separate pure decisions from I/O when that yields a cleaner contract within the existing layer.
Simpler alternatives and races. Compare the central design choice against the strongest simpler representation satisfying the same contract, keeping only structure that enforces an invariant or cost bound. When an external or destructive effect depends on an earlier check, identify the lock, transaction, or conditional write that keeps the observation valid through execution, preserving failure order, ownership transfer, and completion obligations.
Verification. Match repository naming, lint, and comment policies, documenting only preconditions, effects, failures, or lifetimes beyond the signature and updating touched comments. Pair changes with independent behavioral expectations, watching bug reproducers fail at runtime for the reported cause and verifying that final edited code executes and passes the targeted tests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

