finishing-a-development-branch

Validates finished development branches and guides merge, pull request, keep, or discard decisions.

2|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/LisztVan/subcli-cpp --skill finishing-a-development-branch-lisztvan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/LisztVan/subcli-cpp/tree/main/.pi/skills/superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/LisztVan/subcli-cpp --skill finishing-a-development-branch-lisztvan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you wrap up completed development work without guessing the right next step, so you can merge, open a pull request, keep the branch, or discard it with clear guardrails.

Core Features & Use Cases

  • Test-first completion: Confirms the project’s tests pass before any branch-finalization action is offered.
  • Environment-aware workflow: Detects whether the work is in a normal repo, a named worktree, or a detached HEAD session so it can present the correct completion options.
  • Safe integration choices: Guides local merge, PR creation, branch preservation, or discard flows while protecting the workspace and requiring confirmation for destructive actions.
  • Use case: After finishing a feature branch, use this Skill to validate the branch state, choose the right integration path, and clean up responsibly.

Quick Start

Use the finishing-a-development-branch skill to verify the project is ready and then guide me through the safest way to merge, create a pull request, keep, or discard the completed 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 safely finish a git development branch after tests pass?

To safely finish a git development branch after tests pass, you must validate the project state and choose the correct integration path. This involves selecting a base branch, then executing a local merge, pull request, preservation, or discard flow with safe workspace cleanup.

What is the best way to merge or discard a completed git worktree branch?

The best way to merge or discard a completed git worktree branch is using an environment-aware workflow that detects named worktrees and detached HEAD sessions. This ensures correct completion options are presented while protecting the workspace and requiring confirmation for destructive actions.

Can I create a pull request directly from a detached HEAD session?

Creating a pull request directly from a detached HEAD session requires environment detection to guide the workflow. The process identifies the detached HEAD state to present the correct completion options, ensuring safe integration choices and proper workspace cleanup.

What steps are required to merge a feature branch into a base branch?

Merging a feature branch into a base branch requires test validation, environment detection, and base-branch selection. After verifying tests pass, you choose the local merge option from structured choices to complete the integration and clean up the workspace responsibly.

Does branch finalization require test validation before offering a discard option?

Branch finalization does require test validation before any branch-finalization action is offered. Enforcing test-first completion ensures the project is ready, after which you can safely discard the branch with required confirmation to protect the workspace from destructive actions.