finishing-a-development-branch

Verify tests and execute merge, PR, or branch cleanup options.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to finish development work by verifying tests and presenting structured options for merging, creating a PR, or cleaning up the branch.

Core Features & Use Cases

  • Verifies test results before final integration to prevent broken merges.
  • Presents four explicit options: merge locally, push and create a PR, keep the branch as-is, or discard the work.
  • Cleans up related worktrees and branches automatically or with explicit confirmation when needed.

Quick Start

After implementing a feature and running tests, invoke this skill to decide how to merge or close the branch.

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 my tests pass?

Finishing a development branch involves verifying tests, detecting the base branch, and choosing to merge locally, push for a PR, keep as-is, or discard. It executes your selected option with safety prompts and branch cleanup.

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

The best way to clean up branches after merging is to use a workflow that automatically or explicitly confirms the deletion of related worktrees and branches. This ensures your repository remains organized without accidentally losing unmerged work.

How does a git workflow verify tests before creating a pull request?

A git workflow verifies tests by enforcing test verification before final integration. It prevents broken merges by checking test results and only presenting options to push and create a PR once the implementation is complete and tests pass.

Can I discard changes on a development branch without merging?

Yes, you can discard changes on a development branch without merging. The workflow presents discarding the work as one of four explicit options, executing the cleanup with safety prompts and confirmations to prevent accidental data loss.

Does finishing a branch automatically detect the base branch for a PR?

Yes, finishing a branch automatically detects the base branch during the finalization process. This detection guides the final steps in your Git workflow, ensuring that merges and pull requests target the correct integration branch.