git-detect-merged
CommunityIdentify merged branches and worktrees in Git
Authorlestrrat
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Branch clutter and uncertain history make cleanup hard. This Skill identifies local branches and worktrees that have already been merged into a target branch, guiding safe cleanup and history preservation.
Core Features & Use Cases
- Regular merge detection: detects branches that have been merged into the target using the standard merge-base and --merged checks, while applying a pre-filter to avoid deleting unrelated history.
- Squash merge detection: detects squash-merged branches by combining single-commit cherry checks with patch-id comparisons to confirm full integration.
- Active work detection: flags worktrees that are dirty, have untracked changes, or are currently checked out to prevent accidental deletion.
Quick Start
Run git-detect-merged to identify merged branches and worktrees against the target branch.
Dependency Matrix
Required Modules
None requiredComponents
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: git-detect-merged Download link: https://github.com/lestrrat/claude-code/archive/main.zip#git-detect-merged Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.