rust
Installation
SKILL.md
Rust Development (Lean)
When to use
.rsfiles andCargo.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
Result<T, E>and?used consistently.- Avoid panics in non-test code paths unless explicitly fatal.
- Serialization contracts versioned when exposed externally.
- Concurrency primitives chosen deliberately (
Mutex,RwLock, channels, semaphore).
Validation checklist
cargo fmtclean.cargo clippyclean.- Tests pass.
- New dependencies justified.
References
- references/reference.md - compact guidance and docs links
- references/examples.md - concise service/test patterns
../AGENT_SKILL_SPEC.md- shared Anthropic/Copilot alignment
Related skills
More from ven0m0/claude-config
llm-boost
|
20uv
|
11substituting-modern-tools
Substitutes modern performant tools for legacy equivalents in generated code (npm→bun, find→fd, pip→uv, grep→rg, jq→jaq, eslint→biome, black→ruff, git→gix). Use when generating shell commands or scripts.
9linter autofix patterns
Cross-language linter autofix commands and common fix patterns for biome, ruff, clippy, shellcheck, and more.
9moai-tool-svg
>
5building-mcp-servers
Creates high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services. Use when building MCP servers to integrate APIs, designing tool schemas, or implementing Python (FastMCP) or TypeScript (MCP SDK) servers. Triggers include "MCP server", "tool schema", "model context protocol", or "FastMCP".
5