Finishing a Development Branch

Run tests and present Git integration options for finishing a development branch.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fz42net/superpowers-skills --skill finishing-a-development-branch-fz42net
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Finishing a Development Branch
Source: https://github.com/fz42net/superpowers-skills/tree/main/skills/collaboration/finishing-a-development-branch
Command: npx skills add https://github.com/fz42net/superpowers-skills --skill finishing-a-development-branch-fz42net

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

After completing development work, deciding how to integrate changes (merge, PR, discard) and ensuring a clean state can be error-prone. This skill provides a structured, safe process for finalizing development branches.

Core Features & Use Cases

  • Mandatory Test Verification: Ensures all tests pass before offering integration options, preventing broken merges.
  • Clear Options Presentation: Presents exactly four structured options for integration (merge, PR, keep, discard).
  • Automated Workflow Execution: Handles the chosen Git workflow (checkout, pull, merge, push, PR creation).
  • Safe Cleanup: Manages branch and worktree deletion with explicit confirmation for discarding work.
  • Use Case: You've just finished implementing a feature on a dedicated branch, and all tests are passing. You use this skill to present your human partner with clear options: merge it locally, create a pull request, keep the branch, or discard the work.

Quick Start

  1. Announce: "I'm using the Finishing a Development Branch skill to complete this work."
  2. The AI will first run tests to verify everything passes.
  3. It will then present you with 4 options:
    1. Merge back to <base-branch> locally
    2. Push and create a Pull Request
    3. Keep the branch as-is
    4. Discard this work
  4. Choose an option, and the AI will execute the corresponding Git commands and cleanup.