Skip to main content

Git Cleanup

Plugin Active
Part of:Trailofbits

Safely analyzes and cleans up local git branches and worktrees by categorizing them as merged, squash-merged, superseded, or active work.

1 Skill 0 MCPs
Purpose

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@trailofbits

Quality Score

76 /100
Analyzed about 13 hours ago

Trust Signals

Last commit3 days ago
Stars5.2k
LicenseCC-BY-SA-4.0
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.