finishing-a-development-branch

Validate tests and present Git merge or cleanup options for a development branch.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/h4v1d/extension-collection-geminicli --skill finishing-a-development-branch-h4v1d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/h4v1d/extension-collection-geminicli/tree/main/finishing-a-development-branch
Command: npx skills add https://github.com/h4v1d/extension-collection-geminicli --skill finishing-a-development-branch-h4v1d

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing-a-development-branch guides teams to conclude development work by validating tests and offering structured merge or cleanup options.

Core Features & Use Cases

  • Verify tests pass before proceeding with integration decisions.
  • Determine the common base branch (main/master) and present four precise options.
  • Execute the chosen option (merge locally, push PR, keep the branch, or discard) and perform optional worktree cleanup.
  • Use case: after completing a feature, you want a controlled path to merge or cleanup without drift.

Quick Start

Use the finishing-a-development-branch skill when a feature branch is ready for integration and all tests pass.

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 development branch and merge it safely?

To finish a development branch, the skill validates that tests pass, detects the common base branch, and presents four deterministic options: merge locally, push a PR, keep the branch, or discard it.

What are the standard git branch management options for completing a feature?

Standard git branch management options for completing a feature include merging locally, pushing a pull request, keeping the branch as-is, or discarding it, with optional worktree cleanup applied post-action.

Can I automate pull request creation after my tests pass?

Yes, you can automate pull request creation after tests pass by selecting the push PR option, which executes the push action and performs optional worktree cleanup as part of the branch finalization process.

How does worktree cleanup work when finalizing a git branch?

Worktree cleanup when finalizing a git branch is an optional post-action step that executes after you choose to merge, push a PR, keep, or discard your development branch, ensuring a controlled cleanup without drift.

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

You should discard a development branch instead of merging when the completed feature is no longer needed, selecting the discard option from the four deterministic integration choices to safely finalize the work.

Does finishing a development branch require a specific base branch?

Finishing a development branch does not require a manually specified base branch; the skill automatically detects the common base branch, such as main or master, before presenting integration options.