finishing-a-development-branch

Verify tests and enforce a four-option decision model for Git branch finishing.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/irismaker/ai-agent-skills-hub --skill finishing-a-development-branch-irismaker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/irismaker/ai-agent-skills-hub/tree/main/workflow/git/finishing-a-development-branch
Command: npx skills add https://github.com/irismaker/ai-agent-skills-hub --skill finishing-a-development-branch-irismaker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill guides teams to safely finish development work by verifying tests, selecting an integration path, and cleaning up the development branch.

Core Features & Use Cases

  • Verify tests pass before completing work.
  • Determine the base branch and present a fixed set of options (merge locally, push and PR, keep as-is, or discard).
  • Perform chosen actions and cleanup the worktree, ensuring reproducible results in CI/CD workflows.

Quick Start

Verify tests pass, determine the base branch, present the four options, and execute the chosen action with appropriate cleanup.

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 before integration?

To finish a Git development branch, verify tests pass, detect the base branch, choose an integration path, and execute post-worktree cleanup to ensure reproducible results.

What is the best way to merge or create a PR for a completed feature branch?

The best way to manage a completed feature branch is applying a four-option decision model: merge locally, push and create a PR, keep the branch as-is, or discard it entirely.

How do I verify tests pass before creating a pull request?

You can verify tests pass before creating a pull request by running the automated test suite to ensure the code meets project standards prior to selecting a branch integration path.

How do I clean up a Git worktree after merging a development branch?

To clean up a Git worktree after merging, execute post-worktree cleanup actions following your chosen integration path to ensure reproducible results in CI/CD workflows.

Can I discard a feature branch instead of merging it into the base branch?

Yes, you can discard a feature branch instead of merging by selecting the discard option from the enforced four-option decision model during the workflow finish process.