staff-finishing-a-development-branch

Verify tests and present merge, pull request, keep, or discard options for a finished branch.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/HexSleeves/skills --skill staff-finishing-a-development-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: staff-finishing-a-development-branch
Source: https://github.com/HexSleeves/skills/tree/main/skills/staff-release-engineering
Command: npx skills add https://github.com/HexSleeves/skills --skill staff-finishing-a-development-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps wrap up completed development work by turning a finished branch into a clear next step instead of leaving integration decisions ambiguous.

Core Features & Use Cases

  • Verifies the project tests before any completion action is offered.
  • Detects or confirms the base branch, then presents four structured choices: merge locally, create a pull request, keep the branch, or discard the work.
  • Handles cleanup rules safely, including confirmation before deletion and worktree removal only when appropriate.

Quick Start

Use the finishing-a-development-branch skill to verify tests and help me decide whether to merge, open a pull request, keep, or discard this branch.

Frequently Asked Questions about staff-finishing-a-development-branch

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

FAQPage Schema
How do I verify tests before merging a completed git branch?

Test verification runs automatically before any branch completion action is offered. This ensures your development branch passes project tests before you choose to merge locally, create a pull request, keep, or discard the work.

What's the best way to decide between merging locally or creating a pull request for a finished branch?

The skill detects your base branch and presents four structured choices: merge locally, create a pull request, keep the branch, or discard the work. This structured option presentation helps you choose the safest integration path for your completed development branch.

How do I safely discard a development branch without accidentally losing work?

Discarding a development branch requires explicit confirmation before any deletion occurs. The skill enforces discard confirmation prompts and handles worktree cleanup safely, ensuring work is only removed when you intentionally choose to discard it.

Does branch management cleanup handle git worktree removal automatically?

Worktree cleanup is handled automatically but only when appropriate for the selected completion path. The skill detects active worktrees and manages their removal safely during branch finalization, preventing orphaned worktrees after integration.

When do I need to detect the base branch before finishing a git branch?

Base-branch detection is required whenever implementation work is finished and you need to finalize integration. The skill detects or confirms the base branch automatically, ensuring merge and pull request actions target the correct parent branch.