finishing-a-development-branch

Verify tests and guide branch completion with merge, PR, keep, or discard options.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch automates the finalization process by verifying tests and guiding a deterministic set of completion options.

Core Features & Use Cases

  • Verify tests pass before proceeding.
  • Determine the base branch and present exactly four options:
  • Merge locally, push and create a PR, keep the branch as-is, or discard.
  • Cleanup worktrees as needed after options are executed.

Quick Start

Run this skill after all tests pass to choose a merge, PR, keep, or discard 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 development branch after tests pass?▼

This Skill finalizes a development branch by verifying tests, detecting the base branch, and presenting four deterministic options: merge locally, push a pull request, keep the branch, or discard it.

What is the best way to choose between merging locally or creating a pull request?▼

This Skill presents a fixed set of four completion options including merging locally or creating a pull request, enforcing test verification first, then executing your chosen path with optional worktree cleanup.

How do I clean up git worktrees after merging a feature branch?▼

This Skill performs optional worktree cleanup automatically after executing your chosen branch finalization action, ensuring no leftover working directories remain after merging or discarding.

Can I discard changes on a development branch safely?▼

Discarding work is one of the four deterministic options presented when finalizing a development branch, executing safely only after tests are verified and the base branch is detected.

Does this branch finalization workflow require passing tests before merging?▼

This workflow enforces test verification as the first deterministic step before detecting the base branch and presenting any completion options for your development branch.