finishing-a-development-branch

Finalize a development branch by verifying tests, selecting a base branch, and choosing a completion action.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/eugene-belkovich/ai-setup --skill finishing-a-development-branch-eugene-belkovich
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/eugene-belkovich/ai-setup/tree/main/claude/base/skills/process/finishing-a-development-branch
Command: npx skills add https://github.com/eugene-belkovich/ai-setup --skill finishing-a-development-branch-eugene-belkovich

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides completion of development work by verifying tests, determining the base branch, and presenting a structured, deterministic decision path for merge, PR, or cleanup.

Core Features & Use Cases

  • Verify tests pass before presenting options.
  • Determine base branch (e.g., via git merge-base HEAD main or master).
  • Present exactly four options: Merge locally, Push and create PR, Keep as-is, Discard this work.
  • Cleanup worktree after completing the chosen action when applicable.

Quick Start

Run the finishing-a-development-branch skill to validate tests, decide the base, and apply a chosen completion path.

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 finalize a git feature branch after development is complete?▼

Finishing a development branch requires verifying tests pass, determining the base branch via git merge-base, and selecting one of four options: merge locally, push and create a pull request, keep as-is, or discard the work.

What are the options for finishing a development branch in a collaborative project?▼

The options for finishing a development branch are merging locally, pushing and creating a pull request, keeping the branch as-is, or discarding the work. Cleanup is performed after the chosen action executes.

How does a git worktree get cleaned up after merging a branch?▼

After you choose a completion action like merging locally or creating a pull request, the worktree cleanup is performed automatically to safely remove the working directory associated with the finished branch.

Do tests need to pass before creating a pull request from a feature branch?▼

Tests must pass before you can create a pull request or merge a feature branch. The skill verifies test suites pass first, ensuring release readiness before presenting any structured completion options.

How is the base branch determined for a git merge?▼

The base branch for a merge is determined by identifying the git merge-base, typically main or master. This identifies the correct integration branch before presenting the finalization options.