/finishing-a-development-branch
Finishing a Development Branch
Tests pass, now what. Merge, PR, keep, or discard. Four options, one confirmation, clean worktree.
Used by 1 agent
What it does
Final step of a development branch. Verifies the test suite actually passes, determines the base branch, then presents exactly four options: merge locally, push and open a PR, keep the branch as-is, or discard. Discard requires typed confirmation. Worktree cleanup happens only when appropriate.
Use it at the end of every executing-plans or subagent-driven-development run. Also use it when a hand-built branch is ready and the merge decision needs structure instead of a free-form "what do I do now."
Outputs either a merged base branch, a pushed PR with summary and test plan, a preserved worktree, or a clean discard. Pairs with `executing-plans` and `subagent-driven-development` (both call it) and `using-git-worktrees` (the setup it tears down).
