with one click
refactor
Improve the shape of existing code without changing behavior.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Improve the shape of existing code without changing behavior.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Break a spec, brief, issue tracker item, or user request into agent-sized tasks, using phases and milestones only when they clarify larger work, delivered to exactly one destination.
Bootstrap a new or empty project repository with a local skeleton: README, license, .gitignore, AGENTS.md, docs, and optional commit or push only when explicit. Interview the repo creator when file-changing decisions are unclear.
Create a traceable Git branch for the current task.
Verify browser-rendered work in a real browser. Use for HTML, UI, visual docs, presentations, local apps, and browser-facing changes.
Stage intended changes and create one Conventional Commit.
Find and fix the root cause when something breaks: a failing test, a broken build, a bug report, or behavior that doesn't match expectations. Use when the user says 'debug', 'why is this failing', 'fix this bug', or when a failure interrupts other work.
| name | refactor |
| description | Improve the shape of existing code without changing behavior. |
| user-invocable | true |
| argument-hint | [optional files, diff, commit, or cleanup focus] |
Improve code shape without changing behavior. Use when the user asks to refactor, simplify, tidy, clean up, reduce duplication, improve design, or improve maintainability.
$ARGUMENTS, specified files, git diff, staged changes, or the latest commit.git diff HEAD; otherwise review git diff.Find behavior-preserving changes: