PR Merge & Cleanup

•
79
•

Automates the GitHub PR merging process including pre-merge rebase checks, worktree management, and comprehensive branch cleanup.

This specialized skill streamlines the final stage of the pull request lifecycle by automating the complex Git operations required to merge and clean up environments. It follows a 'measure twice, cut once' philosophy, performing critical checks to ensure branches are up-to-date before merging via the GitHub API. The skill is particularly powerful for developers using Git worktrees, as it intelligently handles worktree removal, path management, and branch pruning, ensuring your local development environment remains uncluttered after feature completion.

Key Features

01Pre-merge rebase verification against the default branch
02Automatic pruning of local/remote branches and phase worktrees
03Intelligent worktree detection and safe multi-path cleanup
04Automated PR detection via current branch or author status
05Support for squash and rebase merge strategies with auto-detection
0679 GitHub stars

Use Cases

01Managing complex multi-phase integration PRs that require specific rebase logic
02Ensuring a clean repository state by automating post-merge branch and remote pruning
03Finalizing a reviewed feature branch and cleaning up associated local worktrees