What problem does it solve?
Developers often rush to merge feature branches without running tests, accidentally delete committed work when discarding branches, or leave behind unused worktrees that clutter their local development environment. This Skill eliminates those risks by enforcing safe, structured branch completion workflows.
Core Features & Use Cases
- Mandatory Test Verification: Automatically checks that all project tests pass before allowing any merge, PR creation, or discard actions to prevent broken code from being integrated.
- Structured Completion Options: Presents exactly 4 clear, unambiguous choices for branch finalization (local merge, PR creation, keep as-is, discard) to eliminate decision fatigue and inconsistent workflows.
- Safe Destructive Actions: Requires explicit typed confirmation before discarding branch work, and only cleans up worktrees for appropriate completion options to avoid accidental data loss.
- Use Case: After finishing a feature to add user profile avatars, use this Skill to safely merge the branch to main, create a PR for team review, keep the branch for future work, or discard the experimental changes, all while ensuring your repository stays clean and tests pass.
Quick Start
Invoke the finishing-a-development-branch skill once your feature implementation is complete and all project tests have passed to safely finalize your branch work.