Agent skill
rust-conventions
Work on Rust crates in packages/rust_viterbo. Use for crate layout, commands (fmt/clippy/test/bench), and coding conventions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/rust-conventions
SKILL.md
Rust Conventions (rust_viterbo)
Crates
geom(math)algorithm(symplectic capacity algorithms)ffi(PyO3/Maturin bindings)
Commands
cargo fmtcargo clippy --workspace --all-targetscargo test --workspacecargo test --release <filter>cargo bench
Conventions
- Favor pure functions with immutable types.
- Follow best practices for mathematically correct Rust code.
- Use
nalgebrafor linear algebra operations.
Testing and profiling
- Cover happy paths, edge cases, error paths.
- Benchmark only after profiling identifies hotspots.
- Document why changes are made (e.g., performance impact).
Caching
- Shared target dir:
/workspaces/worktrees/shared/target(set by worktree script).
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?