finishing-a-development-branch

Verify tests and merge, publish, keep, or discard a Git branch.

15|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/mahoushoujyo-eee/eshell --skill finishing-a-development-branch-mahoushoujyo-eee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/mahoushoujyo-eee/eshell/tree/main/.codex/skills/finishing-a-development-branch
Command: npx skills add https://github.com/mahoushoujyo-eee/eshell --skill finishing-a-development-branch-mahoushoujyo-eee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers complete finished work safely by verifying tests, understanding the Git environment, and choosing an appropriate integration or cleanup path without accidentally losing changes.

Core Features & Use Cases

  • Test Verification: Confirms the project test suite passes before merge or pull request actions.
  • Workflow Detection: Identifies the repository type, worktree state, base branch, and cleanup ownership.
  • Completion Options: Guides local merging, pull request creation, keeping the branch, or confirmed discard workflows.
  • Safety Guardrails: Requires explicit discard confirmation and prevents unsafe worktree cleanup or premature branch deletion.

Quick Start

Use the finishing-a-development-branch skill to verify the tests and guide me through the safest way to merge, publish, keep, or discard the current branch.

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 finish a development branch and choose between merging or creating a pull request?

Safely finishing a development branch requires verifying tests, identifying the base branch, and selecting an appropriate integration path like local merging or pull request creation. This prevents accidental loss of changes.

What is the safest way to clean up a Git worktree after completing a branch?

Safely cleaning up a Git worktree involves provenance-aware checks to determine cleanup ownership, preventing unsafe or premature worktree removal. The workflow detects the worktree state before taking any destructive action.

How do I verify tests before merging a Git branch locally?

Verifying tests before merging a Git branch locally involves running the project test suite to confirm it passes. This test verification acts as a safety guardrail before proceeding with any branch completion or integration actions.

Can I discard a completed Git branch without losing uncommitted changes?

Discarding a completed Git branch requires explicit confirmation before executing any destructive actions. This safety guardrail ensures you do not accidentally lose changes during the branch completion or cleanup workflow.

Does this branch completion workflow support both local merging and pull request creation?

Yes, the branch completion workflow supports both local merging and pull request creation. It detects the Git environment and base branch to guide you through the most appropriate integration or cleanup outcome for your repository.