con un clic
finalizing
Complete work with merge, PR, or cleanup options.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Complete work with merge, PR, or cleanup options.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Post-implementation integrity and quality audit.
Session-start skill discovery protocol.
Structured root-cause investigation for bugs and failures.
Execute implementation plan task-by-task inline.
Integrity guardrails during code implementation.
Process code review feedback with rigor.
| name | finalizing |
| description | Complete work with merge, PR, or cleanup options. |
Announce at start: "I'm applying the finalizing skill to wrap up this branch."
Verify tests -> Resolve base branch -> Present options -> Execute -> Clean up worktree.
Run the project's test suite. If tests fail, stop. Report failures and do not offer completion options until they pass.
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
If ambiguous, confirm with the user: "This branch diverged from main — correct?"
Show exactly these four choices:
Implementation complete. How should this land?
1. Merge into <base-branch> locally
2. Push and open a Pull Request
3. Leave the branch as-is (I'll handle it)
4. Discard this work entirely
No elaboration. Wait for selection.
git checkout <base-branch>
git pull
git merge <feature-branch>
# Run tests on merged result
git branch -d <feature-branch>
If post-merge tests fail, abort the merge and report.
git push -u origin <feature-branch>
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<2-3 bullets>
## Test Plan
- [ ] <verification steps>
EOF
)"
Report the branch name and worktree path. Do not clean up anything.
Require explicit confirmation before destroying work:
This permanently deletes:
- Branch <name> and all its commits
- Worktree at <path>
Type 'discard' to confirm.
Wait for the exact word. Then:
git checkout <base-branch>
git branch -D <feature-branch>
| Option | Remove Worktree? |
|---|---|
| 1 — Merge | Yes |
| 2 — PR | Yes |
| 3 — Keep | No |
| 4 — Discard | Yes |
# Check if current work is in a worktree
git worktree list
# Remove if applicable
git worktree remove <worktree-path>
For Option 2, remove the worktree after pushing — the branch lives on the remote now.
Called by:
Pairs with: