rust-development · sammcj — Claude Code skill: what it does, how to install
rust-development instructs Claude Code to follow Rust best practices by organizing crates into workspaces, trimming public generics, and cutting build times.
Apache-2.0 ★ 173 updated 2026-10-24
npx skills add sammcj/agentic-coding --skill rust-development -a claude-codeWhat rust-development does
This skill provides Claude Code with concise architectural guidance for Rust codebases. It instructs the assistant to adopt current Rust and Cargo features for optimal performance and manage crate boundaries deliberately.
Four main rules govern code generation. The agent divides codebases into workspaces with internal crates to keep compilation cycles short. It avoids leaking generics across public or inter-crate boundaries without a serious reason. External dependency bloat stays down because the skill restricts crate features to strictly required ones.
Unchecked monomorphization and bloated dependencies slow down Rust compilers quickly. Having these constraints in the agent prompt prevents long feedback loops during iterative coding.
What it helps with
- split monolithic codebases into workspaces and internal crates
- avoid unnecessary monomorphization by hiding public generics
- disable unused feature flags on external crates
- adopt current Rust and Cargo features for better performance
Example prompts for the agent
- Refactor this project into a Cargo workspace with distinct internal crates
- Design the library API without exposing generics in the public interface
- Add the reqwest dependency in Cargo.toml with only the required features
How to install rust-development
1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill rust-development -a claude-code2Manually: put the files in place
~/.claude/skills/rust-development/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/rust-development/
1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill rust-development -a codex2Manually: put the files in place
.agents/skills/rust-development/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill rust-development -a cursor2Manually: put the files in place
.cursor/skills/rust-development/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install sammcj/agentic-coding Skills/rust-development/SKILL.md2Manually: put the files in place
.github/skills/rust-development/SKILL.md1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill rust-development -a gemini-cli2Platform CLI
gemini skills install https://github.com/sammcj/agentic-coding --path Skills/rust-developmentManually: put the files in place
.devin/skills/rust-development/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about rust-development
How to install rust-development in Claude Code?
Run npx skills add sammcj/agentic-coding --skill rust-development -a claude-code in your terminal.
What does the rust-development skill do?
It sets coding constraints for Rust projects, directing the model to manage workspace crates, avoid public generics, and selectively enable dependency features.
Why does rust-development advise against public generics?
Exposing generics across crate boundaries causes extensive monomorphization, which inflates compilation times.
Source text
SKILL.md · Apache-2.0
--- name: rust-development description: You MUST activate this skill when working on Rust projects --- # Rust - Use the latest Rust and Cargo versions and features to ensure optimal performance - Consider using rust workspaces and divide the project into distinct internal crates to reduce build times - Avoid exposing generics via public or inter-crate APIs (unless there is a really good reason) - Only activate required features on external crates
© sammcj · Apache-2.0 · sammcj/agentic-coding
Similar skills
All skills for Programming languages →rust-development by other authors comes first.