finishing-a-development-branch

Guide finished feature branches through merge, PR, or cleanup options.

14|3|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/lgbarn/devops-skills --skill finishing-a-development-branch-lgbarn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/lgbarn/devops-skills/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/lgbarn/devops-skills --skill finishing-a-development-branch-lgbarn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to complete development work by presenting structured, auditable options for merging, PR creation, or cleanup when a feature branch is ready and tests pass.

Core Features & Use Cases

  • Verify tests pass before suggesting integration actions.
  • Present exactly four options: Merge locally, Push and create PR, Keep the branch as-is, or Discard the work, with corresponding steps and safety checks.
  • Clean up worktrees and branches according to the chosen option, enabling a safe and repeatable development flow.

Quick Start

When all tests pass, run this skill to receive four concrete choices for finishing the feature and automated follow-up actions based on your selection.

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

The best way to merge a feature branch or create a pull request is to use a guided workflow that verifies tests, detects the base branch, and presents structured options for local merge, PR creation, keeping, or discarding the work.

What are my options for code integration when a development branch is ready?

For code integration of a ready development branch, your structured options are merging locally, pushing to create a pull request, keeping the branch as-is, or discarding the work, each with corresponding follow-up actions and safety checks.

How do I clean up git worktrees and branches after merging a feature?

To clean up git worktrees and branches after merging a feature, select a structured completion option like local merge or PR creation, which automatically triggers the corresponding cleanup actions to ensure a safe and repeatable development flow.

Does the branch completion workflow require passing tests before suggesting integration options?

Yes, the branch completion workflow requires verification that tests pass before suggesting any integration options, ensuring that only verified code proceeds to local merge, PR creation, or branch cleanup decisions.

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

You should discard a development branch instead of keeping it when the feature work is no longer needed or fails verification, utilizing the explicit discard option to safely remove the worktree and associated branch from your git workflow.