A refactor is the one change where "it still works" is the entire acceptance criterion, and it is the change most likely to be claimed rather than proven.
Scope
plugins/refactor/skills/refactor/SKILL.md, tools: full.
- Establish the baseline FIRST. Run the suite before touching anything and record the result. A refactor with no green baseline is not a refactor, it is a rewrite with optimism.
- One behaviour-preserving change at a time, each with the suite run after it. Bundling is how a refactor smuggles in a bug nobody can find later.
- Refuse to bundle a behaviour change. If a fix is spotted along the way, name it and leave it. "I noticed X and did not change it" is the correct output.
- Say what the tests do NOT cover. If a module has no tests, a refactor of it is unproven, and the honest report says so instead of "all tests pass".
- Report the diff by intent, not by file: what moved, what was renamed, what was extracted, and what stayed identical.
Acceptance
A refactor is the one change where "it still works" is the entire acceptance criterion, and it is the change most likely to be claimed rather than proven.
Scope
plugins/refactor/skills/refactor/SKILL.md,tools: full.Acceptance
plugin.jsonandmarketplace.jsonupdated