Git Cleanup
Plugin ActiveSafely analyzes and cleans up local git branches and worktrees by categorizing them as merged, squash-merged, superseded, or active work.
To provide a safe and guided workflow for cleaning up accumulated local git branches and worktrees, preventing accidental data loss.
Features
- Categorizes branches as merged, gone, or active
- Analyzes worktrees for staged/uncommitted changes
- Requires explicit user confirmation for all deletions
- Uses safe delete commands (`-d`) and force delete (`-D`) where appropriate
- Groups related branches for collective review
Use Cases
- When you have accumulated many local branches that need tidying up
- After merging feature branches, to clean up local tracking branches
- When remote branches have been deleted, to manage remaining local tracking branches
- To identify and remove groups of related branches that are no longer needed
Non-Goals
- Managing remote branches or repositories
- Performing automatic or proactive cleanup
- Remote repository maintenance tasks like `git gc` or `prune`
- Headless or non-interactive automation
Trust
- warning:Issues AttentionIn the last 90 days, 13 issues were opened and 4 were closed, indicating a low closure rate (approx. 31%) and potentially slow maintainer response.
Installation
First, add the marketplace
/plugin marketplace add trailofbits/skills/plugin install git-cleanup@trailofbitsQuality Score
Trust Signals
Similar Extensions
Context7 Plugin
100Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
HubSpot Admin Skills
99Complete HubSpot CRM administration toolkit — audit, clean, enrich, segment, automate, and maintain your database
Worktrunk
99Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows. This plugin provides configuration guidance (LLM commit messages, project hooks, worktree paths) and automatic activity tracking (🤖/💬 indicators in `wt list` showing active Claude sessions).