Finishing a Development Branch

Complete feature development with structured options for merge, PR, or cleanup

43 stars 26 forksGit & Code Review

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add obra/clank --skill Finishing a Development Branch
Manual install
git clone --depth 1 https://github.com/obra/clank.git /tmp/clank
mkdir -p ~/.claude/skills
cp -r /tmp/clank/skills/collaboration/finishing-a-development-branch ~/.claude/skills/Finishing-a-Development-Branch

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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:**

```bash
# 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

```bash
# 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?

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?
```

**Don't add explanation** - keep options concise.

### Step 4: Execute Choice

#### Option 1: Merge Locally
Read the full skill on GitHub

Details

Skill name
Finishing a Development Branch
Repository
obra/clank
Path
skills/collaboration/finishing-a-development-branch/SKILL.md
Repo updated
9 October 2025

FAQ

What does the Finishing a Development Branch skill do?

Complete feature development with structured options for merge, PR, or cleanup

How do I install the Finishing a Development Branch skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add obra/clank --skill Finishing a Development Branch. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Finishing a Development Branch popular?

It lives in obra/clank, which has 43 GitHub stars and 26 forks.

Related skills

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.