se-clean-gone-branches

Community

Prune stale local branches safely.

Authorsimonwjackson
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps teams maintain a clean local Git repository by removing local branches whose remote tracking branches have been deleted. It also handles removing associated worktrees to fully prune stale work contexts.

Core Features & Use Cases

  • Discover gone branches by fetching remote state and scanning git branch -vv for : gone] markers.
  • Confirm and delete identified branches, with automatic worktree cleanup when present.
  • Generate a concise report of removed worktrees and branches to keep a clear audit trail.
  • Use Case: After a remote branch is deleted upstream, run this skill to prune corresponding local branches and any linked worktrees to avoid confusion.

Quick Start

Ask your AI to run the script to prune local branches that no longer exist on the remote.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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: se-clean-gone-branches
Download link: https://github.com/simonwjackson/pi-software-engineering/archive/main.zip#se-clean-gone-branches

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.