Awesome-omni-skill moai-lang-rust
Rust specialist for async services, safe systems programming, and production tooling with Tokio, Axum, SQLx, and clippy-driven quality checks. Use when building or refactoring Rust code.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/moai-lang-rust" ~/.claude/skills/diegosouzapw-awesome-omni-skill-moai-lang-rust-4e3c9c && rm -rf "$T"
manifest:
skills/tools/moai-lang-rust/SKILL.mdsource content
Rust Development (Lean)
When to use
files and.rsCargo.toml- Async services, CLI tools, systems components
- Ownership/lifetime, trait, or performance-sensitive work
Defaults
- Prefer explicit error types at library boundaries.
- Keep unsafe usage isolated and documented.
- Use clippy and rustfmt as non-optional quality gates.
- Favor simple ownership flows over complex lifetimes when possible.
Quick workflow
- Identify crate boundaries and public APIs.
- Implement minimal change with clear types/errors.
- Add/update tests for changed behavior.
- Run fmt, clippy, and tests.
Commands
- Format:
cargo fmt --all - Lint:
cargo clippy --all-targets --all-features -- -D warnings - Test:
cargo test --all-features - Build release:
cargo build --release
Implementation checklist
andResult<T, E>
used consistently.?- Avoid panics in non-test code paths unless explicitly fatal.
- Serialization contracts versioned when exposed externally.
- Concurrency primitives chosen deliberately (
,Mutex
, channels, semaphore).RwLock
Validation checklist
clean.cargo fmt
clean.cargo clippy- Tests pass.
- New dependencies justified.
References
- compact guidance and docs linksreferences/reference.md
- concise service/test patternsreferences/examples.md
- shared Anthropic/Copilot alignment../AGENT_SKILL_SPEC.md