Skip to content
sickn33 avatar

Finishing A Development Branch

Guided wrap-up for a finished branch: verify tests, then choose merge, PR, keep, or discard.

CCM score
58 of 100
skills.sh installs
453
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the completion flow: test verification, base-branch detection, four structured options, execution, and worktree cleanup
  • Enforces a hard stop when tests fail and requires typed discard confirmation before any branch deletion
  • Blocks local merge on protected base branches, routing integration through pull requests or the repository's guarded merge workflow
  • Designed for agents that finish implementation work and need to hand it off without losing or breaking anything

Install

$ npx -y skills add sickn33/agentic-awesome-skills --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?"

Details

Repository
github.com/sickn33/agentic-awesome-skills
Categories
Git & Releases, Agent Workflow & Planning
First seen
Jun 3, 2026

More from sickn33/agentic-awesome-skills

All 682

Similar to Finishing A Development Branch

More Git & Releases