/agent-skills:worktree-cleanupfrom Agent Skills
Clean up stale local git worktrees and merged/closed branches. Use when the user asks to tidy up branches, prune worktrees, or clean up after a sprint. Checks GitHub PR state to confirm which branches are safe to delete, then prunes prunable worktrees and removes local branches.
Ships in Agent Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Removes stale local branches and prunable worktrees after confirming their PR status on GitHub.
git worktree list
git branch -a
gh pr list --state all --base main --limit 100 --json headRefName,state,title,mergedAt \
| jq -r '.[] | "\(.state)\t\(.headRefName)\t\(.title)"' | sort
Cross-reference to categorize each local branch:
git worktree prune
This only removes worktrees already marked as prunable (no linked directory). Safe to run unconditionally.
Try safe delete first (-d), force-delete (-D) only for branches confirmed merged via GitHub but not recognized as merged locally (common with squash merges):
# Safe delete (git-merged ones)
git branch -d <branch1> <branch2> ...
# Force-delete confirmed-merged-on-GitHub branches that git doesn't recognize
git branch -D <branch1> <branch2> ...
Do NOT force-delete:
Summarize what was deleted and flag anything left for the user to decide on.
prunable in git worktree list are safe to prune — they have no uncommitted changes and their directory is gone or detached.git branch -d considers unmerged even though GitHub shows MERGED. Use -D for those after confirming via gh pr list.origin/...) are not deleted — only local tracking refs. Run git remote prune origin if you also want to clean up stale remote-tracking refs.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (richardbowman/agent-skills) — no native marketplace selected
npx claudepluginhub p/richardbowman-agent-skills32 skills in this plugin
/backup-vercel-secretsBack up Vercel production and preview environment variables to 1Password as individual key/value fields. Use when the user wants to snapshot or archive their Vercel secrets for a project./brain-dumpInteractive knowledge extraction interviewer. Enters a structured interview mode to extract tacit knowledge from the user and saves a full transcript plus structured notes to the Obsidian vault./brainstormActive ideation partner. The assistant leads the session by proposing angles, surfacing frameworks, filling knowledge gaps, and challenging assumptions. Produces a structured Obsidian ideation doc and session transcript.Other plugins' skills for the same job