Restructure existing code safely without changing externally observable behavior. Composes context, design, architecture, code quality, and testing guardrails into a characterization-first refactoring workflow. Use when the user says 'refactor this', 'clean this up', 'untangle this module', 'move this to the right layer', 'simplify this code', or 'improve this structure'.
$npx -y skills add techygarg/lattice --skill refactor-safelyInstalls into the current project.
Run `npx skills use "https://github.com/techygarg/lattice" --skill "techygarg/lattice/refactor-safely"` 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/techygarg/lattice" that are relevant to the current task. Run `npx skills add "https://github.com/techygarg/lattice"` and select the relevant skills, then follow their instructions.