rust-skills
CLAUDE.md0 starsChanged 8 months agoMITView on GitHub
Don't jump to the obvious fix. The compiler tells you what broke — your job is to ask why. - Moved value? Who should own this data? Is clone the answer, or is the ownership design wrong? - Dangling reference? Is the scope boundary in the right place, or should the data live longer? - Trait bound not satisfied? Is the trait design right, or is the abstraction fighting the problem? - Type mismatch? Are the types modeling the domain…
In this repository16 other files it gives its agents.
- rust-apiSkill
- rust-architectureSkill
- rust-asyncSkill
- rust-ci-deploySkill
- rust-databaseSkill
- rust-dddSkill
- rust-errorsSkill
- rust-macrosSkill
- rust-ownershipSkill
- rust-perfSkill
- rust-qualitySkill
- rust-serdeSkill
- rust-testsSkill
- rust-tracingSkill
- rust-typesSkill
- rust-unsafeSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Don't jump to the obvious fix.
- Distinctive: line 17
If you've tried the same fix twice and it keeps cascading, stop patching and reconsider the design.
- Distinctive: line 43
When a skill cross-references another, read only the referenced skill's Quick Decisions table.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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 Skills
Before Fixing a Compiler Error
Don't jump to the obvious fix. The compiler tells you what broke — your job is to ask why.
- Moved value? Who should own this data? Is clone the answer, or is the ownership design wrong?
- Dangling reference? Is the scope boundary in the right place, or should the data live longer?
- Trait bound not satisfied? Is the trait design right, or is the abstraction fighting the problem?
- Type mismatch? Are the types modeling the domain correctly?
If you've tried the same fix twice and it keeps cascading, stop patching and reconsider the design.
Skill Index
| Skill | Use When |
| rust-ownership | Borrowing, lifetimes, smart pointers, move semantics, clone decisions |
| rust-errors | Result, Option, error types, propagation, panic vs return, diagnostic crates (miette, color-eyre) |
| rust-types | Generics, traits, dispatch, newtypes, typestate, PhantomData, closures, Fn traits, custom iterators |
| rust-async | Tokio, channels, Send/Sync, spawn, streams, Pin, threads vs async, rayon, atomics |
| rust-unsafe | Unsafe blocks, FFI, raw pointers, safety documentation |
| rust-serde | Serde derive, custom serializers, enum representations, serde attributes, zero-copy deserialization, DTO patterns |
| rust-macros | macro_rules!, proc macros, derive/attribute macros, fragment specifiers, repetition, hygiene, cargo expand |
| rust-api | API design, builder patterns, naming conventions, documentation |
| rust-perf | Memory optimization, compiler hints, profiling, benchmarking |
| rust-database | sqlx, compile-time queries, migrations, connection pooling, transactions, newtype mapping, database testing |
| rust-quality | Clippy lints, project structure, Cargo.toml defaults, proptest, mockall, criterion |
| rust-tests | Unit test strategy, integration test organization, test builders, error path testing, test isolation |
| rust-architecture | Project structure: vertical slices, TUI components, cross-feature communication, Axum middleware/extractors |
| rust-ddd | Domain-driven design: aggregates, entities, value objects, domain events, repository separation |
| rust-tracing | Tracing setup, structured logging, spans, #[instrument], RUST_LOG, middleware, OpenTelemetry |
| rust-ci-deploy | CI pipelines, GitHub Actions, caching, cross-compilation, Docker builds, release automation, cargo-dist |
Cross-Reference Rule
When a skill cross-references another, read only the referenced skill's Quick Decisions table. Do not load its full reference files unless the user's question specifically requires that depth.
Agents
These agents fetch live data and require WebFetch or MCP web access. Without these tools, answer from skill knowledge and note when live data would improve the answer.
| Need | Agent |
| Rust release info | rust-changelog |
| Crate version/info | crate-researcher |
| API documentation | docs-researcher |
| Clippy lint details | clippy-researcher |
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.

