Goal: finish development work without losing verification or branch hygiene.
Workflow:
- Run the project's relevant tests before presenting completion options.
- Inspect git status, branch, worktree state, and uncommitted changes.
- Summarize what changed and what evidence passed.
- Present integration options: commit, open PR, merge, leave changes, or cleanup.
- Execute only the user's chosen option.
- Clean temporary branches/worktrees only when safe and approved.
If tests fail:
- show the failing command and failure count
- stop integration work
- fix or ask before proceeding
Git checks:
git status --short- current branch
- worktree vs normal checkout
- staged vs unstaged changes
Rules:
- do not merge, commit, or delete branches without explicit approval
- do not present PR/merge as ready until verification passes
- keep unrelated dirty work separate
- include residual risk in the final handoff