finishing-a-development-branch

Verify tests and guide branch merge, PR, keep, or discard decisions.

27|9|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/datasciencemonkey/claude-code-cli-bricks --skill finishing-a-development-branch-datasciencemonkey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/datasciencemonkey/claude-code-cli-bricks/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/datasciencemonkey/claude-code-cli-bricks --skill finishing-a-development-branch-datasciencemonkey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides software teams in finishing a development branch by automatically verifying tests and presenting deterministic, structured options for merging, creating a PR, keeping the branch, or discarding the work, ensuring clean integration and traceability.

Core Features & Use Cases

  • Test verification gate: ensures the feature branch passes all tests before finalizing.
  • Four explicit options: merge locally, push and create a PR, keep the branch as-is, or discard the work with confirmation.
  • Guided workflow: provides exact commands for each option and automates optional cleanup of worktrees.
  • Use cases: when a feature is complete on a branch and a decision is needed for integration or cleanup, with safety checks.

Quick Start

Confirm that tests pass, then respond to the prompt with one of the following options:

  1. Merge back to the base branch locally
  2. Push and create a Pull Request
  3. Keep the branch as-is
  4. Discard this work I will execute the chosen option and perform cleanup if required.

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 development branch after feature work is complete?

To finish a development branch, you verify tests pass and choose from four deterministic options: merge locally, push and create a pull request, keep the branch, or discard the work with confirmation.

What is the best way to merge a feature branch locally and clean up the worktree?

The best way to merge a feature branch locally is to select the guided merge option, which executes the merge to the base branch and performs optional worktree cleanup to ensure safe integration.

Do I need to run tests before creating a pull request from my feature branch?

Yes, you need to run tests before creating a pull request because the workflow includes a test verification gate that enforces all tests pass before finalizing any branch integration decision.

Can I discard git branch changes safely if I decide not to merge the feature?

You can discard branch changes safely by selecting the discard option, which removes the work after an explicit confirmation step to prevent accidental data loss during the workflow.

How does a guided workflow determine the base branch for a git merge?

A guided workflow determines the base branch automatically during the deterministic finish sequence, ensuring the local merge targets the correct integration point before applying changes.