Agent skill
forge-lang-rust
Rust development standards including cargo test, clippy, and rustfmt. Use when working with Rust files, Cargo.toml, or Rust tests.
Install this agent skill to your Project
npx add-skill https://github.com/martimramos/claude-forge/tree/main/skills/languages/rust
SKILL.md
Rust Development
Testing
# Run all tests
cargo test
# Run with output
cargo test -- --nocapture
# Run specific test
cargo test test_name
# Run ignored tests
cargo test -- --ignored
Linting
# Run clippy
cargo clippy -- -D warnings
# Check without building
cargo check
Formatting
# Format code
cargo fmt
# Check format without changing
cargo fmt --check
Project Structure
project/
├── src/
│ ├── lib.rs
│ └── main.rs
├── tests/
│ └── integration_test.rs
├── Cargo.toml
└── README.md
Cargo.toml Template
[package]
name = "project-name"
version = "0.1.0"
edition = "2021"
[dependencies]
[dev-dependencies]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
all = "warn"
pedantic = "warn"
TDD Cycle Commands
# RED: Write test, run to see it fail
cargo test test_new_feature
# GREEN: Implement, run to see it pass
cargo test test_new_feature
# REFACTOR: Clean up, ensure tests still pass
cargo test && cargo clippy && cargo fmt --check
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
forge-lang-c
C development standards including make, gcc/clang, valgrind, and cppcheck. Use when working with C files, Makefiles, or CMakeLists.txt.
forge-lang-terragrunt
Terragrunt wrapper for Terraform with DRY configurations. Enforces plan-before-apply workflow. Use when working with terragrunt.hcl files.
forge-lang-cpp
C++ development standards including make/cmake, g++/clang++, and static analysis. Use when working with C++ files (.cpp, .hpp, .cc, .hh).
forge-lang-ansible
Ansible automation safety practices. Enforces check-mode-first workflow. Use when working with playbooks, roles, or inventory files.
forge-lang-typescript
TypeScript development standards including type checking, jest/vitest, eslint, and prettier. Use when working with TypeScript files, tsconfig.json, or .ts/.tsx files.
forge-lang-python
Python development standards including pytest, ruff, black, and mypy. Use when working with Python files, tests, or dependencies.
Didn't find tool you were looking for?