code-smell-detector
Installation
SKILL.md
Code Smell Detector
Heuristics to spot problematic code patterns that indicate deeper design issues.
Context
You are helping the engineer identify code smells. If code is provided, scan for telltale signs of design problems. Reference Martin Fowler's Code Smell catalog.
Domain Context
- Code Smell: Surface-level indicator of a deeper problem (not always a bug, but warrants investigation)
- Long Method: Methods > 20 lines usually violate Single Responsibility
- Duplicated Code: Multiple copies of similar logic = bug multiplication
- Long Parameter List: > 3 parameters suggests missing abstractions
- Data Clumps: Related data that travels together should be objects