원클릭으로
refactor
Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Release a new version of the project.
Inspect git status, draft a commit message that matches the repo's style, and commit staged changes.
Ask focused clarifying questions to resolve ambiguous requirements before planning or implementing work.
Explain code, behavior, architecture, or diffs with concrete references to the relevant files.
Diagnose failing tests, determine whether code or tests are wrong, and make the smallest passing fix.
Review current code changes for bugs, regressions, test gaps, and project-guideline violations.
| name | refactor |
| description | Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests. |
Refactor goal (optional): $ARGUMENTS
Clarify the target. Identify the specific code, behavior, or design issue the user wants improved. If the goal is broad, choose the smallest useful scope and state that assumption before editing.
Establish current behavior. Read the relevant code and tests before changing anything. Prefer existing abstractions and local patterns over new ones.
Plan a behavior-preserving change.
Edit surgically.
Verify behavior.
Report the result. Summarize what changed, why it remains behavior preserving, and which verification commands passed.