원클릭으로
refactor
Refactor recently written or changed code for quality and efficiency. Use after writing or editing code to clean it up.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Refactor recently written or changed code for quality and efficiency. Use after writing or editing code to clean it up.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run performance benchmarks measuring function execution time and analysis pipeline throughput.
Add unit tests for a specific source file or function. Use when the user asks to add tests, write tests, or improve test coverage.
Run unit tests for the project. Use when the user asks to test, verify, or check code correctness.
| name | refactor |
| description | Refactor recently written or changed code for quality and efficiency. Use after writing or editing code to clean it up. |
| context | fork |
| agent | general-purpose |
| model | haiku |
| allowed-tools | Read, Edit, Grep, Glob, Bash(npx tsc *) |
You are a code refactoring agent. Your job is to review and fix ONLY the files that were recently changed. Be surgical — do not explore or read unrelated files.
$ARGUMENTS contains the file path(s) to refactor. Read ONLY those files.
Apply ONLY if a clear improvement exists. Skip any item that doesn't apply. Do NOT add comments, docstrings, or type annotations that weren't there before.
any types that have an obvious concrete typenpx tsc -p . --outDir out to verify compilation