finishing-a-development-branch

Coordinate tests, branch selection, integration choices, and cleanup to finish a development branch.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/51hhh/BU03 --skill finishing-a-development-branch-51hhh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/51hhh/BU03/tree/main/.github/skills/finishing-a-development-branch
Command: npx skills add https://github.com/51hhh/BU03 --skill finishing-a-development-branch-51hhh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps finish completed development work by guiding the final branch decision after implementation is done and tests pass.

Core Features & Use Cases

  • Completion Workflow: Verifies the code is ready, then walks through the final integration choices in a structured way.
  • Branch Integration Options: Supports merging locally, pushing for a pull request, keeping the branch unchanged, or discarding the work when appropriate.
  • Safe Cleanup: Handles base-branch detection, confirmation for destructive actions, and worktree cleanup only when it is safe to do so.

Quick Start

Use the finishing-a-development-branch skill to confirm the branch is ready and then present the four completion options.

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 close a git development branch cleanly after tests pass?

Finishing a development branch requires test verification, base-branch detection, and selecting from merge, pull request, keep, or discard options before executing safe worktree cleanup.

What is the best way to handle git worktree cleanup when discarding a branch?

Safe worktree cleanup requires explicit confirmation for destructive branch actions before removal, ensuring no unintended data loss occurs when discarding completed or abandoned work.

Can I push a git branch for a pull request without merging locally?

Yes, pushing for a pull request is a structured integration option that bypasses local merging, allowing remote review while preserving the local worktree until safe cleanup.

Does this branch completion workflow support keeping a branch unchanged?

Yes, you can keep a branch unchanged by selecting the preservation option, which skips merging, pull requests, and worktree cleanup to maintain the current state safely.

When should I discard a development branch instead of merging?

Discard a branch when work is obsolete or unwanted; the workflow requires explicit destructive-action confirmation before removing the branch and cleaning the associated worktree.