finishing-a-development-branch

Verify test status and present merge, pull request, keep, or discard paths for git branches.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/JiangAustin/Money_Never_Sleep --skill finishing-a-development-branch-jiangaustin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/JiangAustin/Money_Never_Sleep/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/JiangAustin/Money_Never_Sleep --skill finishing-a-development-branch-jiangaustin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you close out a finished development branch without guesswork by verifying the work, checking the Git environment, and offering the right next step.

Core Features & Use Cases

  • Test-first validation: Confirms the project test suite is passing before any merge, push, or cleanup decision is made.
  • Environment-aware branch handling: Detects whether you are in a normal repository, a named worktree, or a detached HEAD context so it can present the correct workflow.
  • Safe completion options: Supports local merge, pull request creation, keeping the branch for later, or discarding work with explicit confirmation.
  • Use case: After finishing a feature, use this Skill to decide whether to merge it into the base branch, open a PR, or keep the branch available for follow-up changes.

Quick Start

Use this skill to finish the current development branch by checking tests and then choosing whether to merge, create a pull request, keep the branch, or discard it.

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 finished git development branch into the base branch?▼

To safely merge a finished git branch, the workflow verifies passing tests, identifies the base branch, and requires explicit confirmation before executing a local merge, pull request creation, or discard action.

What is the best way to clean up git branches after completing feature work?▼

The best way to clean up git branches after feature work is to validate tests, select a completion path like merge or pull request, and apply workspace detection rules before executing any destructive branch deletion.

Does git branch management work differently inside a named worktree or detached HEAD?▼

Git branch management in a named worktree or detached HEAD requires environment-aware detection of the specific checkout context before presenting the correct merge, pull request, or discard workflow.

Why should I verify test status before merging a git branch?▼

You should verify test status before merging a git branch because test-first validation confirms the project test suite is passing, ensuring no broken code enters the base branch during the cleanup process.

How do I discard changes on a development branch without losing uncommitted work?▼

To discard changes on a development branch safely, the workflow requires explicit confirmation before destructive actions, ensuring you intentionally choose to discard work after test validation and workspace detection are complete.