code-smells
Installation
SKILL.md
Code Smells
Use this skill when
- Reviewing code quality
- Planning refactoring sessions
- Coaching developers on maintainability
Do not use this skill when
- Writing new code from scratch (apply principles instead)
- Only fixing a bug
Instructions
- Review for duplication and extract functions/classes.
- Flag long methods and god classes and name their responsibilities.
- Detect feature envy and data clumps.
- Identify switch/if chains that are polymorphism in disguise.
- Guard against speculative generality.
- Ground each recommendation in current pain, not theory.