Skip to content
uswuthPublic

About

Production-grade Rust engineering skills for AI coding agents: 14 skills across 7 categories (native core, security audit, libraries), deep-dive references, compile-tested examples, a validation harness, and CI.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

rustoria

rustoria logo

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.

What this is

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 catalog

Native core (6)

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

Security (1)

Skill Responsibility
rust-code-audit Repository-wide security audit, secret detection, supply-chain analysis

Library extensions (7)

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

Installation

As a skill collection

One-line install (npx)

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 --list

Manual install (Claude Code layout)

Copy 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
done

Or use the setup script:

bash scripts/setup.sh ~/.claude/skills

Other 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

References are deep-dive documents. Copy them alongside the skills:

mkdir -p ~/.claude/skills/references
cp references/*.md ~/.claude/skills/references/

Usage

  1. Load the root router (the rustoria skill, SKILL.md) for any Rust task.
  2. Route to the skill matching the task.
  3. 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.

Repository structure

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

Examples

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

Validation

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.

Planned skills

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.

Agent integrations

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.

Governance

Ecosystem intelligence

This repository is designed to eventually monitor the Rust ecosystem and propose skill updates. See:

License

MIT

About

Production-grade Rust engineering skills for AI coding agents: 14 skills across 7 categories (native core, security audit, libraries), deep-dive references, compile-tested examples, a validation harness, and CI.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors