speckit-superb-finish
Development branch completion protocol. Loads the obra/superpowers finishing-a-development-branch SKILL.md at runtime. Guides the user through structured options (merge, PR, keep, discard) after verif
SKILL.md.claude/skills/speckit-superb-finish/SKILL.md
GitHubFinish — Complete Development Branch
Skill origin: obra/superpowers
finishing-a-development-branchInvocation: Standalone command. Call afterspeckit.superb.verifyconfirms all checks pass.
Prerequisite Gate
Before executing this command, confirm:
speckit.superb.verifyhas been run and passed in this session.- All tests are green (full suite, not subset).
- All
spec.mdrequirements are covered (spec-coverage checklist complete).
If any of the above is not met, STOP:
Cannot finish: verification has not passed yet.
Run /speckit.superb.verify first.
Step 1 — Load the Authoritative Finishing Skill
Locate and internalize the superpowers finishing skill using this priority chain:
- Local plugin: Read
skills/finishing-a-development-branch/SKILL.mdfrom the workspace root (present when superpowers is installed as a plugin). - Remote fetch: If the local file does not exist, fetch from
https://raw.githubusercontent.com/obra/superpowers/main/skills/finishing-a-development-branch/SKILL.md - Embedded fallback: If both fail, apply this minimal contract:
- Verify tests pass (full suite).
- Determine base branch (main/master).
- Present exactly 4 options: merge locally / push & create PR / keep as-is / discard.
- Execute the chosen option.
- Clean up worktree if applicable (options 1 and 4 only).
You must internalize the full SKILL.md content before proceeding.
Step 2 — Bind Spec-Kit Context
- Read any user-provided directives for the PR or merge context:
$ARGUMENTS - Identify the current feature branch name from
tasks.mdheader orgit branch --show-current. - Identify the base branch:
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null - Summarize what was implemented — read
spec.mdfeature name and the verification evidence from the most recentverifyrun.
Step 3 — Execute the Finishing Skill
Apply the loaded skill with these spec-kit additions:
- Final test verification — run the full test suite one more time (the skill requires this).
- Present structured options — exactly 4 choices, no open-ended questions:
Implementation verified 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? - Execute the chosen option — follow the skill's procedures for each option.
- Cleanup — handle worktree cleanup per the skill's rules.
Spec-Kit PR Enhancement (Option 2 only)
If the user chooses "Push and create a Pull Request", enhance the PR body with spec-kit context:
## Summary
[Feature name from spec.md]
## Spec Coverage
[Paste the spec-coverage checklist from the verify run]
## Verification Evidence
- Test suite: [N] tests, [N] passing, 0 failing
- Spec coverage: [N/N] requirements verified
## Review
Consider running `/speckit.superb.critique` for spec-aligned review.