finishing-branchComplete development work by presenting structured options for merge, PR, or cleanup. Use when implementation is complete, all tests pass, and you need to decide how to integrate work. Triggers on finish branch, complete branch, merge branch, create PR, done with feature, implementation complete.
Install via ClawdBot CLI:
clawdbot install wpank/finishing-branchComplete development work by presenting clear options and executing the chosen workflow.
After implementation is complete, guides you through verifying tests, presenting integration options, and executing the chosen path (merge, PR, keep, or discard).
KEYWORDS: finish branch, complete branch, merge, PR, done with feature
npm test / cargo test / pytest / go test ./...
If tests fail: Stop. Cannot proceed until tests pass.
Tests failing (N failures). Must fix before completing:
[Show failures]
If tests pass: Continue to Step 2.
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
Or confirm: "This branch split from main - is that correct?"
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?
git checkout <base-branch>
git pull
git merge <feature-branch>
<run tests again>
git branch -d <feature-branch>
Then: Cleanup worktree (Step 5)
git push -u origin <feature-branch>
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<2-3 bullets of what changed>
## Test Plan
- [ ] <verification steps>
EOF
)"
Then: Cleanup worktree (Step 5)
Report: "Keeping branch . Worktree preserved at ."
Do NOT cleanup worktree.
Confirm first:
This will permanently delete:
- Branch <name>
- All commits: <commit-list>
- Worktree at <path>
Type 'discard' to confirm.
Wait for exact confirmation. If confirmed:
git checkout <base-branch>
git branch -D <feature-branch>
Then: Cleanup worktree (Step 5)
For Options 1, 2, 4 only:
# Check if in worktree
git worktree list | grep $(git branch --show-current)
# If yes:
git worktree remove <worktree-path>
For Option 3: Keep worktree.
| Option | Merge | Push | Keep Worktree | Cleanup Branch |
|--------|-------|------|---------------|----------------|
| 1. Merge locally | ✓ | - | - | ✓ |
| 2. Create PR | - | ✓ | ✓ | - |
| 3. Keep as-is | - | - | ✓ | - |
| 4. Discard | - | - | - | ✓ (force) |
Called by:
subagent-development (after all tasks complete)executing-plans (after all batches complete)Pairs with:
git-worktrees - Cleans up worktree created by that skillGenerated Mar 1, 2026
A developer has finished implementing a new feature in a separate Git branch, all tests pass, and they need to integrate the work into the main codebase. This scenario ensures proper version control practices by guiding through merge, PR creation, or cleanup options, preventing integration errors.
A tech team resolves a critical bug in an isolated branch, verifies it with passing tests, and must decide how to deploy the fix quickly. This scenario helps choose between merging locally for immediate deployment or creating a PR for review, maintaining code quality and team collaboration.
During a sprint, a developer completes refactoring tasks in a branch and needs to reintegrate the changes without disrupting ongoing work. This scenario provides structured options to merge, create a PR for team feedback, or postpone, supporting agile workflows and continuous integration.
A research team develops an experimental feature in a branch, tests it successfully, and must decide whether to integrate, save for later, or discard based on results. This scenario facilitates decision-making with clear options, ensuring efficient resource use and innovation tracking.
This skill can be integrated into a SaaS platform offering automated development workflows, helping teams streamline branch management and reduce manual errors. Revenue is generated through subscription tiers based on team size and advanced features like analytics.
Consulting firms can use this skill to provide clients with tailored Git workflow automation, improving code integration processes and reducing deployment times. Revenue comes from project-based fees and ongoing support contracts.
As part of an open-source project, this skill enhances existing Git tools by adding structured finishing workflows, attracting contributors and users. Revenue is generated through donations, sponsorships, and premium support offerings.
💬 Integration Tip
Integrate this skill with existing CI/CD pipelines to automate test verification before presenting options, ensuring seamless workflow transitions and reducing manual intervention.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Provides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.