finishing-a-development-branch

Finalize a feature branch by merging, PRing, keeping, or discarding it after tests pass.

Updated May 15, 2026
One-click install
npx skills add https://github.com/nachopalmeri/agents-system --skill finishing-a-development-branch-nachopalmeri
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/nachopalmeri/agents-system/tree/main/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/nachopalmeri/agents-system --skill finishing-a-development-branch-nachopalmeri

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finalizes development work by guiding how to integrate or discard a finished feature branch after tests pass.

Core Features & Use Cases

  • Verify tests pass, then present four explicit options for finishing the branch
  • Determine base branch and apply the chosen workflow (merge, PR, keep, or discard)
  • Cleanup worktree and branch state according to the selected option

Quick Start

Run the test suite to ensure everything passes, determine the base branch, then select one of the four finish 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 do I close out a finished git feature branch after tests pass?

To close out a finished git feature branch after tests pass, you verify the test suite, determine the base branch, and select one of four explicit options: merge, pull request, keep, or discard, followed by worktree cleanup.

What are my options for finishing a git branch when development is complete?

The options for finishing a git branch include merging into the base branch, opening a pull request for review, keeping the branch active, or discarding it entirely, ensuring deterministic outcomes for integration or cleanup.

When should I discard a git branch instead of merging or creating a pull request?

You should discard a git branch instead of merging or creating a pull request when the feature is no longer needed or tests fail, allowing you to perform worktree cleanup and remove the branch state deterministically.

How do I clean up a git worktree after merging a feature branch?

To clean up a git worktree after merging a feature branch, you execute the chosen finish option which automatically handles worktree cleanup and resets the branch state according to the selected integration workflow.

Does this branch cleanup workflow require a specific git hosting platform?

No, this branch cleanup workflow applies to any git-based workflow where branches represent features, operating independently of specific hosting platforms to determine the base branch and execute integration or discard options.