finishing-a-development-branch

Finalize a completed git branch with merge, PR, keep, or discard options.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/pgm1980/stryker-netx --skill finishing-a-development-branch-pgm1980
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/pgm1980/stryker-netx/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/pgm1980/stryker-netx --skill finishing-a-development-branch-pgm1980

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch safely and consistently by ensuring tests pass, presenting clear next steps, and preventing accidental data loss or incorrect merges.

Core Features & Use Cases

  • Test-first completion: Refuses to proceed until the project test suite passes, reducing the risk of broken code reaching main.
  • Structured workflow decisions: Presents exactly four options (merge locally, open PR, keep branch, or discard) to match common team practices.
  • Safe cleanup with worktree awareness: Removes worktrees for merge/PR/discard paths while preserving them only when you choose to keep the branch.

Quick Start

Tell your AI agent: complete the work by running tests, asking which of the four integration options you want, then performing the matching merge/PR/keep/discard and any required worktree 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 safely finish a git branch after tests pass?

Safely finishing a development branch involves verifying tests pass first, then selecting from structured options: merge locally, open a pull request, keep the branch, or discard it with typed confirmation.

What is the best way to clean up git worktrees when discarding a feature branch?

The best way to clean up git worktrees when discarding a feature branch is to select the discard option, which requires typed confirmation and automatically removes the associated worktree.

Can I open a pull request directly from a local git workflow?

Yes, you can open a pull request directly from a local git workflow by selecting the PR creation option when finalizing your completed development branch.

How do I prevent accidental code loss when deleting a local development branch?

Prevent accidental code loss when deleting a local development branch by requiring typed confirmation before the destructive discard action executes, ensuring explicit user intent.

Does merging a development branch require test verification first?

Yes, merging a development branch requires test verification first, refusing to proceed until the project test suite passes to reduce the risk of broken code reaching main.