From all-skills
Identifies and refactors Rust anti-patterns and clippy anti-idioms for code review and refactoring.
How this skill is triggered — by the user, by Claude, or both
Slash command
/all-skills:plugins-languages-rust-skills-anti-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Catalog of Rust anti-patterns and clippy anti-idioms for reviewers and implementers actively hunting code to fix or remove. Complements `/rust:troubleshooting` (which teaches the idiomatic GOOD patterns) by naming the BAD patterns explicitly, with detection hints.
Catalog of Rust anti-patterns and clippy anti-idioms for reviewers and implementers actively hunting code to fix or remove. Complements /rust:troubleshooting (which teaches the idiomatic GOOD patterns) by naming the BAD patterns explicitly, with detection hints.
Activate when:
.clone(), &Vec<T> parameter, unwrap(), or sentinel return value is a bug to fixRust Design Patterns book (anti-patterns, idioms) and the Clippy lint index — full attribution per entry in references/anti-patterns.md, dated URLs in sources.md.
// BAD: clippy::ptr_arg — forces callers to hold an owned Vec
fn process(data: &Vec<i32>) { /* ... */ }
// GOOD: accepts a Vec, an array, or a slice via deref coercion
fn process(data: &[i32]) { /* ... */ }
The full catalog (9 entries) is in references/anti-patterns.md.
references/anti-patterns.mdrestraint: comment or documented tradeoff can justify what looks like an anti-pattern; anti-patterns are defaults to avoid, not absolute bansEvery entry in references/anti-patterns.md cites its source URL. Do not assert a clippy lint name, its default-enabled status, or a "this catches N% of cases" claim without verifying against the linked clippy documentation — see /core:anti-fabrication.
npx claudepluginhub vinnie357/claude-skills --plugin sbx2plugins reuse this skill
First indexed Jul 19, 2026
Identifies and refactors Rust anti-patterns and clippy anti-idioms for code review and refactoring.
Reviews code for anti-patterns like excessive cloning, unwrap in production, and fighting the borrow checker. Helps identify when a pattern hides a design problem and suggests idiomatic alternatives.
Guides Rust best practices, common patterns, and idiomatic code including borrowing, error propagation, iterators, and design patterns like builder and newtype.