Apply disciplined refactoring using small, verifiable steps. Use when improving code structure without changing behavior, extracting functions, renaming, moving code, or when the user asks to refactor.
$npx -y skills add finereli/refactoring --skill refactorInstalls into the current project.
Run `npx skills use "https://github.com/finereli/refactoring" --skill "finereli/refactoring/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/finereli/refactoring" that are relevant to the current task. Run `npx skills add "https://github.com/finereli/refactoring"` and select the relevant skills, then follow their instructions.