clean

Delete local and remote merged Git branches while excluding main and current branch.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/takemi-ohama/ai-plugins --skill clean-takemi-ohama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean
Source: https://github.com/takemi-ohama/ai-plugins/tree/main/plugins/ndf/skills/clean
Command: npx skills add https://github.com/takemi-ohama/ai-plugins --skill clean-takemi-ohama

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

mainマージ済みブランチをローカル/リモート一括削除することで、ブランチ管理を効率化します。

Core Features & Use Cases

  • ローカルとリモートのmainにマージ済みブランチを検出して削除します。
  • 現在作業中のブランチと main を除外して安全に削除を実行します。
  • チームのブランチ整理を自動化し、リポジトリを清潔に保ちます。

Quick Start

現在の作業ブランチと main を除外して、ローカルおよびリモートの main にマージ済みブランチを一括で削除します。

Frequently Asked Questions about clean

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

FAQPage Schema
How do I delete merged Git branches in bulk across local and remote repositories?

This Skill automates merged Git branch cleanup by detecting and removing both local and remote branches merged into main, while safely excluding the main branch and your currently active branch from deletion.

What is the best way to automate branch cleanup for merged feature branches?

Automating branch cleanup for merged feature branches is best handled by this Skill, which identifies branches merged into main and performs simultaneous local and remote deletions to maintain repository hygiene across multiple feature workflows.

Does this branch cleanup tool protect the main branch and current working branch from deletion?

Yes, this branch cleanup tool protects the main branch and your current working branch from deletion. It safely identifies only merged branches and explicitly excludes main and the active branch before executing local or remote removals.

Can I use this Skill to manage branch hygiene for team workflows with multiple feature branches?

Yes, you can use this Skill to manage branch hygiene for team workflows with multiple feature branches. It is specifically designed to automate repository cleanup across Git repositories where accumulated merged branches need regular deletion.

When do I need to run Git branch cleanup automation in my workflow?

You need to run Git branch cleanup automation when your repository accumulates stale feature branches after merges. This Skill handles the bulk deletion process, keeping both local and remote repositories clean for ongoing team development workflows.