Skip to main content
Back to registry

git-cleanup

trailofbits/skills

Safely clean up accumulated git worktrees and local branches by categorizing them into: safely deletable (merged), potentially related (similar themes), and active work (keep).

Installs402
Install command
npx skills add https://github.com/trailofbits/skills --skill git-cleanup
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Safely clean up accumulated git worktrees and local branches by categorizing them into: safely deletable (merged), potentially related (similar themes), and active work (keep). Never delete anything without explicit user confirmation. This skill uses a gated workflow where users must approve each step before any destructive action. IMPORTANT: git branch -d will ALWAYS fail for squash-merged branches because git cannot detect that the work was incorporated. This is expected behavior, not an error. When you identify a branch as squash-merged: MANDATORY: Before categorizing individual branches, group them by name prefix: Branches sharing a prefix (e.g., feature/api , feature/api-v2 , feature/api-refactor ) are almost certainly related iterations. Analyze them as a group: Present related branches together with a clear recommendation, not scattered across categories. Don't rely on simple keyword matching.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does git-cleanup do?

Safely clean up accumulated git worktrees and local branches by categorizing them into: safely deletable (merged), potentially related (similar themes), and active work (keep).

Is git-cleanup good?

git-cleanup does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does git-cleanup work with?

git-cleanup currently lists compatibility with codex, gemini-cli, opencode, cursor, github-copilot, claude-code.

What are alternatives to git-cleanup?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install git-cleanup?

npx skills add https://github.com/trailofbits/skills --skill git-cleanup

Related skills

More from trailofbits/skills

Related skills

Alternatives in Software Engineering