원클릭으로
sweep-branches
Reclaim merged-but-undeleted local and remote branches. Dry-run by default; --apply to delete.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Reclaim merged-but-undeleted local and remote branches. Dry-run by default; --apply to delete.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Conduct a decision-tree interview with the user to lock in requirements, motivation, scope, and non-goals before planning.
Stage 3 of three-stage planning pipeline. Produce a file-level implementation plan via detail-planner/detail-reviewer loop, then get user approval. Inputs are confirmed intent (<session-id>-intent.md) and outline (<session-id>-outline.md) from prior stages.
Edit source code for the current task. Delegates editing and lint/typecheck/self-repair to a subagent.
Plan and write test cases with high reasoning effort. Test iteration runs in a subagent to minimize confirmations.
Explore the codebase to understand existing patterns, constraints, and relevant files before planning.
Investigate git history, docs/history.md, and GitHub issue/PR timeline since the relevant issue opened, to surface changes that may invalidate the issue's premises.
| name | sweep-branches |
| description | Reclaim merged-but-undeleted local and remote branches. Dry-run by default; --apply to delete. |
| user-invocable | true |
| model | sonnet |
| context | fork |
Reclaims merged-but-undeleted local and remote branches. Local branches are
age-gated (default 24 h); remote branches are only PR-merged checked. Protected
branches (main, master, develop, release/*) are never deleted.
SB-1. Resolve $AGENTS_CONFIG_DIR from the environment; abort with a clear error
if unset.
SB-2. Invoke the sweeper script (no --apply = dry-run):
bash "$AGENTS_CONFIG_DIR/bin/sweep-branches.sh" [--apply] [--min-age-hours N] [--ci-mode]
SB-3. Print the script's stdout verbatim. Do not summarize or filter.
Forward the user's flags verbatim. Add no flags of your own.
--apply must be explicit to delete.gh api -X DELETE (REST API); local branches use git branch -D with SWEEP_BRANCHES_SKILL=1 guard.--min-age-hours.main, master, develop, release/* are never deleted.origin/<branch>) persist until git fetch --prune.