refactor
Installation
SKILL.md
Alignment Refactor
Restore naming, module boundaries, and structure so the code matches the concept capsule. Refactor immediately after green, while context is fresh.
Input
What feels off, or the scope to check: $ARGUMENTS
Before starting, locate:
- The concept capsule (glossary, invariants — naming authority). If none exists →
/pragma:capsulefirst. - The recent changes (files touched in the last slice)
- What feels off (if the user has a specific concern, start there)
Procedure
1. Audit naming
Compare every public name (types, functions, modules, test suites) against the capsule glossary: