← ClaudeAtlas

rust-project-standardlisted

Enforce a strict, model-agnostic, AI-navigable Rust project standard: a Cargo workspace with crate-per-domain deep structure, #![forbid(unsafe_code)] + strict clippy workspace lints + a one-command zero-warning gate (fmt + clippy -D warnings + doc + test + cargo-deny), serde + newtypes at boundaries, trait-based provider seams with a zero-SDK domain crate and a default MockProvider, tracing, figment, include_str! + minijinja prompts, and a CLAUDE.md in every crate. Use whenever starting or scaffolding a Rust project, crate, or workspace; setting up Cargo.toml / clippy / rustfmt / CI; deciding crate or module structure; adding an LLM / embedding / vector-store dependency; wiring providers or adapters; setting up cargo-deny or supply-chain/license checks; or checking an existing Rust project conforms. Apply even when the user only says "start a Rust project", "structure this crate", "add an LLM", or "wire up CI" without naming the standard.
VoldemortGin/AI-Coding-Skill-Bible · ★ 1 · AI & Automation · score 72
Install: claude install-skill VoldemortGin/AI-Coding-Skill-Bible
# Rust Project Standard This skill is the guiding standard for **any** Rust work. Apply it by default; don't wait to be asked. Its spine: **trust is placed not in the model, but in the machine-checkable code that constrains it.** In Rust most of that scaffold is the compiler — types, ownership, exhaustiveness are enforced at compile time with no type erasure, so there's **no runtime type-checker to bolt on** (unlike the Python sibling's beartype). The job here is to (a) keep the few escape hatches shut, (b) push every external dependency behind a trait so the model is hot-swappable, (c) organize deep and name-navigable, and (d) mechanize the implicit knowledge a human would otherwise hold — via a zero-warning gate, per-crate contracts, and supply-chain checks. The agent's output ceiling equals the tightness of that loop. Baseline: **edition 2024**, pinned toolchain (`rust-toolchain.toml`), `#![forbid(unsafe_code)]`, strict clippy via workspace lints, `serde`, `thiserror`/`anyhow`, `tracing`, `figment`, `minijinja`, `cargo-deny`. ## When starting a new project ```bash python scripts/scaffold.py <project_name> --target <dir> --domains ingestion retrieval generation agents ``` This mirrors `assets/templates/` into a Cargo workspace (root config + `kernel`/`domain`/`adapters` crates + `app` binary + a CLAUDE.md per crate + `ci.sh` + CI + ADR), substitutes `__PROJECT__`, and creates a crate skeleton per domain (`members = ["crates/*", "app"]` auto-includes them). When adapti