finishing-a-development-branch

Validate tests and guide merge or PR decisions for Git feature branches.

8|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/dxc-danny/superpowers-cn --skill finishing-a-development-branch-dxc-danny
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/dxc-danny/superpowers-cn/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/dxc-danny/superpowers-cn --skill finishing-a-development-branch-dxc-danny

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams safely finalize feature work by ensuring tests pass and providing a structured decision path for integrating changes into the mainline.

Core Features & Use Cases

  • Validate tests pass before any merge or PR.
  • Determine the appropriate base branch using git merge-base.
  • Present four explicit options: local merge, push/PR, keep worktree, or discard.
  • Clean up worktrees and branches after the decision to prevent drift.

Quick Start

Announce that you are using finishing-a-development-branch and follow the guided steps to validate tests, choose an option, and perform necessary cleanup.

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 merge a git feature branch after testing?

To safely merge a git feature branch, you must validate that tests pass first, identify the correct base branch using git merge-base, and then select a structured integration option like a local merge or pull request.

What is the best way to clean up git worktrees after merging a branch?

The best way to clean up git worktrees after merging is to use a guided workflow that performs post-task workspace cleanup, preventing branch drift by removing obsolete worktrees and branches after your integration decision.

How do I determine the correct base branch before creating a pull request?

You can determine the correct base branch before creating a pull request by applying the git merge-base command, which identifies the appropriate integration target for your feature branch safely and accurately.

Can I push a git feature branch without merging locally?

Yes, you can push a git feature branch without merging locally by choosing the explicit push and pull request creation option, which is one of four actionable outcomes provided during the branch finalization process.

Does finalizing a development branch require all tests to pass?

Yes, finalizing a development branch requires test verification to ensure all tests pass before presenting any merge, pull request, keep worktree, or discard options for safe integration.

What options do I have if a feature branch is ready but I want to discard it?

If a feature branch is ready but you want to discard it, you can select the explicit discard option provided among the four outcomes, which ensures proper cleanup of the worktree and prevents workspace drift.