What problem does it solve?
This Skill streamlines the process of finalizing a Git branch by intelligently squashing commits, running tests, verifying PR status, and cleaning up local and remote branches, ensuring a clean and professional commit history.
Core Features & Use Cases
- Automated Squashing: Consolidates multiple commits into a single, meaningful commit with an auto-generated conventional commit message.
- Intelligent Rebase: Handles complex rebase scenarios with conflict detection and guidance.
- Validation: Runs tests and checks PR/MR status before cleanup.
- Safe Cleanup: Provides options to delete local and remote branches after successful completion, with automatic backups.
- Use Case: After completing a feature, run
/branch-finish to automatically squash your 10 small commits into one clean commit, run your tests, and then delete the feature branch locally and remotely.
Quick Start
Run the branch-finish skill to complete your current Git branch workflow.