refactor

Installation
SKILL.md

Refactor

Systematic refactoring in atomic named steps: establish a test baseline, identify targets, plan the sequence, execute one technique at a time, and verify tests pass after every step.

Purpose

Improve code structure without changing observable behavior, using a step-by-step plan where each step is a named refactoring technique and every step is verified by tests.

Trigger

Apply when user requests:

  • "refactor this", "clean up code", "restructure", "reorganize"
  • "improve readability", "reduce complexity", "eliminate duplication"
  • "apply design pattern", "extract method", "extract class", "move method"
  • "重構", "整理代碼", "消除重複", "改善可讀性", "拆分函式"
Installs
2
First Seen
Apr 5, 2026
refactor — roger-235/my_skill_repo