Safe multi-file refactoring with automatic rollback. Establishes a type/test baseline, plans all changes, executes file-by-file, and verifies zero regressions. Reverts if verification fails after two fix attempts. Handles renames, extracts, moves, splits, merges, and inlines.
$npx -y skills add sethgammon/citadel --skill refactorInstalls into the current project.
Run `npx skills use "https://github.com/sethgammon/citadel" --skill "sethgammon/citadel/refactor"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/sethgammon/citadel" that are relevant to the current task. Run `npx skills add "https://github.com/sethgammon/citadel"` and select the relevant skills, then follow their instructions.