finishing-a-development-branch

Verify test status and guide merge, PR, keep, or discard decisions.

131|4|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/AlphaLab-USTC/OhMyCode --skill finishing-a-development-branch-alphalab-ustc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.agents/skills/superpowers/finishing-a-development-branch
Command: npx skills add https://github.com/AlphaLab-USTC/OhMyCode --skill finishing-a-development-branch-alphalab-ustc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you finish implementation safely by verifying tests, then guiding the next step for integrating or disposing of the branch without guesswork.

Core Features & Use Cases

  • Test Verification First: Confirms the work is ready before any merge, PR, or cleanup action is taken.
  • Structured Completion Choices: Presents exactly four clear end-of-branch options: merge locally, open a PR, keep the branch, or discard it.
  • Safe Cleanup Handling: Manages branch deletion and worktree cleanup only when appropriate, reducing accidental loss of work.
  • Use Case: A developer finishes a feature branch and needs a precise, low-friction workflow to validate the result and choose how to integrate it.

Quick Start

Use this skill to verify the branch is ready and then present the four completion options for how to handle it.

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 verify tests before merging a git feature branch?

To verify tests before merging a git feature branch, inspect the branch state and run test validation to confirm the work is ready. This ensures all checks pass before proceeding with pull request creation or local merge execution.

What is the best way to close out a finished development branch?

The best way to close out a finished development branch is to validate tests and choose from four structured completion options: merge locally, open a pull request, keep the branch, or discard it. This structured approach eliminates guesswork during the merge workflow.

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

To safely clean up a git worktree after merging a feature branch, use safe cleanup handling that manages branch deletion only when integration is complete. This prevents accidental loss of work during the final worktree cleanup process.

When should I open a pull request instead of merging a branch locally?

You should open a pull request instead of merging a branch locally when your software engineering workflow requires peer review before final integration. Both are valid completion options presented after test verification succeeds on the feature branch.

Can I keep a development branch instead of discarding it after tests pass?

Yes, you can keep a development branch instead of discarding it after tests pass. Keeping the branch is one of the four explicit completion choices available, allowing you to delay the merge workflow or worktree cleanup without losing the verified work.