finishing-a-development-branch

Present four merge, PR, keep, or discard options after tests pass.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/miles990/claude-starter-kit --skill finishing-a-development-branch-miles990
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/miles990/claude-starter-kit/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/miles990/claude-starter-kit --skill finishing-a-development-branch-miles990

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides the completion and integration of development work by presenting a clear set of options for merging, creating a PR, or cleaning up the feature branch after all tests pass.

Core Features & Use Cases

  • Verify tests pass before presenting options.
  • Determine a base branch for proper merging decisions.
  • Present exactly four structured options: local merge, push-PR, keep branch, or discard.
  • Execute the chosen path and perform optional cleanup of worktrees when applicable.
  • Use case: you finish a feature and want a safe, auditable path to merge or remove the branch without guesswork.

Quick Start

Use finishing-a-development-branch to finalize a completed feature by running the skill after tests pass and selecting one of the four options.

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 merge a git development branch after tests pass?

To merge a git development branch after tests pass, you use a workflow that verifies tests, detects the base branch, and presents structured options like local merge or push-PR to finalize the feature branch integration.

What are the options for finishing a feature branch in git?

Options for finishing a feature branch in git include performing a local merge, pushing to create a pull request, keeping the branch active, or discarding the work, with optional cleanup of worktrees after the chosen action.

Do I need to verify tests before creating a pull request?

Yes, test verification is required before creating a pull request or executing a local merge. This ensures the feature branch is stable and provides a safe, auditable path before integrating completed work into the base branch.

What is the best way to clean up a git worktree after merging?

The best way to clean up a git worktree after merging is to use a workflow that executes optional cleanup steps automatically after you select a merge or discard path for your completed feature branch.

Can I discard a completed feature branch instead of merging it?

Yes, you can discard a completed feature branch instead of merging it. The workflow provides exactly four structured options, including discarding the work and keeping the branch, allowing flexible branch management.