finishing-a-development-branch

Validate tests, select a Git integration path, and execute the chosen option.

91|4|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/prime-radiant-inc/serf --skill finishing-a-development-branch-prime-radiant-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/prime-radiant-inc/serf/tree/main/agent/skills/finishing-a-development-branch
Command: npx skills add https://github.com/prime-radiant-inc/serf --skill finishing-a-development-branch-prime-radiant-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a Development Branch guides teams to complete in-progress work by validating tests, determining an appropriate base, and selecting a canonical path to integrate or cleanup.

Core Features & Use Cases

  • Verifies that tests pass before proposing an integration path.
  • Determines the base branch and presents a fixed set of actionable options.
  • Supports four clean outcomes: merge locally, push and create PR, keep the branch for later, or discard with confirmation and cleanup.

Quick Start

Run the task to verify tests, identify the base branch, and present four completion options, then act on the chosen path.

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 branch, this workflow verifies your tests pass, determines the base branch, and presents four structured integration options: local merge, PR creation, keeping the branch, or discarding it.

Can I create a pull request instead of merging a branch locally?

Yes, you can push your branch and create a PR. The workflow presents creating a pull request as one of its four canonical paths for integrating code changes after tests validate successfully.

How do I safely discard a Git branch and cleanup unfinished work?

You can discard work by selecting the discard option, which requires confirmation before executing branch cleanup to ensure unfinished Git changes are intentionally removed.

Does this branch workflow run tests before allowing a merge?

Yes, the workflow verifies that tests pass before proposing any integration path. This ensures your Git branch maintains stability before you proceed with a merge or pull request.

What is the best way to determine the base branch for a Git merge?

The best way is to automate base branch detection during branch finalization. This workflow identifies the correct base branch automatically before presenting structured merge or PR options.