devs:rust-core
/devs:rust-core
Use when writing, debugging, reviewing, or architecting Rust code — compiler or borrow-checker errors, async/tokio work, error handling (thiserror/anyhow), testing and benchmarking, performance tuning, web services (axum/actix-web), CLI/TUI tools (clap/ratatui), Tauri desktop apps, AI/LLM API integration, Cargo workspace and dependency management, or scaffolding a new Rust project. Contains verified references, scaffolding scripts, and lint/rustfmt/deny config templates.
- Author
- aaronbassett ↗
- Repository
- agent-foundry ↗
- Licence
- MIT
- Last repository change
- 16.08.2026
Assessment and security
- Files in this package
- 22
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 16.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/audit_dependencies.sh, scripts/init_rust_project.sh, scripts/setup_logging.sh
What it does and when to use it
Use when writing, debugging, reviewing, or architecting Rust code — compiler or borrow-checker errors, async/tokio work, error handling (thiserror/anyhow), testing and benchmarking, performance tuning, web services (axum/actix-web), CLI/TUI tools (clap/ratatui), Tauri desktop apps, AI/LLM API integration, Cargo workspace and dependency management, or scaffolding a new Rust project. Contains verified references, scaffolding scripts, and lint/rustfmt/deny config templates.
Original author description
Use when writing, debugging, reviewing, or architecting Rust code — compiler or borrow-checker errors, async/tokio work, error handling (thiserror/anyhow), testing and benchmarking, performance tuning, web services (axum/actix-web), CLI/TUI tools (clap/ratatui), Tauri desktop apps, AI/LLM API integration, Cargo workspace and dependency management, or scaffolding a new Rust project. Contains verified references, scaffolding scripts, and lint/rustfmt/deny config templates.
How it works
- Reference routing
- Decision guides
- Default crates
- Naming conventions
- Scripts
- Config templates (${CLAUDESKILLDIR}/assets/configs/)
SKILL.md preview
---
name: devs:rust-core
description: "Use when writing, debugging, reviewing, or architecting Rust code — compiler or borrow-checker errors, async/tokio work, error handling (thiserror/anyhow), testing and benchmarking, performance tuning, web services (axum/actix-web), CLI/TUI tools (clap/ratatui), Tauri desktop apps, AI/LLM API integration, Cargo workspace and dependency management, or scaffolding a new Rust project. Contains verified references, scaffolding scripts, and lint/rustfmt/deny config templates."
---
# Rust Core Development
Reference hub for Rust work. Verify versions and crate APIs with the toolchain (`cargo info <crate>`, docs.rs) — never from trained knowledge.
## Reference routing
Load references on demand — not all at once.
| Reference | Use when |
|---|---|
| [error-handling.md](references/error-handling.md) | Choosing thiserror vs anyhow, designing error types |
| [async-patterns.md](references/async-patterns.md) | tokio, streams, channels, async traits, actor pattern, retry/backoff |
| [patterns.md](references/patterns.md) | Builder, newtype, typestate, RAII; pattern-selection table |
| [common-errors.md](references/common-errors.md) | Confusing compiler errors beyond rustc's own suggestions |
| [testing.md](references/testing.md) | Test organization, criterion, nextest/rstest/insta/proptest |
| [performance.md](references/performance.md) | Profiling, allocation, release-profile tuning |
| [project-structure.md](references/project-structure.md) | Modules, workspaces, prelude/re-export patterns |
| [dependencies.md](references/dependencies.md) | cargo add, workspace deps, MSRV resolver, patching, unused deps |
| [crates-core.md](references/crates-core.md) | Version-verified essential-crates table; std-replaces-crate list |
| [web-frameworks.md](references/web-frameworks.md) | axum (default), actix-web; framework selection |
| [cli-tui.md](references/cli-tui.md) | clap, ratatui, CLI testing with assert_cmd |
| [desktop-tauri.md](references/desktop-tauri.md) | Tauri desktop apps: capabilities model, command IPC, tray, updater |
| [ai-llm.md](references/ai-llm.md) | Calling LLM APIs from Rust (Anthropic/OpenAI-compatible/ollama) |
| [logging-observability.md](references/logging-observability.md) | tracing, OpenTelemetry, Prometheus metrics |
For code-review checklists use the `devs:code-review` skill; for dependency auditing workflows use `devs:deps-core`.
## Decision guides
**Web framework:** axum is the default (tower ecosystem, ecosystem-standard in 2026). actix-web for maximum-throughput services or existing actix codebases. Everything else needs a justification. Details: [web-frameworks.md](references/web-frameworks.md).
**Errors:** thiserror for libraries (callers match on variants), anyhow for binaries (context chains). Details: [error-handling.md](references/error-handling.md).
**Async:** only for I/O-bound concurrency; CPU-bound work uses threads/`spawn_blocking`; simple CLIs stay sync. Details: [async-patterns.md](references/async-patterns.md).
## Default crates
When the project doesn't dictate otherwise (versions + gotchas in [crates-core.md](references/crates-core.md)): tokio (async), serde/serde_json (serialization), thiserror/anyhow (errors), tracing + tracing-subscriber (logging), reqwest (HTTP client), axum (HTTP server), clap derive (CLI), sqlx (SQL), jiff (time; chrono only for interop), proptest (property tests), insta (snapshots), criterion (benches). Prefer std where it now covers the need — see the std-replaces-crate list in crates-core.md.
## Naming conventions
| Item | Convention | | Item | Convention |
|---|---|---|---|---|
| Types/traits | `CamelCase` | | Crates/features | `kebab-case` |
| Functions/variables/modules | `snake_case` | | Constants/statics | `SCREAMING_SNAKE_CASE` |
No `get_` prefix on getters (`fn name()`, not `fn get_name()`); no `*able` capability-trait suffixes (std uses `Copy`, `Send`, not `Copyable`).
## Scripts
- `${CLAUDE_SKILL_DIR}/scripts/init_rust_project.sh <name> [bin|lib]` — scaffold a project per the greenfield spec (toolchain pinning, `[lints]` table, config templates, CLAUDE.md); self-verifies with check + fmt + clippy before reporting success.
- `${CLAUDE_SKILL_DIR}/scripts/audit_dependencies.sh` — cargo-audit + cargo-deny + cargo-outdated; never installs tools, reports what it skipped, non-zero exit on failures.
- `${CLAUDE_SKILL_DIR}/scripts/setup_logging.sh` — add tracing + a `src/logging.rs` init module; refuses to overwrite an existing one.
## Config templates (`${CLAUDE_SKILL_DIR}/assets/configs/`)
- `lints.toml` — `[lints]` tables for Cargo.toml: `unsafe_code = "forbid"`, unwrap/expect denied, curated pedantic picks. **Pairs with** `clippy.toml`, which exempts tests from the unwrap/expect denies — copy both or neither.
- `rustfmt.toml` — stable-channel options only.
- `deny.toml` — current cargo-deny schema: RUSTSEC advisories, hand-curated license allowlist, source restrictions; private unpublished crates exempt from license checks.
Files in this package (22)
- SKILL.md 5 KB
- assets/configs/clippy.toml 1 KB
- assets/configs/deny.toml 1 KB
- assets/configs/lints.toml 1 KB
- assets/configs/rustfmt.toml 1 KB
- references/ai-llm.md 7 KB
- references/async-patterns.md 7 KB
- references/cli-tui.md 5 KB
- references/common-errors.md 4 KB
- references/crates-core.md 3 KB
- references/dependencies.md 4 KB
- references/desktop-tauri.md 6 KB
- references/error-handling.md 4 KB
- references/logging-observability.md 6 KB
- references/patterns.md 8 KB
- references/performance.md 3 KB
- references/project-structure.md 4 KB
- references/testing.md 5 KB
- references/web-frameworks.md 7 KB
- scripts/audit_dependencies.sh 2 KB
- scripts/init_rust_project.sh 3 KB
- scripts/setup_logging.sh 1 KB
Versions
The database has no other skills named devs:rust-core.
Database snapshot: 13.11.2026 · package version 84307ec4bd7d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95rust
Use when writing, reviewing, testing, or shipping Rust — ownership and the borrow checker (move/borrow/clone, Arc/RefCell, lifetimes), errors with Result/`?`/thiserror/anyhow, async on tokio, axum 0.8 services, cargo test, and sqlx + cargo-audit hardening. NOT the same service… - 100rust-pro
Rust 2024 with Tokio and axum: async, types, errors, performance. Use when writing, reviewing or optimizing Rust code. - 100rust-systems
Rust patterns for CLI tools, backend services, and general application code. Use when working with Rust, Cargo workspaces, axum/tokio services, clap CLIs, async concurrency, or configuring clippy, rustfmt, cargo-nextest, or Cargo.toml. - 100agent-rust-expert
Specialist subagent: Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio,… - 100rust
Rust engineering standards and deep references — ownership/borrowing-driven design, error handling (thiserror/anyhow), async with tokio, axum services, testing, and clippy/cargo-deny discipline. Load whenever writing, editing, or reviewing Rust: any .rs file,… - 100rust-axum-service-engineering
Engineering skill: Rust Axum service — how to build and ship a api / service with Axum on Tokio, Rust, cargo test + tokio::test. Use when writing, reviewing, testing or releasing code in this stack, and when turning a Celestial design or experience skill into code.