finishing-a-development-branch

Verify tests and complete git feature branches with structured workflow options.

26|1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/BinyaminEden/claude-combine --skill finishing-a-development-branch-binyamineden
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/BinyaminEden/claude-combine/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/BinyaminEden/claude-combine --skill finishing-a-development-branch-binyamineden

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Completing development feature branches often involves risky manual steps like skipping test checks, merging broken code, or accidentally deleting work or worktrees. This Skill eliminates those risks by enforcing a structured, safe workflow for branch completion.

Core Features & Use Cases

  • Test Verification Guardrail: Automatically checks that all project tests pass before allowing any branch integration actions, preventing broken code from being merged or pushed.
  • Environment-Aware Workflows: Detects the current git environment (normal repository, named worktree, detached HEAD) to present only the relevant, safe options for the user's context.
  • Safe Integration & Cleanup: Guides users through local merging, pull request creation, branch retention, or discard with mandatory confirmation, plus handles worktree cleanup only when safe to do so.
  • Use Case: After finishing a feature implementation, use this Skill to verify tests pass, choose to merge locally or open a PR, and safely clean up the associated worktree without risking lost work.

Quick Start

Use the finishing-a-development-branch skill to complete your current feature branch work by verifying tests and selecting the appropriate merge, PR, or cleanup option.

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 merge a git feature branch without skipping test checks?

To safely merge a git feature branch, this workflow enforces automated test verification before allowing any integration actions, preventing broken code from being merged. You must pass all tests before proceeding with local merges or pull requests.

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

Cleaning up a git worktree after finishing a feature branch requires environment-aware detection to ensure safe removal. This workflow handles worktree cleanup only when safe and uses mandatory confirmation prompts to prevent accidental data loss.

Can I create a pull request from a detached HEAD state in git?

Yes, you can create a pull request from a detached HEAD state because the workflow detects your current git environment and presents only the relevant, safe options. It adapts to normal repositories, named worktrees, and detached HEAD environments.

What is the best way to prevent accidental data loss when completing a git branch?

The best way to prevent accidental data loss when completing a git branch is using mandatory confirmation prompts before any deletion or discard actions. This structured workflow ensures branch retention or discard is always a deliberate choice.

Does this branch completion workflow work with named git worktrees?

Yes, this branch completion workflow works with named git worktrees by automatically detecting the environment and tailoring the available merge, pull request, and cleanup options to match the specific worktree context safely.

Why should I use a structured workflow for finishing a development branch instead of manual git commands?

A structured workflow for finishing a development branch eliminates risky manual steps like skipping test checks or merging broken code. It enforces test verification and environment detection to prevent accidental work or worktree deletion.