clean-branches

Official

Prune merged Git branches

Authorbrave
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps maintain a clean local Git repository by automatically identifying and offering to delete branches whose associated pull requests have already been merged upstream.

Core Features & Use Cases

  • Automated Branch Cleanup: Fetches remote status and checks local branches against origin/master.
  • Multi-Method Merge Detection: Uses git branch --merged, git cherry, and gh pr to accurately identify merged or squash-merged branches.
  • User-Guided Deletion: Presents a clear summary of branch statuses (Merged, Closed, Open) and prompts for confirmation before deleting.
  • Use Case: After completing several feature branches and merging their PRs, run this skill to quickly remove the now-obsolete local branches, keeping your repository tidy.

Quick Start

Run the clean-branches skill to remove local branches that have been merged into origin/master.

Dependency Matrix

Required Modules

gh

Components

scriptsreferences

💻 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: clean-branches
Download link: https://github.com/brave/brave-core/archive/main.zip#clean-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 223,000+ vetted skills library on demand.