ワンクリックで
ワンクリックで
| 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 this when the user asks to refactor, simplify, tidy, clean up, reduce duplication, improve design, or make code easier to maintain.
$ARGUMENTS, specified files, git diff, staged changes, or the latest commit.git diff HEAD; otherwise review git diff.Look for changes that would make the code easier to understand, maintain, or safely extend:
Make one focused code change: understand the task, make the smallest complete change, test it, verify it, and report.
Review a code change for correctness, security, broken contracts, robustness, and real tests.
Fetch GitHub PR review feedback, judge each comment, implement valid fixes, verify, and optionally reply.
Write a lightweight technical design document for ambiguous or consequential architecture decisions before implementation.
Write an implementation spec to docs/<feature-slug>/spec.md and pause for human review. Use when the user says "write a spec", "spec this out", "technical design", "design doc", or when a task has decisions, invariants, or contracts that should be reviewed before code is written.
Verify browser-rendered work in a real browser. Use for HTML, UI, visual docs, presentations, local apps, and browser-facing changes.