What problem does it solve?
Finishing a development branch often becomes risky or confusing when tests have run but the next steps for merge, PR, or cleanup are unclear, leading to broken integration or accidental loss of work.
Core Features & Use Cases
- Test-Gated Completion: Requires verifying the project test suite before offering any merge/PR/discard actions.
- Four Structured End-State Options: Presents exactly four concise choices (merge locally, push + PR, keep as-is, discard) to remove ambiguity.
- Worktree-Aware Cleanup: Performs safe cleanup for merge/PR/discard scenarios while preserving the worktree only when the user explicitly chooses to keep it.
Use case example: After implementing a feature and running CI successfully, use this skill to decide whether to merge back into the correct base branch, open a pull request, keep the branch for later, or discard it with a typed confirmation.
Quick Start
Use the finishing-a-development-branch skill to complete your development work by verifying tests, choosing one of four integration options, and performing the corresponding cleanup steps.