What problem does it solve?
This Skill removes the risk and inconsistency of manually finishing development branches, preventing broken code from being merged, accidental work loss, and messy Git workspace states after feature completion.
Core Features & Use Cases
- Pre-integration test enforcement: Automatically checks that all tests pass before allowing any merge, PR, or discard operations to avoid shipping broken code.
- Environment-aware workflow guidance: Detects if you are in a standard repository, named branch worktree, or detached HEAD state to present only the relevant, safe options for your context.
- Safe cleanup logic: Handles worktree removal and branch deletion only when appropriate, with guardrails to avoid deleting work owned by external tools or losing unmerged changes.
- Use Case: After completing a new payment processing feature branch, use this Skill to safely merge the work to main, create a PR for team review, preserve the branch for later work, or discard the experimental changes, all while following Git best practices.
Quick Start
Use the finishing-a-development-branch skill to complete your current feature branch workflow after verifying all tests pass.