Finishing A Development Branch
Guided wrap-up for a finished branch that verifies tests, then offers merge, PR, keep, or discard options.
- CCM score
- 71 of 100
- skills.sh installs
- 281
- GitHub stars
- 34.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the completion flow: verify tests, determine base branch, present four options, execute the choice, and clean up the worktree
- Presents exactly four choices: merge locally, push and open a PR with
gh pr create, keep the branch as-is, or discard it - Enforces a stop when tests fail, a typed
discardconfirmation before deleting work, and no force-push without explicit request - Designed for work finished through
subagent-driven-developmentorexecuting-plans, and pairs withusing-git-worktrees
Install
$ npx -y skills add davila7/claude-code-templates --skill finishing-a-development-branch -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Finishing a Development Branch
Overview
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."
The Process
Step 1: Verify Tests
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.
Step 2: Determine Base Branch
# Try common base branches
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
Or ask: "This branch split from main - is that correct?"
Step 3: Present Options
Present exactly these 4 options:
Implementation complete. What would you like to do?
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Git & Releases, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the finishing-a-development-branch skill do?
It guides completion of development work once implementation is done and all tests pass. The skill presents four structured options: merge locally, push and create a pull request, keep the branch as-is, or discard the work. It then executes the chosen option and cleans up the worktree where appropriate.
How do I install the finishing-a-development-branch skill?
Run npx -y skills add davila7/claude-code-templates --skill finishing-a-development-branch -y in your project. This installs the skill so the agent can guide you through finishing a branch. It runs without a global install.
Which other skills lead the Git & Releases category?
This skill sits in the Git & Releases category on Claude Marketplaces, alongside triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr. It stands out by focusing on the final integration step, verifying tests before offering merge, PR or cleanup choices.
When should I use finishing-a-development-branch?
Use it when implementation is complete, all tests pass, and you need to decide how to integrate the work. The skill is also called by subagent-driven-development and executing-plans after their tasks finish. It pairs with using-git-worktrees to clean up worktrees that skill created.
More from davila7/claude-code-templates
All 398- Pdb Database281
- Railway Templates280
- Cc Skill Continuous Learning279
- Chembl Database278
- Deepchem278
- Using Git Worktrees278
- Free Tool Strategy276
- Qms Audit Expert276
- Railway Metrics276
- Firecrawl Scraper275
- Pytdc275
- Railway Domain275
- Gene Database272
- File Uploads270
- Uniprot Database269
- Ethical Hacking Methodology266
- Simpy266
- Concise Planning264
- Metabolomics Workbench Database264
- Pentest Commands264
- Diffdock262
- Clinpgx Database261
- Tavily Web261
- Geo Fundamentals260
Similar to Finishing A Development Branch
More Git & Releasescreate-pull-requestwarpdotdev/oz-skills177 installsGuided workflow that creates a GitHub pull request after checking prerequisites, existing PRs, and commit history.
git-pr-workflows-git-workflowsickn33/agentic-awesome-skills293 installsGuarded workflow that takes completed changes through review, validation, commit, and pull request without bypassing branch protection.
git-workflowjezweb/claude-skills1.3K installsGuided git workflows for PR prep, branch cleanup, conflict resolution, and monorepo release tags.
new-branch-and-prcursor/plugins2.3K installsBranch-to-pull-request workflow that creates a fresh branch, implements and tests the change, and opens the PR.
using-git-worktreessickn33/agentic-awesome-skills535 installsSet up isolated git worktrees with directory selection, ignore-safety checks, and baseline test verification.
create-prdavila7/claude-code-templates314 installsStructured guide for opening GitHub pull requests with Sentry's title, description, and reviewer conventions.