skill-finish-branch

Verify test results and finalize Git branches via merge, PR, keep, or discard.

4.0k|369|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/nyldn/claude-octopus --skill skill-finish-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-finish-branch
Source: https://github.com/nyldn/claude-octopus/tree/main/skills/skill-finish-branch
Command: npx skills add https://github.com/nyldn/claude-octopus --skill skill-finish-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishes development branches by ensuring tests pass and directing the final workflow (merge, PR, keep, or discard) safely.

Core Features & Use Cases

  • Verify tests pass before concluding a branch.
  • Choose from four finalization options (merge locally, create PR, keep, discard) with guardrails.
  • Clean up worktrees and branches to maintain a clean mainline after completion.

Quick Start

Finish the current feature branch after tests pass by selecting a finalization option.

Frequently Asked Questions about skill-finish-branch

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

FAQPage Schema
How do I safely finish a Git feature branch after tests pass?

Safely finishing a Git feature branch involves verifying test results, determining a safe base branch, and selecting a finalization action like merging, creating a pull request, keeping, or discarding the branch with optional worktree cleanup.

What is the best way to manage Git branch finalization in a collaborative workflow?

Git branch finalization in a collaborative workflow is best managed by enforcing guardrails such as test verification, explicit user choice for finalization actions, and post-action worktree cleanup to prevent accidental loss of work or destabilization of main branches.

Can I create a pull request automatically when completing a feature branch?

Yes, creating a pull request is one of the four explicit finalization options presented when completing a feature branch, serving as a guarded alternative to merging locally, keeping, or discarding the branch.

How do I clean up Git worktrees after merging a branch?

To clean up Git worktrees after merging a branch, the finalization process includes an optional post-action cleanup step that removes worktrees and branches to maintain a clean mainline after the chosen completion action is performed.

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

You should discard a feature branch instead of merging it when the work is no longer needed, using the explicit discard finalization option which safely removes the branch and handles optional worktree cleanup to maintain repository integrity.

Does Git branch finalization verify test results before merging?

Yes, Git branch finalization verifies test results before concluding a branch, ensuring tests pass as a guardrail before presenting the option to merge, create a pull request, keep, or discard the branch.