finishing-a-development-branch

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

Updated Jan 3, 2026
One-click install
npx skills add https://github.com/jayhjenkins/Dev-Team-Full-SDLC --skill finishing-a-development-branch-jayhjenkins
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/jayhjenkins/Dev-Team-Full-SDLC/tree/main/vendor/superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/jayhjenkins/Dev-Team-Full-SDLC --skill finishing-a-development-branch-jayhjenkins

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams to finish a development branch after implementation and tests, offering a deterministic path to merge, PR, or cleanup.

Core Features & Use Cases

  • Deterministic finish options: Presents exactly four choices - merge locally, push and create a PR, keep the branch as-is, or discard this work - to finalize the feature.
  • Test-driven gating: Verifies that the test suite passes before presenting options to ensure stability.
  • Cleanup automation: Performs necessary cleanup such as worktree removal after the selected action to keep the repository clean.

Quick Start

Run finishing-a-development-branch after your feature passes tests to review the four options and proceed with your chosen path. The skill will handle the merge/PR workflow or cleanup accordingly.

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

To finish a development branch after tests pass, you can choose from four explicit options: merge locally, push and create a pull request, keep the branch as-is, or discard the work, with optional cleanup to remove worktrees and keep the repository clean.

What are the best ways to merge a completed git feature branch?

The best ways to merge a completed git feature branch involve evaluating four deterministic paths: local merge, pushing a pull request, keeping the branch, or discarding it, ensuring you verify the base branch and execute the chosen action with appropriate cleanup.

Does git branch cleanup require tests to pass first?

Yes, branch cleanup and finishing actions are gated by passing tests to ensure stability. The process verifies the test suite passes before presenting merge, pull request, or discard options to finalize the feature safely.

When should I discard a git branch instead of creating a pull request?

You should discard a git branch instead of creating a pull request when the completed work is no longer needed, selecting the discard option from the four explicit finish actions to remove the work and perform necessary repository cleanup.

Can I keep a development branch without merging or creating a PR?

Yes, you can keep a development branch as-is without merging or creating a pull request. The skill presents keeping the branch as one of four explicit actions to finalize your feature, alongside local merge, PR, or discard options.