rust
Skill0 starsChanged 3 months agoMITView on GitHub
Apply repository-aware Rust conventions for ownership, error and panic boundaries, unsafe code, async tasks, public APIs, tests, and verification.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- crbnos/carbontheir own version, first seen Oct 4, 2026
- lawless-m/claude-skillstheir own version, first seen Oct 4, 2026
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- inference-gateway/skillstheir own version, first seen Oct 1, 2026
- Jylhis/skillstheir own version, first seen Aug 5, 2026
- youlaitech/youlai-skillstheir own version, first seen Jul 14, 2026
Used with
Projects with it also use fastapi and tdd.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
martinholovskySkillfastapi
REST API and WebSocket development with FastAPI emphasizing security, performance, and async patterns
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- microsoft/fast★ 9.7ksame name
- crbnos/carbon★ 2.7ksame name
- Mindrally/skills★ 266same name
- youlaitech/youlai-skills★ 56same name
- joshuadavidthomas/agent-skills★ 54same name
- martinholovsky/claude-skills-generator★ 47same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- lawless-m/claude-skills★ 6same name
- DongDuong2001/pudo-code-system★ 5same name
- inference-gateway/skills★ 3same name
8 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 repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bare-bonesSkill
- flow-ideateSkill
- flow-implementSkill
- flow-planSkill
- git-commitSkill
- git-hooksSkill
- githubSkill
- golangci-lintSkill
- goSkill
- pythonSkill
- typescriptSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Follow the workspace's Rust version, feature policy, public API conventions, lint configuration, and CI commands.
- Very specific: line 19
Keep unsafe blocks minimal.
- Very specific: line 21
Do not hold blocking lock guards across .await.
- Distinctive: line 22
Treat cancellation safety as API behavior when futures can be dropped mid-operation.
- Distinctive: line 23
Keep public paths, feature flags, serialized formats, and error behavior deliberate.
- Distinctive: line 24
Use narrow lint allowances with a reason.
- Very specific: line 26
Read references only for the affected surface: api-design.md, async-and-performance.md, or agent-discipline.md.
- Distinctive: line 30
Use repository commands first.
- Distinctive: line 38
Run Miri or sanitizer checks when changed unsafe code requires them and the environment supports them.
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rust
Follow the workspace's Rust version, feature policy, public API conventions, lint configuration, and CI commands. Preserve compatibility unless the task authorizes a break.
Contracts
- Express ownership and borrowing directly. Clone only when ownership transfer or measured simplicity justifies it.
- Return recoverable failures. Reserve panic for violated invariants and unrecoverable process contracts. Avoid production
unwrapandexpectunless a nearby explanation proves the invariant. - Preserve error sources and useful context without leaking secrets. Redact secret-bearing
Debugoutput. - Keep
unsafeblocks minimal. State the safety invariant at the boundary and test the safe API around it. Do not weaken soundness to satisfy a signature. - Give spawned tasks an owner and shutdown path. Dropping a task handle does not necessarily cancel the task. Bound channels and concurrency.
- Do not hold blocking lock guards across
.await. Keep async-aware guards short and justify any guard retained across an await point. - Treat cancellation safety as API behavior when futures can be dropped mid-operation.
- Keep public paths, feature flags, serialized formats, and error behavior deliberate. Avoid speculative generics and abstractions.
- Use narrow lint allowances with a reason. Do not hide warnings globally.
Read references only for the affected surface: api-design.md, async-and-performance.md, or agent-discipline.md.
Verification
Use repository commands first. Common fallbacks are:
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-featuresRun Miri or sanitizer checks when changed unsafe code requires them and the environment supports them. Report unavailable checks instead of installing tools or claiming success.
Adapted from tiangolo/agents (MIT).
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.

