cleanup-merged-branches

Delete local and remote git branches merged into the main branch.

41|5|Updated Sep 23, 2025
One-click install
npx skills add https://github.com/Tai-ch0802/arc-like-chrome-extension --skill cleanup-merged-branches
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-merged-branches
Source: https://github.com/Tai-ch0802/arc-like-chrome-extension/tree/main/.agent/skills/cleanup-merged-branches
Command: npx skills add https://github.com/Tai-ch0802/arc-like-chrome-extension --skill cleanup-merged-branches

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps maintain a clean git history by automatically identifying and deleting local and remote branches that have already been merged into the main branch.

Core Features & Use Cases

  • Automated Branch Cleanup: Safely removes merged branches to prevent clutter.
  • Preview Functionality: Allows users to see which branches will be deleted before execution.
  • Use Case: After merging a feature branch into main, this skill can be used to remove the now-redundant feature branch from both your local repository and the remote.

Quick Start

Run the cleanup-merged-branches skill to delete all local and remote branches that have been merged into main.

Frequently Asked Questions about cleanup-merged-branches

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically delete merged local and remote git branches?

Deleting merged git branches is handled by an automated cleanup skill that fetches, prunes, lists, and deletes branches based on their merge status relative to the main branch. It removes redundant branches from both your local repository and the remote.

What is the best way to clean up git branches after merging a feature into main?

Cleaning up git branches after a merge is best achieved by running an automated branch cleanup skill. It identifies branches already merged into the main branch and deletes them, streamlining your development workflow and preventing repository clutter.

Can I preview which merged branches will be deleted before executing the cleanup?

Previewing merged branches before deletion is supported by the skill's preview functionality. It allows users to see exactly which local and remote branches will be deleted before the execution of any destructive git commands.

Does the git branch cleanup process require any specific tools or environments?

The git branch cleanup process requires the git CLI. You need the git command-line interface installed in your environment to fetch, prune, list, and delete branches based on their merge status relative to the main branch.

Why should I remove merged branches from my git repository?

Removing merged branches maintains a clean git history and prevents clutter. Automated branch cleanup safely removes branches merged into the main branch, streamlining development workflows and making repository maintenance easier.