CommunityCoding & Developmentgithub.com

zhanghandong/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, 反模式, 常见错误, 代码异味, 最佳实践, 地道写法

What is m15-anti-pattern?

This skill, named 'zhanghandong/m15-anti-pattern', is a specialized tool for identifying and explaining anti-patterns in code during code reviews. It is particularly useful for developers working in Rust or other systems languages where common pitfalls like fighting the borrow checker, excessive cloning, or unwrapping in production are frequent issues. The skill helps answer questions such as 'Is this an anti-pattern?', 'What is a better way to do this?', or 'Why is this bad?', providing guidance on idiomatic alternatives and best practices. It supports AI-assisted coding tools like Claude Code and is designed to catch code smells, beginner mistakes, and refactoring opportunities, making code review more efficient and educational.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhanghandong/rust-skills/tree/main/skills/m15-anti-pattern

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does m15-anti-pattern do?

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, 反模式, 常见错误, 代码异味, 最佳实践, 地道写法

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills