Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
$npx -y skills add devantler-tech/ksail --skill refactorInstalls into the current project.
Run `npx skills use "https://github.com/devantler-tech/ksail" --skill "devantler-tech/ksail/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/devantler-tech/ksail" that are relevant to the current task. Run `npx skills add "https://github.com/devantler-tech/ksail"` and select the relevant skills, then follow their instructions.