finishing-a-development-branch

Finalize a development branch with structured git integration options.

6|2|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/EricOo0/stock-trading-platform --skill finishing-a-development-branch-ericoo0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/EricOo0/stock-trading-platform/tree/main/.codex/superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/EricOo0/stock-trading-platform --skill finishing-a-development-branch-ericoo0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finalizes a development branch by guiding the user through structured integration options after tests pass.

Core Features & Use Cases

  • Deterministic finalization: Verifies test results, determines base branch, and presents four explicit options for integrating or cleaning up.
  • Clear workflow options: 1) Merge locally, 2) Push and create a PR, 3) Keep the branch as-is, 4) Discard this work, with optional cleanup steps.
  • Use Case: After implementing a feature and passing tests, use this skill to decide how to integrate or properly remove the feature branch in a controlled manner.

Quick Start

  1. Ensure all tests pass locally.
  2. Determine the base branch (main/master) with git merge-base HEAD <base-branch>.
  3. Pick one of the four options:
      1. Merge locally
      1. Push and create PR
      1. Keep the branch as-is
      1. Discard this work
  4. Execute the corresponding steps and perform cleanup if 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?

Finalizing a git feature branch involves choosing an integration path: merge locally, push and create a pull request, keep the branch, or discard the work. You first determine the base branch using git merge-base to ensure predictable outcomes.

What are the options for integrating a development branch into the main branch?

Integration options for a development branch include merging locally into the base branch, pushing and creating a pull request via GitHub CLI, keeping the branch as-is, or discarding the work with optional cleanup steps.

How do I create a pull request using GitHub CLI after completing a feature?

To create a pull request using GitHub CLI after completing a feature, select the push-and-PR workflow option. This pushes your current branch to the remote repository and triggers pull request creation for structured integration.

When should I clean up a local git branch instead of merging it?

You should clean up a local git branch instead of merging when the work is no longer needed or you want to discard changes. This removes the feature branch from your local repository to maintain a clean branch-management state.

Does this branch finalization workflow support standard git and GitHub CLI tooling?

Yes, this branch finalization workflow enforces deterministic steps using standard git tooling and GitHub CLI. It applies to typical feature-branch workflows to ensure predictable outcomes during integration and cleanup.