finishing-a-development-branch

Present merge, PR, keep, or discard options after tests pass.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/rarilurelo/maieutics --skill finishing-a-development-branch-rarilurelo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/rarilurelo/maieutics/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/rarilurelo/maieutics --skill finishing-a-development-branch-rarilurelo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch after tests pass can be error prone without a clear, auditable path. This guide provides a deterministic process to decide how to integrate or discard work.

Core Features & Use Cases

  • Verifies tests pass before any finalization decision.
  • Determines a base branch and presents four explicit options for merging, PR creation, keeping the branch, or discarding it.
  • Performs cleanup steps to maintain a clean repository state and worktrees.
  • Use case: you are ready to finalize a feature branch but want explicit control over the final action and post-merge hygiene.

Quick Start

Finalize your development branch by choosing one of the four options after tests pass.

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 development branch after tests pass?

To finalize a development branch, this skill presents four explicit options after verifying tests pass: merge into the base branch, create a pull request, keep the branch, or discard it, followed by cleanup steps.

What is the best way to manage branch cleanup and worktree hygiene after a merge?

The best way to manage branch cleanup is using a deterministic workflow that performs explicit post-merge hygiene steps, ensuring a clean repository state and worktrees after finalizing a development branch.

Does finishing a development branch require knowing the base branch?

Yes, finishing a development branch requires knowledge of the repository's base branch to safely determine the integration target and enforce pre-merge validation before finalizing work.

What options do I have for integrating a feature branch without an unsafe merge?

You have four options to integrate a feature branch without unsafe merges: merge into the base branch, create a pull request, keep the branch for later, or discard the work entirely.

Can I discard a feature branch using a structured git workflow?

Yes, you can discard a feature branch by selecting the discard option within the structured git workflow, which safely removes the work and performs necessary cleanup steps to maintain repository state.

Why does pre-merge validation matter when finalizing a git workflow?

Pre-merge validation matters in a git workflow because it enforces that tests pass before any finalization decision, preventing unsafe merges and ensuring only verified work is integrated into the base branch.