finishing-a-development-branch

Verify tests and choose among merge, push PR, keep, or discard for a development branch.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill finishing-a-development-branch-dfly7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/DFly7/iOS-FastAPI-Supabase-AI/tree/main/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill finishing-a-development-branch-dfly7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams to finish development work by clearly presenting deterministic options for merging, PR creation, or cleanup once all tests pass.

Core Features & Use Cases

  • Provide deterministic next steps after validation: choose to merge locally, push and open a PR, keep the branch as-is, or discard.
  • Automates decision-making and reduces ambiguity by outlining explicit options and the required cleanup.
  • Use Case: After implementing a feature and passing tests, seamlessly decide the integration path and perform the corresponding cleanup.

Quick Start

Verify tests pass, then select one of the four finalization options to complete 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 to finalize a development branch after all tests pass?

Finalizing a development branch involves verifying tests, identifying the base branch, and selecting an integration path: merge locally, push a pull request, keep the branch, or discard it. This enforces a deterministic decision flow with corresponding cleanup steps.

What are the options for finishing git branch work?

The options for finishing git branch work are merging locally, pushing and opening a pull request, keeping the branch as-is, or discarding it. This fixed decision flow automates cleanup and reduces ambiguity once implementation is complete.

How do I merge a git worktree locally after implementation?

To merge a git worktree locally after implementation, select the local merge option from the finalization flow. This requires passing tests first, identifying the base branch, and executing the corresponding cleanup steps for the merged worktree.

Can I push a pull request instead of merging a branch locally?

Yes, you can push a pull request instead of merging locally. The finalization flow presents both options, allowing you to push your work and open a PR while performing the necessary branch cleanup steps after tests pass.

When should I discard a branch instead of merging it?

You should discard a branch instead of merging when the implementation is no longer needed. After verifying tests, the finalization flow offers a discard option that performs the required cleanup steps to remove the branch and worktree.

Do I need passing tests before creating a pull request?

Yes, passing tests are required before creating a pull request. The finalization flow applies when implementation is complete, enforcing test verification before presenting the options to push a PR, merge locally, keep, or discard the branch.