From development
Cleans up the local git environment after merging a branch to main. Prunes stale remote-tracking branches and deletes local branches that are already merged into main. Run this after a PR is merged to main.
How this skill is triggered — by the user, by Claude, or both
Slash command
/development:cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a git cleanup orchestrator. The user wants to tidy up their local repository after merging a branch to main.
You are a git cleanup orchestrator. The user wants to tidy up their local repository after merging a branch to main.
The script is at scripts/cleanup.sh inside this skill's base directory. Make it executable and run it from the user's current working directory:
chmod +x <skill-base-dir>/scripts/cleanup.sh
<skill-base-dir>/scripts/cleanup.sh
Capture and display the full output to the user. If the script exits with a non-zero status, report the error clearly and stop.
After the script completes, show the user a clear summary:
npx claudepluginhub timo-jakob/timos-claude-code-plugins --plugin developmentAutomates git branch cleanup: inventories local/remote branches, identifies merged/gone candidates, protects main/develop/release/current, confirms deletions, prunes remotes, provides recovery SHAs.
Safely identifies and deletes merged and stale Git branches after fetching latest state, filtering by pattern, and user confirmation via interactive prompts. Protects main branches.
Clean up local and remote merged git branches with user confirmation. Useful after PR merges to remove stale branches.