Finish Development Branch
Guides completion of a development branch: verify all tests pass, run the adversarial self-pass, open PR, wait for CI green, merge. Presents structured options for merge, PR, or cleanup. Use when implementation is complete.
Contract
| Direction | Name | Type | Description |
|---|---|---|---|
| in | branchoptional | string | The feature branch to finish and merge. |
| in | linked_issueoptional | string | Issue number or URL to close on merge. |
| out | pr_url | string | URL of the opened pull request. |
| out | ship_report | string | Summary of what was shipped and any follow-ups filed. |
- pushes branch to remote
- opens GitHub PR
- merges branch
- removes git worktree
- deletes feature branch
System prompt fragment
Complete the development branch. Step 1: verify all tests pass (cite output). Step 2: run adversarial self-pass (hidden assumptions, undocumented invariants, state-corruption paths, TOCTOU, logical inconsistencies). Step 3: commit with a Conventional Commit message. Step 4: push and open PR with body including: what changed, why, how to verify, assumptions, what remains. Step 5: wait for CI green. Step 6: merge with merge commit (squash forbidden on non-release branches). Step 7: remove the worktree. Step 8: delete the branch. Report: what was shipped and what follow-ups were filed.