Identifies code smells, anti-patterns, and structural decay in codebases using systematic pattern matching. Trigger: detect smells, find anti-patterns, review code quality, check code hygiene.
The canonical home for this skill is code-smell-detector in JaviMontano/mao-sovereign-architect
Systematic identification of code smells and anti-patterns that signal structural decay, maintainability risk, or design violations.
A code smell is not a bug — it is a hypothesis that something is wrong. Verify the hypothesis before prescribing the cure.
Scan the codebase against established smell categories:
| Category | Signals |
|---|---|
| Bloaters | Long methods (>40 lines), large classes (>300 lines), long parameter lists (>4 params), primitive obsession |
| Object-Orientation Abusers | Switch statements on type, refused bequest, parallel inheritance hierarchies |
| Change Preventers | Divergent change (one class changed for many reasons), shotgun surgery (one change touches many classes) |
| Dispensables | Dead code, speculative generality, duplicate code, lazy classes with no responsibility |
| Couplers | Feature envy, inappropriate intimacy, message chains, middle man |
Use automated signals to find candidates:
For each detected smell, evaluate:
Organize findings by actionability:
[HECHO], [INFERENCIA], [SUPUESTO])b56591e
Canonical home
since Aug 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.