Skip to content
davila7 avatar

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
View on GitHub

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 discard confirmation before deleting work, and no force-push without explicit request
  • Designed for work finished through subagent-driven-development or executing-plans, and pairs with using-git-worktrees

Install

$ npx -y skills add davila7/claude-code-templates --skill finishing-a-development-branch -y

Installs 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

Similar to Finishing A Development Branch

More Git & Releases