Handles the endgame when you've finished coding and tests pass. Detects whether you're in a regular repo or worktree, verifies tests actually pass, then gives you four structured options: merge locally, push and create a PR, leave it alone, or discard the work. The thoughtful part is how it manages worktree cleanup based on who created it, only removing worktrees it knows came from Superpowers tooling while leaving harness-managed ones intact. It also refuses to continue if tests fail and requires explicit confirmation before discarding work. Gets called automatically by subagent-driven-development and executing-plans when all tasks complete, but you can invoke it directly when you're ready to finish a branch.
npx skills add https://github.com/jnmetacode/superpowers-zh --skill finishing-a-development-branch