finishing-a-development-branch

Present merge, PR, keep, or discard options for a completed Git branch.

5|2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/oduffy-delphi/coordinator-claude --skill finishing-a-development-branch-oduffy-delphi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/oduffy-delphi/coordinator-claude/tree/main/plugins/coordinator/skills/finishing-a-development-branch
Command: npx skills add https://github.com/oduffy-delphi/coordinator-claude --skill finishing-a-development-branch-oduffy-delphi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch can be error-prone without a clear, auditable path for integrating work. This skill provides deterministic options to wrap up feature work after tests pass, reducing risk and rework.

Core Features & Use Cases

  • Verifies tests pass and identifies a base branch before integration.
  • Presents four explicit options: merge via PR, create a PR for later review, keep the branch for ongoing work, or discard the branch.
  • Cleans up worktrees and coordinates with other skills for automated execution and handoff.

Quick Start

Run the finishing workflow on a completed feature branch to select and apply one of the four options after tests pass.

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

To finalize a Git branch after tests pass, this workflow presents four deterministic options: merge via pull request, create a PR for later review, keep the branch for ongoing work, or discard the work entirely.

What is the best way to clean up a Git worktree after merging a branch?

The best way to clean up a Git worktree after merging is to use a branch finalization workflow that coordinates optional worktree cleanup alongside base-branch detection and integration, ensuring no orphaned worktrees remain after the merge.

Can I create a pull request without merging right away?

Yes, you can create a pull request without merging right away by selecting the explicit option to generate a PR for later review, leaving the current branch intact for ongoing development while awaiting approval.

Does this Git branch cleanup workflow integrate with automated PR creation?

Yes, this Git branch cleanup workflow integrates directly with the merging-to-main skill, enabling automated PR creation and execution handoff when you select the option to merge your completed feature branch via pull request.

How does base-branch detection work when finishing a feature branch?

Base-branch detection works by automatically verifying the parent branch before integration, ensuring the completed feature branch merges into the correct target rather than an incorrect or outdated mainline branch.