After a PR merges and the remote branch gets deleted, you're often left with stale local branches cluttering your repo. This skill automates the cleanup by running git fetch with prune, finding branches marked as gone, and deleting them after you confirm. It's smart enough to handle worktrees too, removing them before deleting the branch so you don't end up with orphaned working directories. The confirmation step shows you exactly which branches will go, so you're never caught off guard. It's one of those maintenance tasks you know you should do regularly but always put off until your branch list becomes unmanageable.

skills.sh installs
1.7K
GitHub stars
26K
last updated
Aug 21, 2026

Install

$ npx -y skills add everyinc/compound-engineering-plugin --skill ce-clean-gone-branches --agent claude-code

Installs into .claude/skills of the current project.

Files

After a PR merges and the remote branch gets deleted, you're often left with stale local branches cluttering your repo. This skill automates the cleanup by running git fetch with prune, finding branches marked as gone, and deleting them after you confirm. It's smart enough to handle worktrees too, removing them before deleting the branch so you don't end up with orphaned working directories. The confirmation step shows you exactly which branches will go, so you're never caught off guard. It's one of those maintenance tasks you know you should do regularly but always put off until your branch list becomes unmanageable.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/everyinc/compound-engineering-plugin
Category
Git & Pull Requests
First seen
Jun 3, 2026

More from everyinc/compound-engineering-plugin

All 78
1pika-labs avatarpodcastpika-labs/pika-pluginsUse when the user asks for podcast or a task matching the examples below. Two-host podcast video for any URL or free-form topic — 1 minute, 4 acts × ~15s, nativ1.7Kskills.sh installs
2mksglu avatarcontext-mode-opsmksglu/context-modeManage context-mode GitHub issues, PRs, releases, and marketing with parallel subagent army. Orchestrates 10-20 dynamic agents per task. Use when triaging issue1.7Kskills.sh installs
3anthropics avatarticket-deflectoranthropics/knowledge-work-pluginsReads a forwarded customer email or ticket, pulls order/refund status from PayPal and account history from HubSpot, drafts a tone-matched reply in the owner's w1.7Kskills.sh installs
4onmax avatarnuxt-studioonmax/nuxt-skillsConfigure and operate the self-hosted Nuxt Studio editor for Nuxt Content. Use when working with nuxt-studio installation, editor customization, OAuth or custom1.7Kskills.sh installs
5saltbo avataragent-kanbansaltbo/agent-kanbanCLI reference for agents — how to claim tasks, log progress, submit for review1.5Kskills.sh installs
6earthtojake avatarrenderearthtojake/text-to-cadStart or reuse the CAD Explorer viewer, return review links, and create saved snapshots for explicit CAD and robot-description files. Use when rendering or visu1.3Kskills.sh installs