Production-grade Rust engineering guidance for AI coding agents. A curated collection of 14 skills covering the Rust language, standard library, Cargo/toolchain, production engineering, and key ecosystem libraries — with a strong native-Rust foundation and third-party crates as extensions.
A skill system for AI agents that write Rust. Each skill is a concise, reference-oriented SKILL.md that helps an agent
make correct engineering decisions. The root SKILL.md is a router; skills point to deep-dive references; examples
prove the guidance compiles and tests green.
Native Rust first. The Rust language, standard library, and Cargo/toolchain are the foundation. Library skills (tokio, axum, serde, diesel, rayon, clap, ratatui) are extensions that build on that foundation.
| Skill | Use when |
|---|---|
rust-fundamentals |
Learning, teaching, or reviewing Rust language basics |
rust-std |
Choosing or using standard-library APIs |
rust-production |
Designing, reviewing, or shipping production Rust |
rust-debugging |
Debugging Rust code or reading compiler errors |
rust-unsafe-checker |
Writing or reviewing unsafe Rust and FFI |
rust-dependencies |
Managing dependencies, versions, SemVer, MSRV |
| Skill | Responsibility |
|---|---|
rust-code-audit |
Repository-wide security audit, secret detection, supply-chain analysis |
| Skill | Use when |
|---|---|
rust-tokio |
Async runtimes, tasks, channels, cancellation |
rust-axum |
Building HTTP APIs with axum |
rust-serde |
Serialization and deserialization |
rust-diesel |
Databases with Diesel ORM |
rust-rayon |
Data parallelism and CPU-bound work |
rust-clap |
Command-line interfaces and argument parsing |
rust-ratatui |
Terminal user interfaces |
The skills CLI installs this repository's skills into any supported
agent's skills directory (requires Node.js 22.20+):
npx skills add uswuth/rustoria --full-depth--full-depth is required so the root router and every category-nested skill are discovered. The CLI detects
your installed agents (or asks which to target); use --list to preview without installing, -a <agent> to
pick a specific agent, and -g for a user-wide install.
npx skills add uswuth/rustoria --full-depth --listCopy the skills into your agent's skills directory. Agents discover skills as a
directory bundle (<skill-name>/SKILL.md), per the
Agent Skills standard:
# Copy the root router and all skills (Claude Code layout)
mkdir -p ~/.claude/skills/rustoria
cp SKILL.md ~/.claude/skills/rustoria/SKILL.md
for f in $(find skills -name SKILL.md); do
name=$(grep '^name:' "$f" | head -1 | sed 's/name: *//')
mkdir -p ~/.claude/skills/$name
cp "$f" ~/.claude/skills/$name/SKILL.md
doneOr use the setup script:
bash scripts/setup.sh ~/.claude/skillsOther agents use different roots - see .claude/INSTALL.md, .codex/INSTALL.md,
.gemini/INSTALL.md, .hermes/INSTALL.md, .antigravity/INSTALL.md, and
.opencode/INSTALL.md for each agent's verified discovery path.
References are deep-dive documents. Copy them alongside the skills:
mkdir -p ~/.claude/skills/references
cp references/*.md ~/.claude/skills/references/- Load the root router (the
rustoriaskill,SKILL.md) for any Rust task. - Route to the skill matching the task.
- Load the referenced deep-dive when the task needs it.
The router makes the priority explicit: Rust language/std/Cargo fundamentals come first; libraries are specialized extensions.
rustoria/
├── SKILL.md # Root router
├── skills/ # 14 skills in 7 categories
│ ├── fundamentals/
│ ├── std/
│ ├── production/
│ ├── debugging/
│ ├── unsafe-checker/
│ ├── dependencies/
│ ├── security/ # rust-code-audit
│ ├── libraries/ # 7 library skills
├── references/ # 12 deep-dive documents
├── examples/ # 6 compile-tested examples
│ ├── std-file-processor/ # zero-dependency std-only
│ ├── minimal-api/
│ ├── modular-monolith/
│ ├── async-service/
│ ├── cli/
│ └── library/
├── scripts/
│ ├── validate.sh # Structure/frontmatter/catalog/link/secret checks
│ ├── test-triggers.sh # Trigger routing tests
│ └── setup.sh # Installation helper
├── tests/
│ └── trigger-tests.md # Trigger test case documentation
├── docs/
│ ├── architecture.md # Skill system architecture
│ ├── functional-overview.md # How the system works
│ └── planned-capabilities.md # Deferred skills and capabilities
└── .github/workflows/ # CI: validate, markdown, links, release
All examples compile and pass cargo test on stable Rust (edition 2021):
| Example | Demonstrates | Dependencies |
|---|---|---|
std-file-processor |
fs, io, iterators, custom errors | none |
minimal-api |
axum HTTP API | axum, tokio, serde |
modular-monolith |
feature-oriented module boundaries | axum, tokio, serde |
async-service |
tokio workers, scheduler, graceful shutdown | tokio, tokio-util |
cli |
clap subcommands with tests | clap, serde |
library |
validated newtypes with thiserror | thiserror, serde, regex |
bash scripts/validate.sh # structure, frontmatter, catalog, links, secrets, paths
bash scripts/test-triggers.sh # trigger routing (positive/negative/ambiguous/composition)CI runs these plus markdown linting, link checking, and per-example cargo check/test/clippy/fmt.
The following skills are intentionally not part of v1 and may be reintroduced later once their underlying crates mature and their APIs can be verified against current official documentation:
- rust-topcoat — deferred until topcoat has stable releases and verified APIs
- rust-gpui-kit — deferred until gpui/gpui-kit have stable releases and verified APIs
See docs/planned-capabilities.md for the full criteria.
This repository supports multiple AI coding agents through thin adapters. The canonical skill source is always skills/
— agent directories contain only integration glue.
| Agent | Installation |
|---|---|
| Claude Code | See .claude/INSTALL.md |
| Codex | See .codex/INSTALL.md |
| Gemini CLI | See .gemini/INSTALL.md |
| Hermes | See .hermes/INSTALL.md |
| Antigravity | See .antigravity/INSTALL.md |
| OpenCode | See .opencode/INSTALL.md |
See AGENTS.md for agent execution safety principles.
- DISCLAIMER.md — origin, no-guarantee, user responsibility
- THIRD-PARTY-NOTICE.md — referenced projects, trademark separation
- CONTRIBUTING.md — contribution rules, commit convention, PR requirements
- CHANGELOG.md — version history
- docs/skill-quality-contract.md — anti-skill-slop gate for all skills
- docs/labels.md — issue label taxonomy
- docs/planned-capabilities.md — deferred skills and capabilities
This repository is designed to eventually monitor the Rust ecosystem and propose skill updates. See:
- docs/ecosystem-intelligence.md — pipeline architecture
- docs/issue-automation.md — automatic issue generation design
- docs/repository-integrity.md — integrity checker design