refactor

Installation
SKILL.md

/refactor — Safe Multi-File Refactoring

Orientation

Use /refactor when you need to:

  • Rename a symbol, file, or module across the codebase
  • Extract a function, component, hook, class, or module from existing code
  • Inline a function or module back into its callers
  • Move a file or set of files to a new location
  • Split a large file into smaller pieces
  • Merge related files into one
  • Change a function signature and update all call sites

Don't use when: debugging a specific bug (use /systematic-debugging); adding new features (use /marshal or /scaffold); deleting dead code (use /marshal for a targeted cleanup).

Behavior does not change. Tests pass before and after, no new type errors — the refactoring is correct.

Commands

Related skills
Installs
6
GitHub Stars
536
First Seen
Mar 26, 2026