Git Cleanup
Skill Verified ActiveSafely analyzes and cleans up local git branches and worktrees by categorizing them as merged, squash-merged, superseded, or active work.
To help users safely clean up accumulated local git branches and worktrees, preventing accidental data loss and managing repository clutter.
Features
- Categorizes branches as merged, squash-merged, superseded, or active
- Groups related branches for collective analysis
- Requires explicit user confirmation before deletion
- Handles dirty worktree detection and warnings
- Supports safe deletion of local branches and worktrees
Use Cases
- When you have accumulated many local git branches and worktrees.
- After branches have been merged into the default branch but not cleaned up locally.
- When remote tracking branches have been deleted, but local ones remain.
- To systematically review and clean up old or superseded feature branches.
Non-Goals
- Managing remote git branches or repositories.
- Performing general repository maintenance like `git gc` or `git prune`.
- Headless or non-interactive automation due to required user confirmations.
- Modifying commit history beyond what's necessary for cleanup.
Installation
First, add the marketplace
/plugin marketplace add trailofbits/skills/plugin install git-cleanup@trailofbitsQuality Score
VerifiedTrust Signals
Similar Extensions
Project Session Manager
100Worktree-first dev environment manager for issues, PRs, and features with optional tmux sessions
Public Google Drive
100Create public Google Docs or Google Sheet files without requiring OAuth. Use this skill to create and edit Google Docs and Sheets, no Google sign-in required. Documents are viewable at shareable links. Registration is automatic on first use.
Oh My Claudecode
100Process-first advisor routing for Claude, Codex, or Gemini via `omc ask`, with artifact capture and no raw CLI assembly
Use My Browser
100Use when work depends on the user's live browser session or visible rendered state rather than static fetches, especially for browser debugging contexts or DevTools-selected elements or requests, logged-in dashboards or CMS flows, localhost apps, forms, uploads, downloads, media inspection, DOM or iframe inspection, Shadow DOM, or browser failures that look like soft 404s, auth walls, anti-bot checks, or rate limits.
X Twitter Scraper
100Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.
Slack
100Use the Slack tool to react, pin/unpin, send, edit, delete messages, or fetch Slack member info.