finishing-a-development-branch

Guide feature branch completion with four integration options after tests pass.

4|Updated Oct 3, 2025
One-click install
npx skills add https://github.com/apexbusiness-systems/APEX-OmniHub --skill finishing-a-development-branch-apexbusiness-systems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/apexbusiness-systems/APEX-OmniHub/tree/main/.cursor/superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/apexbusiness-systems/APEX-OmniHub --skill finishing-a-development-branch-apexbusiness-systems

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams to finalize development work once implementation is complete and tests pass, establishing a clear path for integration decisions.

Core Features & Use Cases

  • Structured decision points: Presents exactly four options to finalize work (merge locally, push and create PR, keep the branch as-is, or discard).
  • Automated workflow steps: Verifies test results, determines the appropriate base branch, and handles cleanup of the worktree after decision.
  • Use Case: When a feature branch is ready for integration, this skill helps you choose and execute the preferred workflow while maintaining code hygiene.

Quick Start

Announce usage of the finishing-a-development-branch skill and follow the prompts:

  1. Verify tests pass.
  2. Determine the base branch.
  3. Choose one of the four options.
  4. Execute the chosen option and clean up as needed.

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?

To finalize a Git feature branch after tests pass, you can choose between four structured options: merge locally, push and create a pull request, keep the branch as-is, or discard it. The workflow verifies tests, identifies the base branch, and cleans up the worktree after your decision.

What are the standard options for finishing a development branch in Git?

The standard options for finishing a development branch are merging locally, pushing to create a pull request, preserving the branch, or discarding it. This structured approach ensures clean branch management and handles worktree cleanup after the chosen integration path.

When should I choose a pull request over a local merge for my Git branch?

You should choose a pull request over a local merge when your team needs code review before integration. The workflow presents both as distinct options, allowing you to push and create a PR or merge directly locally based on your team's collaboration requirements.

Does the branch finishing workflow handle worktree cleanup automatically?

Yes, the branch finishing workflow handles worktree cleanup automatically as part of the process. After you select and execute one of the four finalization options, the workflow ensures the worktree is cleaned up to maintain code hygiene.

What steps are required to complete a Git branch merge workflow?

The required steps to complete a Git branch merge workflow are verifying that tests pass, determining the appropriate base branch, choosing one of the four finalization options, and executing the chosen option with worktree cleanup.

Can I preserve a Git feature branch instead of merging or discarding it?

Yes, you can preserve a Git feature branch by selecting the option to keep the branch as-is. This is one of the four structured paths available when finalizing development work, allowing you to delay integration while maintaining your current progress.