Skip to main content
Generaltrailofbits

git-cleanup

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

Stars
5,487
Source
trailofbits/skills
Updated
2026-05-27
Slug
trailofbits--skills--git-cleanup
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/trailofbits/skills/HEAD/plugins/git-cleanup/skills/git-cleanup/SKILL.md -o .claude/skills/git-cleanup.md

Drops the SKILL.md into .claude/skills/git-cleanup.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.