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.
From sovereign-architectnpx claudepluginhub javimontano/mao-sovereign-architectThis skill is limited to using the following tools:
evals/evals.jsonexamples/sample-output.mdprompts/use-case-prompts.mdreferences/body-of-knowledge.mdSystematic 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])Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.