ワンクリックで
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