원클릭으로
improve
Review and improve code — fix bugs, harden security, optimize performance, improve readability and maintainability
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Review and improve code — fix bugs, harden security, optimize performance, improve readability and maintainability
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | improve |
| description | Review and improve code — fix bugs, harden security, optimize performance, improve readability and maintainability |
| argument-hint | [cycles=1] |
Iterative improvement cycles that review code across multiple dimensions and fix everything found. Goes beyond bug-fixing — actively improves performance, security, readability, and maintainability.
This is not just a review. It finds issues AND fixes them.
$ARGUMENTS - Number of improvement cycles (default: 1)Parse cycles from arguments:
/improve -> 1 cycle/improve 3 -> 3 cyclesFor each cycle (1 to N):
Launch these agents in parallel to collect all inputs simultaneously:
Agent 1 — Base Branch & Changed Files:
BASE=$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name 2>/dev/null || git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
echo "BASE=$BASE"
git diff $BASE...HEAD --name-only
git diff $BASE...HEAD --stat
Agent 2 — Full Diff:
git diff $BASE...HEAD
Agent 3 — Commit History:
git log $BASE..HEAD --oneline
Launch six reviewer agents in parallel, each focused on a different dimension. Every agent receives the full diff and file list from Step 1.
Agent A — Security:
Agent B — Performance:
Agent C — Correctness:
Agent D — Readability:
Agent E — Maintainability:
Agent F — Testing:
Each agent outputs a prioritized list of issues with file:line references and severity (critical / warning / suggestion). For performance and readability issues, include the improvement not just the problem — describe what the better version looks like.
Combine findings from all six agents into a single prioritized list. Remove duplicates. Group by severity:
Partition the issue list into groups by area/theme. Use the consolidation pattern — launch each fix group as a parallel worktree-isolated agent (isolation: "worktree"). Agents can freely edit overlapping files; the consolidator handles merges.
Per worktree agent:
After all worktree agents complete, launch the consolidator agent (subagent_type: "consolidator") to merge all branches and resolve any overlapping edits.
Launch a verifier agent (subagent_type: "verifier") in post-verification mode to confirm tests pass and lint is clean. If it fails, fix and re-verify.
After all fixes pass verification, delegate to skills:commit:
Skill(skill="skills:commit", args="(refactor): improve [summary of what was improved]")
Use refactor for structural improvements, fix for bug fixes, perf for performance — or skills:commit-all if the changes span multiple types.
If more cycles remain, return to Step 1 with a raised severity floor:
Track what was already addressed to avoid re-fixing. This naturally converges — each cycle finds fewer issues as the bar rises.
After all cycles, report:
## Improvement Summary
### Cycle 1
- Security: X issues found, Y fixed
- Performance: X issues found, Y fixed
- Correctness: X issues found, Y fixed
- Readability: X issues found, Y fixed
- Maintainability: X issues found, Y fixed
- Testing: X issues found, Y fixed
- Remaining: Z
### Final State
- Total issues fixed: N
- Remaining issues: M (with explanation if any)
- Commits created: K
Stop early if:
There is no such thing as a "pre-existing" test failure. If any test fails, fix it. The task always completes with completely passing tests.
Build the project (auto-detects build system)
Find and remove dead code, unused imports, and technical debt
Create git commits in logical groups for all current changes
Create a git commit with conventional commit message
Pick up unfinished work from where the last session left off
Debug and fix failing tests or errors