rust-skills

Applies 265 prioritized Rust coding rules when writing, reviewing, or refactoring Rust code.

1|Updated May 25, 2020
One-click install
npx skills add https://github.com/titaneric/dotfiles --skill rust-skills-titaneric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-skills
Source: https://github.com/titaneric/dotfiles/tree/main/dot_agents/skills/rust-skills
Command: npx skills add https://github.com/titaneric/dotfiles --skill rust-skills-titaneric

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding agents often produce average Rust code that overuses clone(), unwraps everything, and misses idiomatic patterns. This Skill provides 265 expert-curated rules across 26 categories so generated and reviewed Rust code follows ownership, error handling, async, and performance best practices current for Rust 1.96 (2024 edition). ## Core Features & Use Cases - Prioritized Rule Index: 265 rules organized into 26 categories ranked by impact, from CRITICAL ownership and error handling rules down to linting and anti-patterns, each with a one-line summary for quick lookup. - Progressive Disclosure: Each rule lives in its own Markdown file under rules/ with a why-it-matters explanation, bad and good code examples, and cross-links, so only relevant rules are loaded into context. - Use Case: Ask the agent to review an async function, and it pulls the async-, conc-, and own- prefixed rules to catch issues like holding a Mutex across an await point or missing cancellation safety in tokio::select! branches. ## Quick Start Ask the agent to review your Rust function using the rust-skills guidelines, for example by invoking /rust-skills followed by a request such as checking whether your error handling is idiomatic.

Frequently Asked Questions about rust-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use rust-skills to review my Rust code?

Invoke the skill with /rust-skills followed by your request, such as asking it to review a function or check error handling. The agent loads the relevant rule categories and applies them to your code.

What Rust topics do these coding rules cover?

The 265 rules span 26 categories including ownership and borrowing, error handling, memory optimization, unsafe code, async and concurrency, API design, serde, macros, testing, observability, and performance. Rules are current for Rust 1.96 and the 2024 edition.

Which AI coding agents support this skill?

It works with Claude Code, Cursor, Windsurf, Copilot, Codex, Aider, Zed, Amp, Cline, and other agents that support skills. CLAUDE.md and AGENTS.md are symlinks to SKILL.md so the same content works across agent conventions.

How do I install rust-skills for Claude Code or Cursor?

Run npx add-skill leonardomso/rust-skills and the CLI installs it for your detected agents. Alternatively, clone the repository into your agent's skills directory, such as ~/.claude/skills/rust-skills for Claude Code.

Why does the skill use separate rule files instead of one document?

SKILL.md acts as a lightweight index with one-line summaries, while each rule lives in its own file under rules/. This progressive disclosure lets the agent load only the handful of rules relevant to your code, keeping context small.