원클릭으로
safe-refactoring
Refactor code without changing behavior. Small steps, green tests after every change, no mixing with feature work.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Refactor code without changing behavior. Small steps, green tests after every change, no mixing with feature work.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Karpathy-inspired guidelines: Think before coding, Simplicity first, Surgical changes, Goal-driven execution
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Write an actionable markdown plan before implementation. Bite-sized tasks, exact paths, complete code.
Write clear Conventional Commits. Imperative subject, explain why not what, one logical change per commit.
Optimize based on measurement, never guesswork. Profile first, fix the real bottleneck, verify the win.
Review PRs on GitHub: read diffs, leave inline comments, approve or request changes.
| name | safe-refactoring |
| description | Refactor code without changing behavior. Small steps, green tests after every change, no mixing with feature work. |
Core principle: Refactoring changes structure, NOT behavior. If tests change meaning, it is not a refactor.
NEVER mix refactoring with behavior changes in the same step.
If you need to do both, do them as separate, clearly-labeled changes.
BEFORE touching any code:
bash. If it is red, stop — fix or characterize first.Repeat in tiny increments:
bash.