finishing-a-development-branch

Verify tests and present four git options for finishing a development branch.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/ilderaj/superpowering-with-files --skill finishing-a-development-branch-ilderaj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/ilderaj/superpowering-with-files/tree/main/harness/upstream/superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/ilderaj/superpowering-with-files --skill finishing-a-development-branch-ilderaj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Completing a development branch often stalls releases when teams must decide how to integrate finished work. This skill provides a structured, deterministic path by verifying tests, identifying the base branch, and presenting four explicit finalization options to choose from.

Core Features & Use Cases

  • Structured decision flow: Validates tests, resolves the base branch, and presents four concrete finalization options.
  • Guardrails and cleanup: Ensures test verification before action and offers clean-up steps for branches or worktrees as needed.
  • Use Case: After implementing a feature and passing tests, use this skill to decide between local merge, PR workflow, keeping the branch for later, or discarding the work.

Quick Start

Use the finishing-a-development-branch skill to guide the finalization of completed work after tests pass and choose one of the four 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 finalize a git development branch after passing tests?

Finalizing a development branch after tests pass involves verifying the build, detecting the base branch, and selecting a completion path: merge locally, push for a pull request, keep for later, or discard.

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

Merging a finished feature branch locally is best handled by running deterministic git commands with safety checks, ensuring tests pass first, then guiding the merge directly into the detected base branch.

How do I clean up a git worktree after completing a feature branch?

Cleaning up a git worktree after completing a feature branch requires selecting a finalization option that triggers guardrails, offering explicit clean-up steps to safely remove the branch or worktree after integration.

Does this branch finalization workflow support creating a pull request?

This branch finalization workflow supports creating a pull request by pushing the completed development branch to a remote repository, which is one of the four explicit options presented after test verification.

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

You should discard a development branch instead of merging when the finished work is no longer needed, selecting the discard option from the four structured choices to safely remove the unwanted changes.