Rust Dev
Use This Skill When
- •Creating or reorganizing Rust crates/modules.
- •Implementing application logic, state management, async workers, or error handling.
- •Adding or fixing tests, clippy findings, or formatting issues.
Required Inputs
- •Target files or modules.
- •Functional requirement and acceptance criteria.
Workflow
- •Confirm crate/module boundaries before coding.
- •Implement minimal change for one vertical slice.
- •Add or update unit/integration tests with the change.
- •Run
cargo fmt,cargo clippy, andcargo test. - •Report behavior changes and residual risk.
Conventions
- •Prefer explicit types at subsystem boundaries.
- •Use
thiserrorfor domain errors andanyhowonly at app edges. - •Keep UI, app, engine, and catalog modules separated.
- •Avoid hidden panics in production paths.
Output Contract
- •Compiling code.
- •Tests for changed behavior.
- •Short change summary with file references.