finishing-a-development-branch

Guide safe Git integration of completed development branches after tests pass.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/wolfbela/claude-skill --skill finishing-a-development-branch-wolfbela
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/wolfbela/claude-skill/tree/main/weshake/skills/finishing-a-development-branch
Command: npx skills add https://github.com/wolfbela/claude-skill --skill finishing-a-development-branch-wolfbela

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guide completion of development work by presenting clear options for how to integrate finished changes after tests pass, including merge, PR, or cleanup workflows.

Core Features & Use Cases

  • Structured, deterministic flow to finish a development branch after successful tests.
  • Presents exactly four options: merge locally, push and create PR, keep the branch as-is, or discard the work.
  • Handles base-branch detection, verifies tests, and cleans up worktrees as part of the workflow.

Quick Start

Finish the development branch by selecting one of the four options after tests pass.

Frequently Asked Questions about finishing-a-development-branch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely merge a development branch after testing passes?

To safely merge a development branch after testing passes, you can choose to merge locally, push and create a pull request, keep the branch as-is, or discard the work entirely. The workflow enforces test verification before presenting these integration options.

What are my options for finishing a git branch once tests pass?

When finishing a git branch after tests pass, you have exactly four options: merge locally into the base branch, push and create a pull request, keep the branch as-is for later work, or discard the work and clean up.

How does base branch detection work when integrating a completed git workflow?

Base branch detection automatically identifies the target branch for integration during the git workflow completion process. It ensures your finished work merges or creates a pull request against the correct parent branch without manual configuration errors.

Can I clean up git worktrees automatically after merging a development branch?

Yes, you can clean up git worktrees automatically after merging a development branch. The workflow includes worktree cleanup as part of its discard or merge options, removing leftover working directories once integration is complete.

What is the best way to discard unfinished git branch changes and clean up?

The best way to discard git branch changes is to select the discard option during the workflow completion process. This safely removes the work and cleans up associated worktrees, ensuring no orphaned branches or directories remain.

Do I need to run tests before creating a pull request with this workflow?

Yes, you need to run tests before creating a pull request. The workflow strictly enforces test verification before presenting any integration options, ensuring that only verified code is pushed or merged into the base branch.