AI AGENT ADDONS

M15 Anti Pattern

zhanghandong/rust-skills

When you read source code, some patterns hide real problems. This guide helps you spot the difference between a quick fix and a deep design issue. You will learn to recognize common mistakes like using .clone() everywhere or .unwrap() in production. These choices can lead to runtime crashes or slow performance. The skill shows you better ways to write your code.

Think of it as a checklist for code reviews. You can ask if the code fights the language or flows with it. Instead of cloning to escape the borrow checker, use proper references. Instead of unwrapping because it should never fail, handle errors with the ? operator. Each anti-pattern has a clear fix.

New Rust developers often fall into these traps. This skill ranks the top five beginner mistakes and explains how to fix them. It also traces each bad pattern to deeper ownership or design problems. You will learn to refactor confidently and write cleaner Rust code.

Add M15 Anti Pattern skill to your workflow

Global

mkdir -p ~/.claude/skills/m15-anti-pattern

Project

mkdir -p .claude/skills/m15-anti-pattern

Source Repository

Stars
1,264
Forks
104
Watchers
1,264
Last Push
1 month ago
Created
6 months ago