원클릭으로
git-cleanup-merged
Clean up local branches and worktrees that have been merged into a target branch (default: main). Args: [target-branch]
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Clean up local branches and worktrees that have been merged into a target branch (default: main). Args: [target-branch]
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | git-cleanup-merged |
| description | Clean up local branches and worktrees that have been merged into a target branch (default: main). Args: [target-branch] |
Clean up local branches and worktrees whose changes have already been merged into a target branch.
/git-cleanup-merged [target-branch]
target-branch — branch to check against. Default: main.Refer to the target branch as $TARGET below.
Use the git-detect-merged skill with $TARGET to identify all merged branches, their merge type, active work status, and associated worktrees.
.tmp/ as ignorable temp output, not active work.From the detection results:
clean).$TARGET and main — NEVER delete either..tmp/ is the only untracked content, still treat worktree as clean.Show the user a single summary listing:
-D — git branch -d cannot see squash merges and always fails on them.If nothing to clean, say so and stop.
Ask the user for a single confirmation before proceeding. Do NOT proceed without approval. This confirmation covers -D for branches marked squash-merged in the summary — their merge was already verified by patch-id in detection.
git worktree remove <path>), then delete branches.git branch -d <branch>. Squash merges → git branch -D <branch> (covered by step 4 confirmation).-d unexpectedly fails on a regular-merge branch, ask the user before using -D.$TARGET or main.-d (safe delete) for regular merges. -D for squash-merged branches is pre-approved by the step 4 confirmation; any other -D requires explicit user approval.Self-looping adversarial-review-to-merge pipeline. Codex runs an adversarial review (a given area/topic, else the whole repo), findings are neutrally verified, each survivor becomes its own PR, and a per-PR review gauntlet (two fresh, context-isolated SATISFIED verdicts on the same PR content, reviewed one at a time over the whole diff) plus event-driven CI monitoring gate an auto-merge. Multiple isolated runs (each keyed by a run-id, with a lease so only one agent drives each) can run concurrently in one repo. Drives its own loop via ScheduleWakeup — invoke once, no /loop wrapper. Args: [--run id] [area or topic]
Evaluate and address GitHub Copilot PR review items for a GitHub pull request. Use when user provides a GitHub PR link and wants Copilot review comments checked, verified, fixed, committed, and summarized. Fetch review items with `gh`, verify each claim against source/tests before changing code, ask user before making subjective or constraint-driven changes, then work items one by one.
Continuously find and fix failing Go tests in a worktree, syncing with a parent branch between iterations. Use when user wants to fix all (or many) test failures in a branch via an automated loop. Args: <parent-branch> [test-args...]
Execute instructions in an isolated worktree, commit, fast-forward merge to parent, cleanup. Args: <parent-branch> <instructions...>
Delegate a task to Codex CLI via `codex exec`. Use for lightweight tasks (exploration, simple searches, file reads) that don't require heavy reasoning. Only available from Claude Code sessions.
Multi-agent design collaboration — Claude Code (reviewer) and Codex (designer) iterate on a design doc via file-based chat. Gathers requirements from user, then runs a review loop until design is satisfactory. Args: <topic>