con un clic
cleanup-branches
Git Branch Cleanup
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Git Branch Cleanup
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Bootstraps a new project directory with base configuration files, MCP servers, API connections, and template skills from OutworkOS. Use when setting up a new project, initializing a workspace, or configuring MCP integrations for a new directory.
Gain-based weekly reflection. Looks backward at what moved forward across all projects, written as narrative prose. Modeled on The Gap and The Gain — measures progress against where you were, not where you wish you were.
Composes, drafts, and sends emails via Gmail. Enforces natural writing style (no em dashes, no AI tells), proper threading, and correct signature handling. Use whenever drafting, replying to, or sending any email.
"Produces a meeting prep briefing for upcoming calendar meetings by researching attendees, email history, past meetings, and company backgrounds. Use when the user asks to prepare for meetings, prep for tomorrow, review upcoming meetings, get ready for a meeting day, or asks 'what meetings do I have'. Also use when the user asks to research a specific meeting or contact before a call."
"Cross-project inbox scan — cleans noise, routes signals to projects, creates Todoist tasks for gaps, and ranks priorities by time block. Replaces /triage, /inbox-zero, and /sitrep."
Generates Spotify playlists using MCP spotify tools. Use when user wants to create a playlist based on mood, genre, similar artists, or any theme. Handles auth, track discovery, playlist creation, and adding tracks.
| name | cleanup-branches |
| description | Git Branch Cleanup |
| argument-hint | [optional branch pattern] |
| disable-model-invocation | true |
Clean up merged/stale local branches and remove orphaned worktrees.
Perform git branch cleanup for this repository:
git fetch --prune origin
git checkout main
git pull origin main
git worktree list
Remove any worktrees that are no longer needed (branches merged or abandoned).
Check for truly merged branches:
git branch --merged main
Check for squash-merged branches (compare with GitHub PRs):
gh pr list --state merged --limit 50 --json headRefName,number,title
Cross-reference local branches against merged PRs. If a local branch has a merged PR, it's safe to delete.
List local branches with their PR status:
for branch in $(git branch --format='%(refname:short)' | grep -v main); do
pr_state=$(gh pr list --head "$branch" --state all --json state --jq '.[0].state // "NO_PR"')
echo "$branch: $pr_state"
done
For each branch that has been merged (either via --merged or has a MERGED PR):
git branch -d <branch-name> # Safe delete (fails if not merged)
git branch -D <branch-name> # Force delete (for squash-merged)
git remote prune origin
Report what was cleaned up:
main