git-post-merge-cleanup - Git Post-Merge Repository & Branch Cleanup Skill
Provides post-merge local Git cleanup procedures, main branch syncing, local branch deletion, and deep repository garbage collection upon explicit user request.
Tags
Updated: 2026-09-14Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Verify working directory status
- Switch to main branch
- Pull latest changes from origin
- Prune stale remote tracking branches
- Delete merged local feature branches
- Remove ephemeral Git worktrees
- Expire reflog entries
- Run aggressive Git garbage collection
Inputs
- Explicit user cleanup request
- Target Git repository
- Merged branch name
Outputs
- Synchronized main branch
- Deleted local feature branches
- Removed Git worktree directories
- Garbage-collected Git repository
- Clean working tree status
Requirements
- Explicit human user instruction
- Clean local working tree
- Git command line tool
- Access to remote GitHub repository
