rust
Skill0 starsChanged 5 months agoMITView on GitHub
Applies Rust rules for ownership, modules, errors, unsafe code, concurrency, tests, and tooling.
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
- erikhoward/agent-toolstheir own version, first seen Sep 7, 2026
- Jylhis/skillstheir own version, first seen Aug 5, 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 repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-ui-reviewSkill
- agent-retrospectiveSkill
- agents-md-retrospectiveSkill
- agent-squadSkill
- architecture-mapSkill
- architecture-normalizerSkill
- architecture-principlesSkill
- authz-boundary-reviewSkill
- c-cppSkill
- code-qualitySkill
- code-reviewSkill
- code-to-figmaSkill
- code-wiki-ruSkill
- context-packSkill
- core-engineeringSkill
- debuggingSkill
- dependency-advisory-auditSkill
- deserialization-parser-reviewSkill
- design-system-extractorSkill
- documentationSkill
- engineering-standardsSkill
- esp32Skill
- esphomeSkill
- external-agent-pack-auditSkill
- fastSkill
- figma-to-codeSkill
- fix-security-findingSkill
- goSkill
- homeassistantSkill
- mcp-tool-routerSkill
- migration-plannerSkill
- mobile-qaSkill
- multi-agent-pr-reviewSkill
- performanceSkill
- playwright-visual-qaSkill
- pythonSkill
- quality-gatesSkill
- refactoringSkill
- responsive-breakpoint-checkSkill
- review-routerSkill
- secrets-and-config-reviewSkill
- security-diff-reviewSkill
- security-routerSkill
- securitySkill
- session-memorySkill
- specialist-dispatchSkill
- subagent-result-mergeSkill
- supply-chain-reviewSkill
- tdd-guardSkill
- testing-tddSkill
- threat-modelSkill
- typescriptSkill
- ui-buildSkill
- ui-business-appsSkill
- ui-concept-firstSkill
- ui-figmaSkill
- ui-qaSkill
- ui-researchSkill
- ui-routerSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. 0 are common, 15 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Before changing Rust code, inspect relevant files when present:
- Very specific: line 36
Prefer cargo nextest run over cargo test when cargo-nextest is installed and compatible with the workspace.
- Very specific: line 38
Use bacon for local interactive feedback loops when available.
- Very specific: line 39
Use cargo watch for focused watch commands when available and useful.
- Distinctive: line 40
Do not introduce these tools as required project dependencies unless the user asks or the repository already standardizes on them.
- Distinctive: line 45
Follow existing module organization.
- Very specific: line 47
Avoid giant mod.rs or lib.rs files.
- Very specific: line 48
Prefer explicit domain names over generic utils modules.
- Distinctive: line 49
Keep public API surface intentionally small.
- Distinctive: line 50
Prefer simple ownership over lifetime acrobatics.
- Very specific: line 54
Use Result for recoverable failures.
- Very specific: line 55
Do not unwrap or expect in production paths unless the invariant is proven and the message explains it.
- Distinctive: line 58
Use the repository's established error type approach.
- Very specific: line 59
Do not introduce anyhow, thiserror, or custom error stacks unless already used or justified.
- Very specific: line 64
If unsafe is necessary, isolate it, document invariants, and test the safe wrapper.
- Distinctive: line 65
Do not create undefined behavior for performance fantasies.
- Distinctive: line 69
Prefer borrowing over cloning when simple.
- Distinctive: line 71
Avoid exposing unnecessary concrete types in public APIs.
- Distinctive: line 72
Use traits when they express real abstraction or test seams.
- Distinctive: line 73
Do not create traits for one implementation unless boundary value is clear.
- Distinctive: line 77
If async code is present:
- Distinctive: line 80
avoid blocking calls in async tasks.
- Distinctive: line 82
avoid detached tasks without lifecycle management.
- Distinctive: line 83
use timeouts where external calls can hang.
“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
Skill: rust
Purpose
Apply the shared engineering style to Rust projects while preserving idiomatic ownership, error handling, module structure, and safety.
Inspect First
Before changing Rust code, inspect relevant files when present:
Cargo.tomlCargo.lock.cargo/config.tomlrust-toolchain.tomlrustfmt.tomlclippy.toml- workspace layout
- existing modules and tests
Infer:
- edition;
- workspace structure;
- feature flags;
- dependency policy;
- error handling conventions;
- async runtime if present.
Tooling Defaults
- Prefer
cargo nextest runovercargo testwhencargo-nextestis installed and compatible with the workspace. - Use
baconfor local interactive feedback loops when available. - Use
cargo watchfor focused watch commands when available and useful. - Do not introduce these tools as required project dependencies unless the user asks or the repository already standardizes on them.
Style
- Follow existing module organization.
- Keep modules cohesive.
- Avoid giant
mod.rsorlib.rsfiles. - Prefer explicit domain names over generic
utilsmodules. - Keep public API surface intentionally small.
- Prefer simple ownership over lifetime acrobatics.
Error Handling
- Use
Resultfor recoverable failures. - Do not
unwraporexpectin production paths unless the invariant is proven and the message explains it. - In tests,
unwrap/expectmay be acceptable when failure context is clear. - Preserve error context.
- Use the repository's established error type approach.
- Do not introduce
anyhow,thiserror, or custom error stacks unless already used or justified.
Safety
- Avoid
unsafe. - If
unsafeis necessary, isolate it, document invariants, and test the safe wrapper. - Do not create undefined behavior for performance fantasies.
Ownership and APIs
- Prefer borrowing over cloning when simple.
- Clone intentionally when it improves clarity or avoids complex lifetimes.
- Avoid exposing unnecessary concrete types in public APIs.
- Use traits when they express real abstraction or test seams.
- Do not create traits for one implementation unless boundary value is clear.
Async
If async code is present:
- respect existing runtime;
- avoid blocking calls in async tasks;
- handle cancellation/drop behavior;
- avoid detached tasks without lifecycle management;
- use timeouts where external calls can hang.
Tests and Validation
Common commands, only when configured or clearly available:
cargo nextest run
cargo test
cargo test --workspace
cargo fmt --check
cargo clippy --workspace --all-targets --all-features
cargo check
bacon
cargo watch -x testReport exact commands and results.
Shared Cross-Ecosystem Style
Apply the shared engineering style from:
../../engineering/05_design_principles.md../../engineering/06_responsibility_model.md../../engineering/07_complexity_budget.md../../engineering/12_naming_bible.md
Language-specific idioms control syntax and ecosystem details, but they must not weaken the core rules: small cohesive units, explicit boundaries, honest validation, no dumping grounds, and no fake placeholders.
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.

