finishing-a-development-branch

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

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/kgadek/kgadek-claude-plugin --skill finishing-a-development-branch-kgadek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/kgadek/kgadek-claude-plugin/tree/main/ai-spec/2026-01-21-sdd-inspirations/references/obra-superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/kgadek/kgadek-claude-plugin --skill finishing-a-development-branch-kgadek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch can be ambiguous; this skill guides completion by presenting structured options for merging, PR creation, or cleanup.

Core Features & Use Cases

  • Presents four explicit options to finish work: merge locally, push and create a PR, keep the branch, or discard.
  • Verifies tests before offering options and handles base-branch determination.
  • Integrates with standard Git workflows to finalize feature work in a deterministic way.

Quick Start

Verify tests pass, determine the base branch, and then select one of the four finish options to complete the work.

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?

Finalize a development branch by verifying tests pass, determining the base branch, and selecting one of four options: merge locally, push and create a pull request, keep the branch, or discard it.

What's the best way to merge a feature branch locally vs creating a pull request?

Choose local merge to combine the branch directly into the base branch, or push and create a pull request for remote review. Both options are available after tests pass, ensuring a deterministic workflow.

Can I safely discard a Git branch without losing uncommitted changes?

Discarding a branch is one of the four finish options presented. The workflow includes safety checks to ensure deterministic cleanup when you choose to discard or keep the branch.

Does this Git workflow require tests to pass before merging?

Yes, the workflow verifies tests before presenting any finish options. Test verification is a prerequisite step ensuring the branch is ready for merge, pull request creation, or cleanup.

When do I need to identify the base branch in a Git workflow?

Identify the base branch when implementation is complete and tests pass. The workflow handles base-branch determination to guide you through selecting merge, pull request, keep, or discard options.