finishing-a-development-branch

Present merge, PR, keep, or discard options after tests pass.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/jaydubya818/New_baseline --skill finishing-a-development-branch-jaydubya818
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/jaydubya818/New_baseline/tree/main/skills/superpowers/finishing-a-development-branch
Command: npx skills add https://github.com/jaydubya818/New_baseline --skill finishing-a-development-branch-jaydubya818

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing-a-development-branch provides a structured, repeatable way to finalize a completed feature by validating tests, selecting a definitive finish path (merge locally, push PR, keep the branch, or discard), and cleaning up the work tree to maintain a clean git history.

Core Features & Use Cases

  • Verify tests pass before presenting options to avoid merging broken code.
  • Determine the base branch and offer exactly four outcome options to standardize handoffs.
  • Execute the chosen action and perform optional cleanup, including worktree removal, while integrating with common workflows.

Quick Start

After your feature branch passes all tests, invoke this skill to choose a finish action (merge locally, push PR, keep as-is, or discard) and execute the chosen option.

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?

To finalize a git development branch after tests pass, you select from four deterministic options: merge locally, push a pull request, keep the branch, or discard it, followed by optional worktree cleanup to maintain a clean repository.

What is the best way to merge a feature branch locally?

The best way to merge a feature branch locally is to use a structured workflow that automatically detects the base branch and presents a deterministic four-option prompt to standardize the merge, PR, keep, or discard decision.

Can I integrate CI test commands before deciding to push a pull request?

Yes, you can integrate common CI test commands to verify they pass before the workflow presents push pull request options, ensuring broken code is never merged into the base branch.

Does git branch cleanup remove worktrees when discarding development work?

Git branch cleanup does remove worktrees when discarding development work, executing the chosen discard action and performing optional worktree removal to keep the local environment clean.

When do I need to discard a feature branch instead of keeping it?

You need to discard a feature branch instead of keeping it when tests fail or the work is abandoned, selecting the discard option from the four-option prompt to execute removal and optional worktree cleanup.