refactoring-cataloglisted
Install: claude install-skill ch4570/vulpora
# Refactoring Catalog
A skill that improves structure through **smell → prescription → small steps** by applying
Martin Fowler's *Refactoring* (2nd ed.) catalog + a code-smell taxonomy + Clean Code heuristics.
For grounding facts see this skill's `reference/kb/` (smell taxonomy, function/class refactorings,
conditionals/polymorphism, encapsulation moves, etc.); for higher-level principles see
`reference/principles.md`. The index is `reference/kb/INDEX.md`
(if you can't find the path, Glob for `principles.md`/`INDEX.md` from the bundle root).
## Application order (proceed exactly like this)
1. **Confirm the safety net** — grep for the target's regression tests. If absent, **write a characterization test first** (without one, cap a large change at MEDIUM).
2. **Smell scan** — identify smells with the review hooks in `reference/kb/code-smells.md` and route through `reference/kb/INDEX.md`.
3. **Catalog mapping** — prescribe a **named refactoring** for each smell (table below).
4. **Design small steps** — split the prescription into behavior-preserving units and compile/test after each step.
5. **Report** — Before/After + applied steps + verification commands. Prioritize by value÷risk.
## Smell → refactoring quick table
| Smell | Prescription (catalog) |
|---|---|
| Duplicated code | Extract Function / Pull Up Method |
| Long function | Extract Function, Replace Temp with Query, Decompose Conditional |
| Long parameter list | Introduce Parameter Object, Preserve Whole Object