finishing-a-development-branch

Verifies tests and guides branch finalization with cleanup options.

4|2|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/lyfe2025/lyfes-coding-skills --skill finishing-a-development-branch-lyfe2025
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/lyfe2025/lyfes-coding-skills/tree/main/skills/superpowers/finishing-a-development-branch
Command: npx skills add https://github.com/lyfe2025/lyfes-coding-skills --skill finishing-a-development-branch-lyfe2025

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides teams to finish a development branch after all tests pass by selecting a deterministic closing workflow and performing cleanup tasks such as local merges, PR creation, or branch deletion.

Core Features & Use Cases

  • Verifies tests pass and prevents closing a branch until quality gates are met.
  • Presents four explicit closing options (local merge, push PR, keep as-is, or discard) to standardize branch finalization.
  • Cleans up worktrees and related resources based on the chosen option to keep the repository tidy.

Quick Start

Use the finishing-a-development-branch skill to finalize the current feature branch after tests pass.

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 finalize a git feature branch after tests pass?

Finalizing a git feature branch involves verifying tests pass, detecting the base branch, then choosing from four explicit options: local merge, push PR, keep as-is, or discard, followed by worktree cleanup.

What are the options for closing a development branch deterministically?

Closing a development branch deterministically presents four explicit workflow options: performing a local merge, pushing a pull request, keeping the branch as-is, or discarding it entirely.

Can I close a git branch if tests are failing?

You cannot close a git branch if tests are failing, because the workflow enforces test verification as a quality gate that prevents finalizing a feature branch until all tests pass successfully.

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

To clean up git worktrees after merging a feature branch, the workflow automatically performs post-action cleanup of related worktrees and resources based on your chosen finalization option to keep the repository tidy.

Does this branch finalization workflow require a specific git worktree setup?

The branch finalization workflow does not require specific dependencies, as it operates with standard git worktree and branch structures to guide the closing process and clean up related resources deterministically.