superpowers-finishing-a-development-branch

Verify tests and finalize development branches with merge, PR, or cleanup options.

90|5|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/christopherarter/superpowers-reasonix --skill superpowers-finishing-a-development-branch-christopherarter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: superpowers-finishing-a-development-branch
Source: https://github.com/christopherarter/superpowers-reasonix/tree/main/skills/superpowers-finishing-a-development-branch
Command: npx skills add https://github.com/christopherarter/superpowers-reasonix --skill superpowers-finishing-a-development-branch-christopherarter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishes a development branch after tests pass by guiding a deterministic finalization flow and cleanup.

Core Features & Use Cases

  • Verifies tests before finalizing to prevent broken merges.
  • Detects repository state (normal repo, named branch, or detached HEAD) to present consistent options.
  • Executes the selected finalization path (merge locally, push a PR, or cleanup) with optional worktree management.

Quick Start

Verify tests pass, then choose an option to finalize the feature — merge locally, push a PR, or clean up.

Frequently Asked Questions about superpowers-finishing-a-development-branch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I finish a git branch after tests pass?

Finishing a git branch after tests pass involves verifying the test suite, detecting the repository environment, and presenting consistent options to merge locally, push a pull request, or execute cleanup.

Can I finalize a git worktree with a named branch or detached HEAD?

Finalizing a git worktree with a named branch or detached HEAD is supported. The process detects the repository state and adapts its options to support normal repos, named-branch worktrees, and detached HEAD workflows.

What's the best way to merge or push a pull request from a development branch?

The best way to merge or push a pull request from a development branch is to use a four-option decision flow that verifies tests first, then executes the chosen finalization path with optional worktree management and automatic cleanup.

Does finishing a branch automatically clean up the local worktree?

Yes, finishing a branch automatically cleans up the local worktree. After executing the chosen finalization action, such as a local merge or pull request push, the process performs post-work cleanup to remove unnecessary worktree artifacts.

Why should I verify tests before merging a development branch?

Verifying tests before merging a development branch prevents broken merges. The finalization flow checks that tests pass successfully before presenting execution options, ensuring only stable code is merged or submitted as a pull request.