finishing-a-development-branch

Guide merge, pull request, and cleanup options after tests pass.

Updated May 19, 2026
One-click install
npx skills add https://github.com/costrict-plugins-repo/anthropic-superpowers --skill finishing-a-development-branch-costrict-plugins-repo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/costrict-plugins-repo/anthropic-superpowers/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/costrict-plugins-repo/anthropic-superpowers --skill finishing-a-development-branch-costrict-plugins-repo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guide post-merge completion of development work by presenting clear, structured options for merge, PR, or cleanup after tests pass.

Core Features & Use Cases

  • Verifies tests pass before offering options to complete development work.
  • Detects repository environment (normal repo, named worktree, or detached HEAD) to tailor available actions.
  • Presents a fixed set of options (merge locally, push PR, keep worktree, or discard) and performs necessary cleanup after completion.

Quick Start

Run the finishing-a-development-branch flow to safely finalize your merged work after all tests pass.

Frequently Asked Questions about finishing-a-development-branch

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

FAQPage Schema
What's the best way to finalize a git development branch after tests pass?

To finalize a git development branch after tests pass, you should verify your environment, then choose between merging locally, opening a pull request, or cleaning up the worktree. This ensures safe completion of your feature work.

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

To safely clean up a git worktree after merging, the workflow detects whether you are in a normal repo, named worktree, or detached HEAD, and then performs the necessary branch deletion and cleanup actions to safely finalize the merged work.

Can I open a pull request directly from a named git worktree?

Yes, you can open a pull request from a named git worktree. The workflow detects the repository environment, including named worktrees and detached HEAD states, to tailor the available PR and merge options for your branch.

Do I need to run tests before merging a development branch?

Yes, you need to run tests before merging a development branch. The workflow enforces verification that tests pass before presenting the structured options to merge, open a pull request, or discard your feature branch.

What options do I have for finishing development work in a local git repository?

When finishing development work in a local git repository, you have a fixed set of options: merge locally, push and open a pull request, keep the worktree, or discard the work. These options are presented only after tests pass.