Refactor

Improves code structure without changing behavior. Use for cleanup, deduplication, rename passes, or /refactor. Proposes first; implements after approval.

Axidify Updated

File contents

Refactor

Checklist

  1. For large refactors, run review (clean-code pass) on scope first
  2. Read all code in scope
  3. Note: duplication, naming, coupling, complexity, inconsistent patterns
  4. Propose changes with rationale — wait for approval
  5. Implement — no intentional behavior change
  6. Run existing tests and build
  7. Report: what improved, what you left alone and why

Boundaries

  • Not the right tool for new features — use plan + implement
  • Not for framework upgrades or breaking API changes — say so; get approval for a migration pass
  • Prefer mechanical refactors (rename symbol, extract function) in small commits
  • Limit blast radius; split large refactors across steps if the user agrees

If behavior must change

Say so explicitly and get approval — then treat as implement, not refactor.

Related skills

  • test — prove behavior unchanged
  • review — before merge
  • plan — when refactor scope is large or unclear

Axidify/cursor-agent-skills/tree/main/skills/refactor commit 47e97757f8

Frequently asked questions

npx skillmds@latest add axidify/refactor