finishing-a-development-branch

Present a four-option workflow to finalize a git feature branch after tests pass.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/ditchallaway/Robotic-Property-Photographer --skill finishing-a-development-branch-ditchallaway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/ditchallaway/Robotic-Property-Photographer/tree/main/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/ditchallaway/Robotic-Property-Photographer --skill finishing-a-development-branch-ditchallaway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps teams finalize a development branch by standardizing the decision process for merging, PR, cleanup, or discarding work after tests pass.

Core Features & Use Cases

  • Structured decision prompts: Presents exactly four options to resolve a feature branch.
  • Guarded workflow: Enforces test verification before offering merge/PR actions and includes post-merge cleanup steps.
  • Collaborative handoff: Supports clear next steps for developers, reviewers, and CI pipelines in Git workflows.

Quick Start

Verify tests pass, then choose one of the four options to complete or discard the work.

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 feature branch after tests pass, you can use a structured workflow that presents four explicit options: merge, pull request, keep, or discard. It enforces test verification first, then executes the chosen action along with optional worktree cleanup.

What are the options for merging or discarding a git worktree?

The options for finalizing a git worktree within this flow are explicitly limited to four choices: merge into the base branch, create a pull request, keep the branch, or discard the work. Post-cleanup and worktree management are performed after selecting an option.

Can I merge a development branch if my tests are failing?

No, you cannot merge a development branch if tests are failing. This structured workflow implements a strict guard that prevents merges and pull requests when tests fail, enforcing test verification before offering any integration actions.

What is the best way to standardize a pull request and merge workflow for feature branches?

The best way to standardize a pull request and merge workflow is to enforce a fixed decision process. This approach determines the base branch, presents four explicit options after tests pass, executes the chosen action, and performs structured post-merge cleanup for clear developer handoff.

Do I need a specific CI pipeline setup to use a guarded git branch cleanup process?

You do not need a specific CI pipeline setup, but you need a git-based workflow where tests can be verified locally or through CI before finalization. The process supports collaborative handoff to developers, reviewers, and CI pipelines after integration.