rust-skills
Skill346 starsChanged 7 days agoApache-2.0View on GitHub
Apply idiomatic Rust ownership, typed API design, serde, error handling, async, numeric safety, and lint guidance when implementing, refactoring, or reviewing Rust in agentic-api. Includes a focused set of rules selected for this gateway.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- vinhnx/VTCodetheir own version, first seen Nov 1, 2026
- vinhnx/vtcodetheir own version, first seen Nov 1, 2026
- nurmdrafi/pi-nativetheir own version, first seen Oct 25, 2026
- prdlk/skillstheir own version, first seen Oct 11, 2026
- RustNSparks/sockudotheir own version, first seen Oct 8, 2026
- noh-rs/nohrstheir own version, first seen Oct 8, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- JMBeresford/retrom★ 2.1ksame name
- vinhnx/vtcode★ 903same name
- vinhnx/VTCode★ 903same name
- RustNSparks/sockudo★ 843same name
- sockudo/sockudo★ 843same name
- leonardomso/rust-skills★ 506same name
- noh-rs/nohrs★ 156same name
- launchapp-dev/animus-cli★ 39same name
- chasebuild/fuelcheck-cli★ 15same name
- keyline-dev/keyline★ 6same name
5 more not listed
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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agentic-api-engineeringSkill
- executor-architecture-reviewSkill
- pr-reviewSkill
- storage-schema-changeSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Read root AGENTS.md, Cargo.toml, and clippy.toml.
- Very specific: line 25
Keep unsafe_code = "forbid".
- Very specific: line 26
Put use imports at the top of the file.
- Distinctive: line 29
Use the repository's MSRV, edition, dependency versions, and deployment targets.
- Distinctive: line 31
Search existing types, methods, traits, conversions, and callers before introducing another implementation.
- Distinctive: line 35
Prefer derived serde and existing conversions.
- Distinctive: line 58
Check design choices against the relevant Rust Cookbook recipe and Rust API Guidelines.
- Very specific: line 73
Keep this selection focused on demonstrated needs in agentic-api.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rust design for agentic-api
Apply this skill with the shared engineering workflow. If that preparation is already complete, continue from it; do not restart discovery. This skill supplies Rust design guidance, while the engineering workflow owns architecture discovery, provider parity, recorder usage, and verification.
Repository constraints come first
Read root AGENTS.md, Cargo.toml, and clippy.toml. The bundled upstream rules are general reference material;
the following agentic-api requirements take precedence over conflicting examples or recommendations:
- Fix Clippy warnings at their cause. Do not add
allow/expectattributes or weaken lint configuration to pass checks. Use the workspace lint configuration; do not add per-crate overrides to bypass it. - Keep
unsafe_code = "forbid"; do not relax the workspace policy. - Put
useimports at the top of the file. Use imported names in implementation code instead of inline paths such ascrate::name::some_name::Typeorcrate::name::some_name::function(). Resolve naming conflicts with import aliases (use ... as ...), not fully qualified paths in the middle of the code. - Use the repository's MSRV, edition, dependency versions, and deployment targets. Do not copy generic Cargo, runtime, feature, allocator, or compiler settings into the project without a task-specific need and evidence.
- Search existing types, methods, traits, conversions, and callers before introducing another implementation. Extend the responsible owner; avoid duplicate validators, normalization paths, string allowlists, and scattered per-kind workarounds. A new wrapper, builder, trait, newtype, lifetime, or generic parameter needs a concrete invariant or caller benefit. Keep simple concrete code simple.
- Prefer derived serde and existing conversions. Match the actual wire contract: unknown-field rejection,
defaults, omitted versus null fields, and enum fallback behavior require protocol evidence. Do not apply generic
deny_unknown_fields,skip_serializing_if, ornon_exhaustiveadvice mechanically. - Borrow or move before cloning. Use
Cow,Arc, collection wrappers, and preallocation only when the actual ownership or measured workload warrants them. Do not replace a readable match with repeated collect chains. - Preserve checked numeric semantics. A range-check example followed by
asis not proof that precision, truncation, signedness, and the repository's Clippy requirements are satisfied. Inspect boundary cases and use existing checked conversion facilities where available; never suppress warnings to retain the cast.
Read rules for the affected design
These 20 rules cover recurring gateway design concerns. Read only the rows relevant to the changed path. Architecture discovery, provider parity, and tests remain in the engineering skill rather than a second rule catalog.
| Concern | Rules |
| Simple typed design | Avoid over-abstraction, avoid stringly typed APIs, exhaustive enum matches |
| Ownership and conversions | Borrow before cloning, accept slices, move out without cloning, avoid intermediate collections, fallible conversions |
| Wire types and validation | Enum tagging, defaults and compatibility, derive with validation |
| Errors and arithmetic | Typed library errors, preserve error sources, checked casts, explicit overflow handling |
| Async execution and streaming | Locks across await, bounded channels, cancellation safety, structured task ownership |
| Optimization | Profile before optimizing |
Check design choices against the relevant Rust Cookbook recipe and Rust API Guidelines. Verify APIs and caveats in official standard-library, Serde, and dependency documentation for the versions used here. Catalog examples are illustrative, not a substitute for type-checking, Clippy, contract tests, or understanding agentic-api's existing architecture.
For a review, tie each finding to a concrete changed path, observable failure or maintenance burden, and the smallest clean fix. Do not turn a generic recipe into a mandatory abstraction or report unsupported stylistic preferences.
Source and maintenance
The selected rules are adapted from leonardomso/rust-skills at fd2a861, version 1.5.1. Copyright and MIT terms are retained in LICENSE. The entrypoint is specific to agentic-api; rule text retains upstream examples with whitespace cleaned and cross-references to omitted rules removed.
Keep this selection focused on demonstrated needs in agentic-api. Generic naming, packaging, macros, unsafe code, compiler tuning, and specialized collection guides are intentionally omitted. Before adding a rule, check whether this skill or the engineering workflow already covers the concern. Preserve attribution and validate links when updating; do not import the entire upstream catalog or replace repository constraints with upstream defaults.
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.

