finishing-a-development-branch

Verify tests and present four merge options for finishing a development branch.

178|24|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection --skill finishing-a-development-branch-zhanlincui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection/tree/main/finishing-a-development-branch
Command: npx skills add https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection --skill finishing-a-development-branch-zhanlincui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch provides a structured, safe path to decide how to integrate completed work by verifying tests and offering a tight set of options for merging, PR creation, or cleanup.

Core Features & Use Cases

  • Test verification guided by workflow: Ensure tests pass before any merge decision.
  • Deterministic decision prompts: Presents exactly four options to proceed.
  • Cleanup automation: Optionally cleans up the feature branch and worktrees after completion.
  • Use Case: A feature branch is ready after a bug fix; this skill guides the team to merge locally, push a PR, keep working, or discard safely.

Quick Start

Finish the development branch by verifying tests, determining the base branch, presenting the four options, and executing your chosen action (merge locally, push PR, keep as-is, or discard), followed by cleanup if applicable.

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

Finishing a development branch requires test verification first, followed by selecting one of four structured integration options: merge locally, push and create a pull request, keep the branch, or discard changes.

What is the best way to clean up a git feature branch after merging?

Cleaning up a git feature branch after merging involves optionally removing the branch and its associated worktrees automatically after your chosen integration action completes successfully.

How do I create a pull request from a completed development branch?

Creating a pull request from a completed development branch involves pushing your verified changes and selecting the push and create PR option from the fixed four-option decision prompt during the workflow.

Can I safely discard a git branch without losing unmerged changes?

You can safely discard a git branch by selecting the discard option from the decision prompt, which is offered alongside merge, pull request, and keep options after test verification succeeds.

What steps are required before merging a local git branch?

Before merging a local git branch locally, the workflow enforces test verification and base-branch detection, ensuring your implementation is complete and tests pass before presenting the merge option.