finishing-a-development-branch

Verify tests pass, then merge locally, open a PR, keep, or discard a Git branch.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The finalization of completed development work is streamlined by providing a deterministic path to merge, open a PR, keep, or discard a branch after successful validation, reducing risk and decision fatigue.

Core Features & Use Cases

  • Verifies tests pass before offering options to the team.
  • Presents exactly four actions: merge locally, push and create a PR, keep the branch as-is, or discard the work.
  • Provides automatic cleanup guidance for the worktree and related resources after a decision.

Quick Start

Verify that all tests pass, then select one of the four actions to finalize and clean up the feature branch.

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 branch after tests pass?

Finalizing a git branch after tests pass is automated by presenting structured merge options, offering choices for local merge, remote pull request, keeping the branch, or discarding it.

What is the best way to merge a feature branch locally or via pull request?

The best way to merge a feature branch is by selecting from four deterministic actions: merge locally, push and create a PR, keep the branch, or discard it, ensuring safe integration across Git workflows.

How do I clean up a git worktree after merging a development branch?

Cleaning up a git worktree after merging is handled by automatic cleanup guidance provided for the worktree and related resources following your branch finalization decision.

Can I discard a git development branch without merging if tests fail?

Discarding a git development branch requires successful test verification first, as the finalization options are only presented after enforcing tests pass before offering actions.

Does finalizing a development branch require a specific base branch?

Finalizing a development branch does not require a manually specified base branch, as the process automatically detects the base branch before presenting integration options.