finishing-a-development-branch

Integrate a finished development branch via merge, PR, keep, or discard.

22|4|Updated Oct 28, 2025
One-click install
npx skills add https://github.com/ivfarias/ceo --skill finishing-a-development-branch-ivfarias
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/ivfarias/ceo/tree/main/.gemini/skills/finishing-a-development-branch
Command: npx skills add https://github.com/ivfarias/ceo --skill finishing-a-development-branch-ivfarias

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured, auditable path to finish a development branch after all tests pass, reducing decision fatigue and coordinating the final steps.

Core Features & Use Cases

  • Deterministic four-option decision flow: Merge locally, Push PR, Keep as-is, or Discard, each with explicit steps and safeguards.
  • Pre-merge validation and base-branch determination to ensure correct integration context.
  • Clean-up automation for worktrees and feature branches to maintain repository hygiene after the decision.

Quick Start

Select one of the four options after verifying tests pass to safely merge, PR, or discard the feature branch, then perform the recommended 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 finish a Git feature branch after tests pass?

Finishing a development branch involves choosing between merging locally, pushing a pull request, keeping the branch, or discarding it. This structured approach applies pre-merge validation and optional cleanup steps for worktrees to ensure correct integration and repository hygiene.

What's the best way to merge a completed feature branch locally in Git?

Merging a completed feature branch locally requires pre-merge validation to confirm tests are green and determine the correct base branch. After merging, you perform recommended cleanup steps to remove the feature branch and maintain repository hygiene.

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

You should push a pull request instead of merging locally when your standard Git workflow requires code review before integration. Both options are part of a deterministic four-option decision flow that applies pre-merge validation and safeguards to ensure correct integration context.

How do I clean up Git worktrees after merging a feature branch?

To clean up Git worktrees after merging a feature branch, you perform the optional cleanup steps defined within the branch finishing workflow. These automated actions remove worktrees and feature branches after your integration decision, maintaining long-term repository hygiene.

Can I discard a Git development branch safely after tests pass?

You can discard a Git development branch safely after tests pass by selecting the discard option in the deterministic four-option flow. This structured path ensures you remove the feature branch and perform optional worktree cleanup while maintaining a clean repository state.

Does this Git branch workflow require a specific base branch before merging?

Yes, this Git branch workflow requires pre-merge validation and base-branch determination to ensure the correct integration context before you merge locally or push a pull request. This step verifies the target base branch automatically as part of the structured finishing process.