Skip to main content

refactoring-pass

Applies Martin Fowler's Refactoring discipline when changing existing code: preserve observable behavior, work in small reversible steps, establish a safety net before risky changes, and remove real structural friction without turning cleanup into a rewrite. Use whenever the user asks to refactor, clean up, restructure, extract a method, split a class, reduce duplication, or prepare code for an upcoming feature — or before/after implementing a feature, when the existing structure makes the change awkward. Trigger on phrases like "refactor this", "clean this up", "this is hard to change", "break this apart", "reduce duplication", or "make this more maintainable". Distilled from Fowler's book via the agent-rules-books project (MIT licensed); references/full-reference.md carries the complete rule set, including the refactoring-move and code-smell catalog, for deep audits.

Jump to install

Source facts

Repository
infinyte/custom_claude_skills
Last source activity
July 24, 2026 at 06:32
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.