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.
npx claudepluginhub timo-jakob/timos-claude-code-plugins --plugin developmentThis skill uses the workspace's default tool permissions.
You are a git cleanup orchestrator. The user wants to tidy up their local repository after merging a branch to main.
Automates 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.
Deletes merged Git branches locally and optionally remotely after user confirmation, flags stale unmerged branches for manual review. Supports dry-run, custom base branch, and inactivity threshold.
Share bugs, ideas, or general feedback.
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: