jrpease/agent-bootstrap/finish-branch
Claude Code and agent skill by jrpease/agent-bootstrap
- community
Checking that the SKILL.md file is still in the repository.
Decide and execute how completed branch work gets integrated — open a PR, merge locally, or leave the branch. Use when implementation is complete and verified and the work needs to land, when the user says "finish this branch", "land this", "let's integrate", or when wrap-up finds an unintegrated branch.
Install
npx vskill@latest install jrpease/agent-bootstrap/finish-branchSKILL.md
Finish a development branch
Work is done and verified; this skill decides how it lands. It never decides whether the work is done — run verify first if that question is open.
Step 1: Establish the state
Stop and report rather than proceeding if: HEAD is detached, the base can't be resolved, you are on the base branch, or there are no commits ahead (nothing to finish). Uncommitted changes that belong to this work get committed first — per the Git rules, with the user's go-ahead; unrelated loose files are named and left alone.
Step 2: Offer the three outcomes
Present the commit list, then ask — this is the user's call, not a default:
- Open a PR — push the branch,
gh pr createwith a real summary of what
shipped and what was verified. The branch survives review; nothing else is touched. (The usual choice for repos that review via PRs.)
- Merge locally —
git checkout <base> && git pull && git merge <branch>,
push the base, then delete the branch (plain -d, never -D). Only offer this when the repo's history shows direct-to-base merges are normal.
- Leave it — branch stays as-is, pushed or not. Name what state it's left
in so the next session isn't doing archaeology.
If the user has already said which they want ("open a PR when done"), skip the question and do that.
Step 3: Execute and confirm
Do exactly the chosen option. Afterwards, report: branch, what landed where, PR URL if one exists, and what was deleted or kept.
Boundaries
- Never force-push, never rewrite published history, never
-Da branch. - Never merge over a dirty base checkout —
git pullfirst, stop on conflict
and report rather than resolving into surprise content.
- A failing check or unverified change is a reason to stop and say so, not a
reason to land quietly.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingshared/skills/finish-branch/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jrpease/agent-bootstrap/finish-branch)