agentleFS
dawidpereiradawidpereira/rust-skills/CLAUDE.md

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…

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
  1. Distinctive:

    Don't jump to the obvious fix.

    line 5
  2. Distinctive:

    If you've tried the same fix twice and it keeps cascading, stop patching and reconsider the design.

    line 17
  3. Distinctive:

    When a skill cross-references another, read only the referenced skill's Quick Decisions table.

    line 43

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

SkillUse When
rust-ownershipBorrowing, lifetimes, smart pointers, move semantics, clone decisions
rust-errorsResult, Option, error types, propagation, panic vs return, diagnostic crates (miette, color-eyre)
rust-typesGenerics, traits, dispatch, newtypes, typestate, PhantomData, closures, Fn traits, custom iterators
rust-asyncTokio, channels, Send/Sync, spawn, streams, Pin, threads vs async, rayon, atomics
rust-unsafeUnsafe blocks, FFI, raw pointers, safety documentation
rust-serdeSerde derive, custom serializers, enum representations, serde attributes, zero-copy deserialization, DTO patterns
rust-macrosmacro_rules!, proc macros, derive/attribute macros, fragment specifiers, repetition, hygiene, cargo expand
rust-apiAPI design, builder patterns, naming conventions, documentation
rust-perfMemory optimization, compiler hints, profiling, benchmarking
rust-databasesqlx, compile-time queries, migrations, connection pooling, transactions, newtype mapping, database testing
rust-qualityClippy lints, project structure, Cargo.toml defaults, proptest, mockall, criterion
rust-testsUnit test strategy, integration test organization, test builders, error path testing, test isolation
rust-architectureProject structure: vertical slices, TUI components, cross-feature communication, Axum middleware/extractors
rust-dddDomain-driven design: aggregates, entities, value objects, domain events, repository separation
rust-tracingTracing setup, structured logging, spans, #[instrument], RUST_LOG, middleware, OpenTelemetry
rust-ci-deployCI 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.

NeedAgent
Rust release inforust-changelog
Crate version/infocrate-researcher
API documentationdocs-researcher
Clippy lint detailsclippy-researcher

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.