Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sammcj/agentic-coding --skill rust-development -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/rust-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/rust-development/

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.

From the same set73

The whole set →
critical-thinking-logical-reasoning critical-thinking-logical-reasoning is a Claude Code skill that examines arguments in articles, reports and transcripts. It runs after an explicit request for critique. CX Codex +1 2,500installs writing-documentation-with-diataxis writing-documentation-with-diataxis — a skill that sorts technical documentation into the four Diataxis types and helps you write or review each one. CX Codex +1 648installs creating-development-plans The creating-development-plans skill drafts a phased development plan with task breakdowns, requirements, and QA checklists. It helps set clear checkpoints before writing code. CX Codex +1 338installs typescript-development typescript-development — a skill that enforces strict TypeScript conventions in Claude Code, applying type safety rules and best practices automatically for TypeScript and JavaScript projects. CX Codex +1 ★ 173repo stars python-development The python-development skill sets Python coding rules for Claude Code, covering environments, typing, paths, and script dependencies. Use it on Python projects. CX Codex +1 ★ 173repo stars deeper Rewrites your prompt so the task gets deeper rather than longer. It adds the methods a specialist would use and a way to check the result. CX Codex +1 ★ 173repo stars golang-development golang-development configures build flags, modernize checks, and idiomatic Go practices in Claude Code. Helpful when writing services or tests in Go. CX Codex +1 ★ 173repo stars edit-article edit-article restructures draft articles around heading dependencies and rewrites each section into short paragraphs under 240 characters. CX Codex +1 ★ 173repo stars

Project sponsors

Companies that keep this analytics open