finishing-a-development-branch

Validate tests and guide merge, PR, keep, or discard decisions.

1|Updated May 6, 2026
One-click install
npx skills add https://github.com/yckkkk/reo --skill finishing-a-development-branch-yckkkk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/yckkkk/reo/tree/main/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/yckkkk/reo --skill finishing-a-development-branch-yckkkk

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve?

This skill guides the final integration of finished development work by ensuring tests pass and presenting four concrete options to merge, create a PR, keep the branch, or discard.

## Core Features & Use Cases

  • Verify tests pass to ensure code stability before integration.
  • Determine the correct base branch for a safe merge.
  • Present exactly four structured options: merge locally, push and create a PR, keep the branch, or discard.
  • Provide clear post-action cleanup steps for worktrees.

### Quick Start

Verify tests pass, determine the base branch, and present four structured options for merge, PR, keep, or discard to finish the development work.

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

To finalize a git branch after tests pass, you identify the base branch and select one of four options: merge locally, push a pull request, keep the branch, or discard it. The workflow then handles post-action cleanup.

What is the best way to clean up a development branch before merging?

The best way to clean up a development branch before merging is to enforce a deterministic workflow that validates test results first, identifies the base branch, and presents explicit merge, PR, keep, or discard options before executing worktree cleanup.

How does a deterministic workflow handle pull request creation versus local merge?

A deterministic workflow handles pull request creation versus local merge by presenting both as explicit options after verifying tests. You choose to either merge directly to the base branch locally or push the branch to create a PR for integration.

How do I discard a feature branch and clean up its worktree?

To discard a feature branch and clean up its worktree, select the discard option presented during the branch finalization workflow. This executes the branch removal and performs the required post-action worktree cleanup automatically.

Do I need to verify tests before choosing to keep a branch?

Yes, you need to verify tests before choosing to keep a branch. The workflow enforces test validation as an initial step to ensure code stability before presenting the four integration options, including keeping the branch.