Restructure existing code without changing its behavior — extract, rename, inline, split, deduplicate, reshape — with tests holding behavior fixed before and after. Scoped to structure only: no new features, no bug fixes, no behavior changes. Use when the user says "refactor", "clean up the structure", "extract this", "split this file", "untangle", or "restructure".
$npx -y skills add genai-io/san --skill refactorInstalls into the current project.
Run `npx skills use "https://github.com/genai-io/san" --skill "genai-io/san/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/genai-io/san" that are relevant to the current task. Run `npx skills add "https://github.com/genai-io/san"` and select the relevant skills, then follow their instructions.