agentleFS
jholhewresjholhewres/devclaw-skills/skills/cargo/SKILL.md

cargo

Skill4 starsChanged 9 months agoMITView on GitHub

Rust development: build, test, clippy, publish

  • Pipes a download into a shell
  • Installs packages

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the bash tool for Rust development with Cargo.

    line 7
  2. Distinctive:

    Use cargo clippy before committing

    line 65
  3. Distinctive:

    Use cargo audit for security vulnerabilities

    line 66
  4. Distinctive:

    Use cargo tree to visualize dependency graph

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cargo (Rust)

Use the bash tool for Rust development with Cargo.

Setup

  1. Check if installed:
    command -v cargo && cargo --version
  2. Install (rustup provides cargo):
    # macOS
    brew install rustup-init && rustup-init
    
    # Official installer (cross-platform)
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    source $HOME/.cargo/env

Build & Run

cargo build
cargo build --release
cargo run
cargo run --release

Test

cargo test
cargo test -- --nocapture
cargo test test_name
cargo test --doc
cargo bench

Lint & Format

cargo clippy -- -W clippy::pedantic
cargo fmt
cargo fmt -- --check

Dependencies

cargo add <crate>
cargo update
cargo tree
cargo audit

Publish

cargo publish --dry-run
cargo publish

Tips

  • Use cargo clippy before committing
  • Use cargo audit for security vulnerabilities
  • Use cargo tree to visualize dependency graph

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.