finishing-a-development-branch

Automates Git feature-branch finalization with integrated test validation and cleanup options.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/beyondwen/track-record-new --skill finishing-a-development-branch-beyondwen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/beyondwen/track-record-new/tree/main/.gemini/skills/finishing-a-development-branch
Command: npx skills add https://github.com/beyondwen/track-record-new --skill finishing-a-development-branch-beyondwen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams to properly finalize a completed feature branch by validating tests, selecting an integration path, and performing the chosen workflow to keep the mainline clean and auditable.

Core Features & Use Cases

  • Test validation workflow: ensures all tests pass before deciding how to integrate.
  • Structured options: presents four explicit actions (local merge, push PR, keep branch, or discard) to avoid ambiguity.
  • End-to-end cleanup: handles branch hygiene and optional worktree cleanup after execution.

Quick Start

Invoke this skill to guide post-finish workflow from tests passing to merge, PR, or discard.

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

To finalize a git feature branch, you validate CI tests, select an integration path from structured options, execute the chosen workflow, and perform branch cleanup to keep the mainline clean.

What is the best way to merge a completed development branch?

The best way to merge a completed development branch is using a workflow that validates tests, identifies the base branch, and presents explicit actions like local merge, push PR, keep, or discard.

Can I use pull requests instead of local merges for branch integration?

Yes, you can use pull requests for branch integration. The workflow presents push PR as one of four explicit actions alongside local merge, keeping the branch, or discarding it entirely.

How does branch cleanup work after a git merge or pull request?

Branch cleanup after a git merge handles branch hygiene and optional worktree cleanup automatically once your chosen integration workflow executes, ensuring a safe and traceable handoff.

Do I need CI tests to pass before merging a development branch?

Yes, CI tests must pass before merging a development branch. The workflow enforces test verification to ensure safe integration before presenting any structured merge or discard options.

When should I discard a git branch instead of merging it?

You should discard a git branch instead of merging when the completed work is no longer needed. The workflow presents discarding as one of four explicit actions to safely remove unwanted branches.