finishing-a-development-branch

Verify tests and finalize Git feature branches with merge, PR, keep, or discard options.

70|6|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/earchibald/vsc-superpowers --skill finishing-a-development-branch-earchibald
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/earchibald/vsc-superpowers/tree/main/.agents/skills/finish-branch
Command: npx skills add https://github.com/earchibald/vsc-superpowers --skill finishing-a-development-branch-earchibald

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This section explains how to guide the finalization of development work once changes are complete and tests pass.

Core Features & Use Cases

  • Verify tests pass before deciding how to integrate work.
  • Present four clear options: merge locally, push PR, keep branch, or discard.
  • Clean up worktrees and branches after the chosen action.

Quick Start

Run the finishing-a-development-branch workflow to systematically close out a feature branch 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 safely finish a git development branch after tests pass?

The workflow verifies tests, determines the base branch, presents four options—merge locally, push PR, keep, or discard—and performs the chosen action along with worktree and branch cleanup.

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

The best way to clean up git feature branches is to automate the finalization process by selecting an integration action, which performs the chosen merge or PR and automatically removes the resulting worktree and branch.

Can I push a GitHub PR automatically when finishing a development branch?

Yes, you can push a GitHub PR automatically when finishing a development branch by selecting the push PR option from the four presented choices after the workflow verifies your tests pass.

Does this branch finalization workflow require any specific git dependencies?

No specific git dependencies are required; the workflow operates within typical feature-branch workflows across Git and GitHub to verify tests, determine a base branch, and execute the chosen finalization action.

Why should I discard a development branch instead of merging it?

You should discard a development branch when the work is no longer needed; the workflow presents this as one of four options alongside merging or pushing a PR, safely removing the branch and worktree after selection.