name: refactoring-techniques description: Catalog of code smells and refactoring techniques. Use when a smell is detected in review or before delivering code. metadata: version: "1.0.0"
neuron: refactoring-techniques
triggers_when: a code smell is detected or code is refactored before delivering
tier: T2
budget: 500 tokens
eval: smell detected with correct cure applied -> threshold 1
reward: pheromone +1 if eval >= threshold
Procedure
Detect the smell by category: bloaters, OO abusers, change preventers, dispensables, couplers.
Identify the signal (function >30 lines, 4+ parameters, duplication).
Apply the corresponding cure (Extract Method, Extract Class, Move Method).
Assign severity (critical/high/medium/low) and prioritize.