/dev-workflows:gone-cleanupfrom Michael Holley's Dev Workflows
Delete local git branches whose remote branch is gone, together with their leftover worktrees, after per-branch confirmation. Use when the user wants to clean up stale, merged, or "gone" local branches or worktrees.
Ships in Michael Holley's Dev Workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run git fetch --prune, then git branch -vv and git worktree list --porcelain.
: gone]. Ignore all others.git -C <path> status --porcelain and flag uncommitted or untracked changes.prunable (directory missing on disk).Report everything to the user as a list: branch, last commit subject, worktree path and dirty flag if any. If there is nothing gone or prunable, say so and stop.
Use AskUserQuestion with one question per gone branch (max 4 per call, batch the rest), options: Delete and Keep. Never preselect or assume Delete. For a branch with a worktree, the question says that deleting removes the worktree too, and names the dirty flag if set.
Skip and list as skipped instead of asking: the current branch, any branch checked out in the main worktree, and locked worktrees.
Summarize the branches and worktrees chosen for deletion, plus any prunable worktree entries, and ask for a final confirmation with AskUserQuestion. Delete nothing without an explicit yes.
For each confirmed branch:
git worktree remove <path>. If git refuses because of uncommitted changes, do not use --force. Report the changes and ask again before forcing.git branch -d <branch>. If git refuses because the branch is not fully merged (common after squash merges), do not fall back to -D. Report it and ask again, naming the unmerged commits, before using git branch -D.Finally run git worktree prune if prunable entries were confirmed.
Report which branches and worktrees were deleted, kept, or skipped.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub michaelholley/cc-plugins --plugin dev-workflows13 skills in this plugin
/file-prFile a concise pull request. Use when the user asks to file, open, or create a PR./grillStress-test a plan, design, or decision by interviewing the user one round of pickable questions at a time. Use when the user wants their thinking challenged, gaps found, or assumptions surfaced before work starts, or says "grill me", "interview me" or "grilling"./huhStop. I did not understand your last message. Explain./matches-intentValidate an implementation against its original intent. Use when the user wants to check whether a PR, branch, or diff actually does what it was intended to do, or asks if it "matches intent".