# rust-best-practices

> Write idiomatic, clippy-clean Rust across ownership, API design, and error handling

- **Publisher**: Morgan Linton (BeautifulRust) (Verified Publisher)
- **Upstream GitHub Repository**: https://github.com/morganlinton/BeautifulRust/tree/main/skills/rust-best-practices
- **skills.sh Listing**: https://skills.sh/morganlinton/BeautifulRust/rust-best-practices
- **License**: MIT
- **GitHub Stars**: 2,081
- **Canonical Web Page**: https://builderthread.dev/skill/morganlinton/BeautifulRust/rust-best-practices
- **Parent Topic**: [rust](https://builderthread.dev/skill/for/rust.md)
- **Last Audited**: 2026-11-21
- **Supported Coding Agents**: Claude Code, Cursor, Codex, Windsurf, Gemini CLI

## Overview
Audited MIT-licensed Rust agent skill from BeautifulRust teaching Claude Code, Cursor, and Codex idiomatic ownership, domain types, error handling, and tested Clippy rules.

Inspect the full upstream `SKILL.md` source and license on GitHub before installing: https://github.com/morganlinton/BeautifulRust/tree/main/skills/rust-best-practices

## Install Command
```bash
npx skills add morganlinton/BeautifulRust --skill rust-best-practices
```

## When to Use This Skill
- Writing new Rust binaries, libraries, web services, or Tauri commands
- Eliminating excessive .clone(), .unwrap(), and defensive Arc<Mutex<T>> patterns
- Enforcing strict Clippy and rustfmt verification before returning patches

## Focus Areas
- Ownership & borrowing
- Domain type design
- thiserror & anyhow
- Clippy verification gates
- Zero-cost iterators

## Upstream Package Files
- `skills/rust-best-practices/SKILL.md`

---

## Ship With a Private Starter Repo, Living PRD & MCP Tasks

Builderthread pairs verified stack skills with a cited market brief, living PRD, private GitHub starter repo, and ordered MCP tasks for Claude Code, Cursor, and Codex.

- Supported languages: Rust, TypeScript, React Native (Expo), Python
- Starter stacks: Next.js SaaS, Hono API, FastAPI AI, Expo mobile, Tauri Rust desktop, WXT Chrome extension
- Start now: https://builderthread.dev/auth/signup
