원클릭으로
clean-branches
Clean up unnecessary local branches and prune stale remote-tracking branches
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Clean up unnecessary local branches and prune stale remote-tracking branches
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Draft a new release of the project.
Form an Agent Team of Implementer and Reviewer subagents to tackle the given task, looping implementation and review until the Reviewer reports zero high-or-above findings and no more than three mid findings.
Approve a pull request using gh pr review --approve
Babysit a Dependabot dependency-bump PR all the way to merge: verify the author is the genuine Dependabot bot, diagnose and resolve any CI failure (excluding or fixing a breaking bump when needed), get every check green, and merge. Use when the user wants to shepherd a Dependabot bump PR to merge.
Resolve every open issue one at a time: fact-check each with web research, close the ones that need no action, and run the `goal-pr` skill to fix, review, and merge the ones that do — repeating until no actionable issues remain.
Resolve every open maintainer-scrap issue one at a time: fact-check each with web research, close the ones that need no action, and run the `goal-pr` skill to fix, review, and merge the ones that do — repeating until no actionable scrap issues remain.
| name | clean-branches |
| description | Clean up unnecessary local branches and prune stale remote-tracking branches |
| targets | ["*"] |
Clean up unnecessary local branches and prune stale remote-tracking branches.
Run the following:
git branch --show-currentgit branch --format='%(refname:short)'git remote show origingit branch -vvIdentify:
main or master)After identifying the default branch, list branches already merged into it:
git branch --merged <default-branch>If you want to use the remote-tracking branch as the source of truth, use:
git branch --merged origin/<default-branch>Update remote refs and prune deleted remote branches:
git fetch --prune
If needed, also run:
git remote prune origin
Delete only branches that are clearly unnecessary.
Safe candidates include:
Never delete:
If there is any ambiguity, show the candidate branches to the user and ask for confirmation.
For merged branches, delete them safely:
git branch -d <branch-name>
Only if the user explicitly approves force deletion for unmerged branches, use:
git branch -D <branch-name>
Delete branches one by one, not with a broad wildcard command.
Summarize: