cleanup-merged

Community

Clean up stale local branches after PR merges.

Authorzeveck
Version1.0.0
Installs0

System Documentation

What problem does it solve?

After PRs merge on GitHub, local clones often accumulate stale feature branches that clutter development workflows. This skill automatically prunes remotes, switches to the main branch, pulls updates, and deletes local branches whose upstream has been deleted or whose PR has merged, while refusing to modify a dirty working tree.

Core Features & Use Cases

  • Prunes origin to remove references to deleted branches and keeps local refs in sync.
  • Switches to the main branch, pulls latest changes, then deletes merged or upstream-gone feature branches.
  • Respects worktree state and refuses to delete branches with unpushed commits, ensuring safe cleanup.

Quick Start

Run cleanup-merged after merging a PR to prune stale branches and update your local main branch.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cleanup-merged
Download link: https://github.com/zeveck/zskills-dev/archive/main.zip#cleanup-merged

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.