Back to Skills

m15-anti-pattern

Use when reviewing code for anti-patterns. Keywords: anti-pattern, common mistake, pitfall, code smell, bad practice, code review, is this an anti-pattern, better way to do this, common mistake to avoid, why is this bad, idiomatic way, beginner mistake, fighting borrow checker, clone everywhere, unwrap in production, should I refactor, 反模式, 常见错误, 代码异味, 最佳实践, 地道写法

1,070stars97forksUpdated 4/28/2026

Security Assessment

Safe(100/100)
Security Score100/100

About m15-anti-pattern

The m15-anti-pattern skill is designed to assist developers in identifying and addressing common anti-patterns in their code during reviews. It focuses on recognizing practices that may lead to inefficient or problematic code, such as excessive cloning, improper error handling, and misuse of ownership principles in Rust. By highlighting these issues, the skill helps developers understand the underlying design problems and encourages them to adopt more idiomatic solutions that align with Rust's ownership model and safety guarantees.

FAQ

How do I use the m15-anti-pattern skill?

This skill is invoked during code reviews to identify anti-patterns and suggest better practices.

Is this skill compatible with all Rust projects?

Yes, it can be applied to any Rust project where code reviews are conducted.

Are there any limitations to this skill?

The skill does not automatically refactor code; it provides guidance and suggestions for improvement.

Can this skill help beginners?

Absolutely, it highlights common beginner mistakes and offers practical fixes.

What should I do if I encounter an anti-pattern?

Refer to the suggested better patterns and consider refactoring your code accordingly.

All Files

2 files
patterns/common-mistakes.md8.1 KB
View
SKILL.md4.7 KB
View

Install m15-anti-pattern

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill