rust
Skill0 starsChanged 4 months agoMITView on GitHub
Applies Rust rules for ownership, modules, errors, unsafe code, concurrency, tests, and tooling.
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 30 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 30 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.
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- microsoft/fast★ 9.7ksame name
- pgdogdev/pgdog★ 5.6ksame name
- crbnos/carbon★ 2.8ksame name
- Mindrally/skills★ 275same name
- Moosync/Moosync★ 259same name
- wado-lang/wado★ 118same name
- databricks-solutions/apx★ 91same name
- youlaitech/youlai-skills★ 63same name
27 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.
Used alongsideProjects with it also use java, ast-grep and 6 more.
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.
infiniumtekSkilljava
Expert code-review guidance for Java (.java) changes. Flags correctness bugs, concurrency hazards, security vulnerabilities, performance problems, and unidiomatic code in a diff. Use when reviewing modified or added Java source.
Also in 3 projects that use this
trotsky1997Skillast-grep
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.
Also in 3 projects that use this
OpenAISkillnextjs
Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.
Also in 3 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 3 projects that use this
SentrySkillcreate-pr
Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.
Also in 3 projects that use this
GoogleSkilltdd
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 5 projects that use this
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.
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.

