Git Cleanup
Description
A Claude Code skill for safely cleaning up accumulated git worktrees and local branches.
Installation
claude install-skill https://github.com/trailofbits/skills/tree/main/plugins/git-cleanup README
git-cleanup
A Claude Code skill for safely cleaning up accumulated git worktrees and local branches.
What It Does
Analyzes your local git repository and categorizes branches/worktrees into:
- undefined
The skill uses a gated workflow requiring explicit user confirmation before any deletions.
When to Use
Invoke with `/git-cleanup` when you have accumulated many local branches and worktrees that need cleanup.
**Important**: This skill only runs when explicitly invoked. It will never suggest cleanup proactively or run automatically.
Safety Features
- undefined
Installation
claude plugins:add trailofbits/skills/git-cleanup
Example
User: /git-cleanup
Claude: [Analyzes branches and worktrees]
[Presents categorized tables]
"I found 5 branches safe to delete, 2 needing review.
Which would you like to clean up?"
User: "Delete the merged branches"
Claude: "I will delete these branches:
- feature/auth
- bugfix/login
Confirm? (yes/no)"
User: "yes"
Claude: [Executes and reports results]
Related Skills
next.js
| The React Framework | 138360 | 1503 | 1 |
Development community sharing-skills
skill for guidance.
Development community root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development community Template Skill
Minimal skeleton for a new skill project structure.
Development community Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THIS PRODUCT. ---
Development official Claude API
When code imports anthropic/@anthropic-ai/sdk/claude_agent_sdk, or user asks to use Claude APIBuild apps with the Claude API or Anthropic SDK
Development official Related Agents
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Contributing to nanobot
Thank you for being here. nanobot is built with a simple belief: good tools should feel calm, clear, and humane. We care deeply about useful features, but we also believe in achieving more with less:
Key exports from each phase
for summary in .planning/phases/*/*-SUMMARY.md; do echo "=== $summary ===" grep -A 10 "Key Files\|Exports\|Provides" "$summary" 2>/dev/null done