finishing-a-development-branch

Finalize a development branch with four merge or cleanup options after tests pass.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/hitsumabushi334/KGpaper --skill finishing-a-development-branch-hitsumabushi334
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/hitsumabushi334/KGpaper/tree/main/.agent/Skills/finishing-a-development-branch
Command: npx skills add https://github.com/hitsumabushi334/KGpaper --skill finishing-a-development-branch-hitsumabushi334

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes the finalization of a development branch by presenting a clear, repeatable path for merging, PRs, or cleanup after all tests pass.

Core Features & Use Cases

  • Test verification gate: ensures code is stabilized before any merge or cleanup decision.
  • Four-option flow: offers exactly four structured choices: merge locally, push and create PR, keep as-is, or discard.
  • Cleanup automation guidance: provides post-decision steps to tidy worktrees and branches.

Quick Start

Follow these steps to finalize a development branch:

  • Run the project's test suite and confirm a green build.
  • Identify the base branch (e.g., main or master).
  • Choose one of the four options and execute the corresponding steps.

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

To finalize a development branch after tests pass, you choose from a structured four-option flow: merge locally, push and create a pull request, keep the branch as-is, or discard it. You then execute the corresponding steps and perform the required worktree cleanup.

What are the standard options for merging a feature branch in a Git workflow?▼

The standard options for merging a feature branch in a Git workflow include merging locally, pushing to create a pull request, keeping the branch as-is, or discarding it entirely. This structured four-option policy ensures clear merge decisions before post-action cleanup.

How do I clean up local worktrees and branches after a pull request?▼

To clean up local worktrees and branches after a pull request, you follow cleanup automation guidance provided by the branch finalization flow. This specifies the required post-action steps to tidy your environment after you merge, create a PR, or discard changes.

Can I create a pull request without verifying my test suite first?▼

You should not create a pull request without verifying tests first, because this workflow uses a test verification gate. This mechanism ensures code is stabilized and has a green build before offering any structured merge or cleanup options.

What is the best way to structure branch cleanup decisions in Git?▼

The best way to structure branch cleanup decisions in Git is to enforce a four-option policy after a green build. This approach standardizes finalization by offering exactly four structured choices for local merge, PR creation, keeping, or discarding, followed by tidy-up steps.

Why does my Git workflow need a standardized branch finalization process?▼

Your Git workflow needs a standardized branch finalization process to solve the problem of inconsistent merge and cleanup paths. It presents a clear, repeatable path for merging, pull requests, or cleanup, ensuring code is stabilized through test verification before any decisions are made.