/systematic:git-clean-gone-branchesfrom systematic
Deletes local branches whose remote tracking branch is gone, including associated worktrees. Handles discovery, confirmation, and safe removal.
Ships in systematic. 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.
Read when SKILL.md points to them; scripts run unread.
Delete local branches whose remote tracking branch has been deleted, including any associated worktrees.
Run the discovery script to fetch the latest remote state and identify gone branches:
When this skill loads, its own directory is stated in the surrounding instructions; set SKILL_DIR to that directory because the scripts live beside this file.
# Resolve helper scripts relative to this skill's directory.
SKILL_DIR="<skill directory stated when this skill loads>";
bash "$SKILL_DIR/scripts/clean-gone"
The script runs git fetch --prune first, then parses git branch -vv for branches marked : gone].
If the script outputs __NONE__, report that no stale branches were found and stop.
Show the user the list of branches that will be deleted, and say what happens to their worktrees. Format as a simple list:
These local branches have been deleted from the remote:
- feature/old-thing
- bugfix/resolved-issue
- experiment/abandoned
Any of them that has a worktree with modified or untracked files, or a locked worktree, is skipped and kept. Ignored files (such as .env files and node_modules) in the worktrees that are removed are deleted.
Delete all of them? (y/n)
Wait for the user's answer using the platform's question tool (e.g., question in OpenCode, request_user_input in Codex, ask_user in Gemini; in Pi, use the blocking-question extension if available, otherwise present numbered options in chat and wait). If no question tool is available, present the list and wait for the user's reply before proceeding.
This is a yes-or-no decision on the entire list -- do not offer multi-selection or per-branch choices.
If the user confirms, run git worktree list --porcelain once. Each entry has a worktree <path> line and, for a branch checkout, a branch refs/heads/<name> line. The first entry is the main checkout. For each branch:
branch line is exactly branch refs/heads/<branch>. Do not use grep or a substring match, so feature/a never matches feature/ab.skipped: checked out in main checkout and go to the next branch. Never switch the main checkout to another branch.pwd -P is the worktree or inside it, report skipped: current worktree, keep its branch, and go to the next branch.git worktree remove "$path". Never use the force option. If git refuses, report skipped: <git reason> and do not run git branch -D for that branch, because the worktree still has it checked out.git branch -D "$branch"Report results as you go:
Removed worktree: .worktrees/feature/old-thing
Deleted branch: feature/old-thing
skipped: .worktrees/bugfix/resolved-issue contains modified or untracked files
Deleted branch: experiment/abandoned
Cleaned up 2 branches, skipped 1.
The git-worktree skill creates worktrees under .worktrees/<branch> at the main repository root. Its cleanup command is the place to remove one of those worktrees with its stricter checks.
This skill finds worktrees anywhere, so it does not call that script.
git branch -D also deletes an unmerged gone branch. Checking merge state is out of scope for this skill.
If the user declines, acknowledge and stop without deleting anything.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
git-cleanup, branch-pruning, worktree-cleanup, stale-branches
npx claudepluginhub marcusrbrown/systematic --plugin systematic34 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools./agent-native-architectureBuild applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop./agent-native-auditRun comprehensive agent-native architecture review with scored principlesOther plugins' skills for the same job