finishing-a-development-branch

Automate final Git branch integration decisions after tests pass.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development work item requires a clear, repeatable path to merge, PR, or cleanup after successful testing. This guide provides structured options to conclude work without ambiguity.

Core Features & Use Cases

  • Deterministic decision points: Presents four explicit options for merging back to a base branch locally, pushing and creating a PR, keeping the branch as-is, or discarding the work.
  • Base-branch resolution: Helps identify the appropriate base branch (e.g., main or master) for integration.
  • Safe cleanup guidance: Includes steps to clean up worktrees and branches, reducing clutter and preserving repository hygiene.

Quick Start

Ask me to guide post-work integration by choosing from four explicit options.

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

To finish a git branch after tests pass, you choose from four explicit integration options: merge locally into the base branch, push and create a pull request, keep the branch, or discard the work entirely.

What is the best way to clean up a local git branch after merging?

The best way to clean up a git branch after merging involves following safe cleanup guidance to remove worktrees and delete branches, reducing repository clutter while preserving overall repository hygiene.

Can I create a pull request instead of a local git merge?

Yes, you can create a pull request instead of a local git merge; the workflow presents pushing and creating a PR as a distinct, deterministic option alongside local merges, keeping, or discarding.

How does base-branch resolution work for git workflows?

Base-branch resolution works by identifying the appropriate integration target, such as main or master, ensuring your completed feature merges back into the correct foundational branch within your git workflow.

When should I discard a development branch instead of keeping it?

You should discard a development branch instead of keeping it when the work is no longer needed or tests fail, utilizing the explicit discard option to safely remove unwanted changes and maintain repository hygiene.