superpowers:finishing-a-development-branch

Verify tests and manage git worktrees before merging branches.

6|Updated May 25, 2026
One-click install
npx skills add https://github.com/zhentingWu-wzt/wgenty-code --skill superpowers-finishing-a-development-branch-zhentingwu-wzt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: superpowers:finishing-a-development-branch
Source: https://github.com/zhentingWu-wzt/wgenty-code/tree/main/.wgenty-code/skills/superpowers/finishing-a-development-branch
Command: npx skills add https://github.com/zhentingWu-wzt/wgenty-code --skill superpowers-finishing-a-development-branch-zhentingwu-wzt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the risk of merging broken code or leaving behind messy, redundant worktrees by enforcing a standardized, test-verified completion workflow.

Core Features & Use Cases

  • Automated Verification: Ensures all tests pass before allowing any integration steps.
  • Environment-Aware Cleanup: Intelligently detects if a worktree is managed by the system and cleans it up only when safe to do so.
  • Structured Options: Provides a clear, menu-driven interface for merging, creating PRs, or discarding work, preventing accidental data loss.

Quick Start

Invoke the finishing-a-development-branch skill to verify your current tests and guide you through the process of merging your feature branch into the main codebase.

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 safely merge a git branch without introducing broken code?

To safely merge a git branch, you need an automated workflow that enforces test verification before integration. This ensures all tests pass and prevents merging broken code by standardizing the branch completion process.

What's the best way to clean up git worktrees after merging a feature branch?

The best way to clean up git worktrees is using environment-aware detection to safely remove them only when managed by the system. This prevents leaving behind messy, redundant worktrees after branch integration.

How do I automate git branch finalization and ensure my test suite passes?

You can automate git branch finalization by running a standardized completion workflow that requires a valid test suite. It enforces automated verification, blocking integration steps until all tests pass successfully.

Can I create a pull request instead of a local merge when finalizing a development branch?

Yes, you can create a pull request instead of a local merge. The workflow provides structured options through a menu-driven interface, allowing you to choose between merging locally, creating PRs, or discarding work safely.

Do I need git command-line access to finalize and clean up development branches?

Yes, you need git command-line access and a valid test suite to finalize development branches. These prerequisites are required to verify code integrity and manage the lifecycle of git worktrees before branch deletion.