بنقرة واحدة
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 ويثبّتها لك.
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.
استنادا إلى تصنيف SOC المهني
| 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: