branch-completion

Verify tests and complete Git feature branches with four structured options.

3|1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/jagreehal/jagreehal-claude-skills --skill branch-completion
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: branch-completion
Source: https://github.com/jagreehal/jagreehal-claude-skills/tree/main/skills/branch-completion
Command: npx skills add https://github.com/jagreehal/jagreehal-claude-skills --skill branch-completion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams finish feature development securely by enforcing a test verification gate before finalizing a branch's work and guiding the subsequent steps.

Core Features & Use Cases

  • Verify tests before completion to ensure code quality.
  • Present exactly four structured options: local merge, push and PR, keep as-is, or discard with confirmation.
  • Execute cleanup actions like removing worktrees and deleting branches after a decision to keep the repo clean.
  • Use case: after all tests pass on a feature branch, invoke this Skill to choose the next action and perform the required operations automatically.

Quick Start

Ensure tests pass, then invoke the branch-completion skill to receive the four completion options and select the desired action.

Frequently Asked Questions about branch-completion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely complete a git feature branch after tests pass?▼

To safely complete a git feature branch after tests pass, you can use an automated workflow that verifies tests as a mandatory gate before offering structured completion options like local merge, push and pull-request, or cleanup.

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

The options for finishing a feature branch in a git workflow include local merge, push and pull-request creation, keeping the branch as-is, or discarding it with confirmation to ensure code quality before finalizing.

How does branch cleanup work after merging a feature branch?▼

Branch cleanup after merging a feature branch works by executing deterministic actions that remove associated worktrees and delete the branch itself, ensuring the repository remains clean after a completion decision is made.

Can I enforce a test verification gate before creating a pull request?▼

Yes, you can enforce a test verification gate before creating a pull request by using an automated process that mandates passing tests before presenting the option to push the branch and initiate a PR.

Does this branch completion workflow handle local merges and pull requests?▼

Yes, this branch completion workflow handles local merges and pull requests by presenting exactly four fixed options after verifying tests, allowing you to choose between local integration or remote pull-request creation.

When should I discard a git branch instead of merging it?▼

You should discard a git branch instead of merging it when the development work is no longer needed, selecting the discard option with confirmation to safely remove the worktree and delete the branch.