Reviewing a diff, or code that feels wrong without an obvious reason. Name each smell from Fowler's catalog, then apply the refactoring that removes it.
Ships in killall-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A smell is a named symptom; each has known refactorings. Name the smell before touching the code — the name picks the fix.
Done when: every smell found has a refactoring applied or a stated reason to leave it.
Yields to: surgical scope — smells outside the code under change are reported, not fixed.
| Smell | Refactorings |
|---|---|
| Mysterious Name | Change Function Declaration, Rename Variable, Rename Field |
| Duplicated Code | Extract Function, Slide Statements, Pull Up Method |
| Long Function | Extract Function, Decompose Conditional, Split Loop, Replace Temp with Query |
| Long Parameter List | Introduce Parameter Object, Preserve Whole Object, Remove Flag Argument |
| Global Data | Encapsulate Variable |
| Mutable Data | Encapsulate Variable, Split Variable, Separate Query from Modifier, Replace Derived Variable with Query |
| Divergent Change | Split Phase, Extract Class, Move Function |
| Shotgun Surgery | Move Function, Move Field, Combine Functions into Class |
| Feature Envy | Move Function, Extract Function |
| Data Clumps | Extract Class, Introduce Parameter Object |
| Primitive Obsession | Replace Primitive with Object (see parse-dont-validate) |
| Repeated Switches | Replace Conditional with Polymorphism |
| Loops | Replace Loop with Pipeline |
| Lazy Element | Inline Function, Inline Class |
| Speculative Generality | Remove Dead Code, Inline Function, Collapse Hierarchy |
| Temporary Field | Extract Class, Introduce Special Case |
| Message Chains | Hide Delegate, Move Function |
| Middle Man | Remove Middle Man, Inline Function |
| Insider Trading | Move Function, Move Field, Hide Delegate |
| Large Class | Extract Class, Extract Superclass |
| Alternative Classes with Different Interfaces | Change Function Declaration, Extract Superclass |
| Data Class | Encapsulate Record, Move Function |
| Refused Bequest | Replace Subclass with Delegate, Push Down Method |
| Comments | Extract Function, Change Function Declaration, Introduce Assertion |
In Rust and Go, read "class" as a struct with its methods, or a module.
Each refactoring's mechanics: https://refactoring.com/catalog/<camelCaseName>.html, for example
extractFunction.
In the wild:
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Nov 10, 2026
15 skills in this plugin
/architectural-reviewReview a codebase's architecture. Finds hotspots in git history, walks them for friction, writes an HTML report of deepening candidates with before/after diagrams, proposes glossary terms, and suggests beads for the work. Words after the command name a direction (a module, a subsystem, a pain point)./catch-upRebuild a human's lost context on the work in flight after reconciling the current checkout's dangling changes — commit what belongs to an open PR, discard what already landed, sync the branch — then summarize the state of play, decisions, live PRs and tickets, and the single next step. Use when the user says "catch me up", "where were we", "what's the state of this", "get back on track", or invokes `/catch-up` after time away./Other plugins' skills for the same job
/killall-skills:smell-to-refactoringfrom killall-skills
npx claudepluginhub killallgit/killall-skills --plugin killall-skills