From superartes
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
How this skill is triggered — by the user, by Claude, or both
Slash command
/superartes:finishing-a-development-branchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guide completion of development work by presenting clear options and handling chosen workflow.
Guide completion of development work by presenting clear options and handling chosen workflow.
Core principle: Verify tests → Present options → Execute choice → Clean up.
Announce at start: "I'm using the finishing-a-development-branch skill to complete this work."
Before presenting options, verify tests pass:
# Run project's test suite
npm test / cargo test / pytest / go test ./...
If tests fail:
Tests failing (<N> failures). Must fix before completing:
[Show failures]
Cannot proceed with merge/PR until tests pass.
Stop. Don't proceed to Step 2.
If tests pass: Continue to Step 2.
Determine the trunk this branch was cut from — do not assume main. master and main are equally valid; some setups deliberately use master.
# Print whichever trunk this repo actually has (does not privilege main):
git rev-parse --verify --quiet master >/dev/null && echo master
git rev-parse --verify --quiet main >/dev/null && echo main
If exactly one prints, that is the base branch. If both or neither print, ask: "This branch split from - is that correct?"
Now that the base branch is known, and before presenting options, recommend an independent second-model review of the finished feature:
Tests pass. Before we integrate, I recommend an external code review (an
independent second model via `superartes:external-code-review`) of the
whole feature against <base-branch>. Want me to run it? [yes / skip]
If anything specific might influence the user's decision — context they need to make the call (e.g. the feature touches auth or a data migration, or a large diff) — include it in this message.
superartes:external-code-review with the --base <base-branch> scope, triage findings via superartes:receiving-code-review, and address anything Critical/Important before continuing.superartes:external-code-review.This is a decision gate: do not proceed to Step 3 until the decision is resolved — and, if the review runs, until it has completed and any Critical/Important findings are addressed. It still does not change the four options below.
Present exactly these 4 options:
Implementation complete. What would you like to do?
1. Merge back to <base-branch> locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
Which option?
Don't add explanation - keep options concise.
# Switch to base branch
git checkout <base-branch>
# Pull latest
git pull
# Merge feature branch
git merge <feature-branch>
# Verify tests on merged result
<test command>
# If tests pass
git branch -d <feature-branch>
# Push branch
git push -u origin <feature-branch>
# Create PR
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<2-3 bullets of what changed>
## Test Plan
- [ ] <verification steps>
EOF
)"
Report: "Keeping branch . You can return to it later."
Confirm first:
This will permanently delete:
- Branch <name>
- All commits: <commit-list>
Type 'discard' to confirm.
Wait for exact confirmation.
If confirmed:
git checkout <base-branch>
git branch -D <feature-branch>
| Option | Merge | Push | Cleanup Branch |
|---|---|---|---|
| 1. Merge locally | yes | - | yes |
| 2. Create PR | - | yes | - |
| 3. Keep as-is | - | - | - |
| 4. Discard | - | - | yes (force) |
Skipping test verification
Open-ended questions
No confirmation for discard
Never:
Always:
Called by:
Pairs with:
npx claudepluginhub andybrandt/superartes --plugin superartesSets up isolated workspaces using native worktree tools or git worktree fallback. Use before starting feature work to protect the current branch.