Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Restructures existing code without changing behavior, re-running the full test suite after each named refactoring.
2 of 25 test cases passed with the skill.
3 of 3 safety checks passed
Not used yet
The rules the /refactor skill enforces, with their provenance. Pull this file when a step needs the full rule, when a
run feels off, or when the user asks why the skill refused to proceed.
Refactoring (noun): a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior. Refactoring (verb): to restructure software by applying a series of refactorings without changing its observable behavior. Both are Fowler's definitions; the formal version (Opdyke, 1992) is that for the same set of input values, the resulting set of output values is the same before and after the change.
Two consequences the skill enforces:
Each plan item is one named refactoring: extract function, inline function, rename, move function or field, extract variable, replace conditional with polymorphism, replace temp with query, and the rest of the catalog at refactoring.com/catalog. The names matter because a named refactoring has a bounded, known mechanic, and the evidence on agent-driven refactoring is blunt: naming the specific refactoring dramatically outperforms open-ended "improve this code" instructions, which identify few real opportunities and tend to make structure worse, not better.
The catalog is a vocabulary, not a straitjacket. It is Java-flavored in origin; apply the intent through the project's language idioms (a React component extraction, a Python module split, a Go interface narrowing are all catalog moves
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.