Agent skill
cargo
Cargo Rust package manager and build system. Use for Rust crates.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/cargo
SKILL.md
Cargo
Cargo is Rust's build system and package manager. It is famous for its reliability and developer experience.
When to Use
- Rust Projects: Mandatory.
- Formatting/Linting:
cargo fmt,cargo clippy. - Testing:
cargo testis built-in.
Quick Start
cargo new my-project
cd my-project
cargo run
# Cargo.toml
[dependencies]
serde = "1.0"
Core Concepts
Crates
Packages. Published to crates.io.
Cargo.lock
Ensures reproducible builds. Always commit for binaries, ignore for libraries.
Workspaces
Manage multiple packages in one repo. [workspace] in root Cargo.toml.
Best Practices (2025)
Do:
- Use
cargo check: Faster thanbuildfor checking syntax during dev. - Use
clippy: Listen to the linter. It teaches you Rust. - Use
cargo-deny: Scan dependency tree for licenses and bans.
Don't:
- Don't bloat: Rust binaries can get huge. Use
cargo-bloatto analyze size.
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?