finishing-a-development-branch

Verify tests and execute merge, push, keep, or discard actions for a git feature branch.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/thiansit/LuPang --skill finishing-a-development-branch-thiansit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/thiansit/LuPang/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/thiansit/LuPang --skill finishing-a-development-branch-thiansit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers finalize work on a feature branch by verifying tests, presenting a concise set of integration options, and performing the chosen git workflow while protecting work from accidental deletion.

Core Features & Use Cases

  • Test Verification: Ensures the project's test suite passes before offering any integration action.
  • Structured Decisioning: Presents exactly four options—merge locally, push and create a PR, keep the branch, or discard with typed confirmation—to avoid ambiguous follow-ups.
  • Safe Execution & Cleanup: Executes merges, pushes, branch deletions, and git worktree removal with explicit verification and confirmation steps to prevent data loss.
  • Use Case: When implementation is complete and tests pass, use this Skill to decide whether to integrate, create a PR, preserve the branch for later, or safely discard the work.

Quick Start

Use the finishing-a-development-branch skill to verify tests and then present and execute merge, PR, keep, or discard actions for the current feature 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 merge a git feature branch after tests pass?

To safely merge a git feature branch after tests pass, verify the test suite, detect the base branch, and execute a local merge with explicit confirmation safeguards to prevent accidental data loss.

What is the best way to finalize a development branch and create a pull request?

The best way to finalize a development branch and create a pull request is to run test verification first, then push the branch to the remote repository and generate the PR through a structured workflow.

How do I discard local git changes and remove a worktree without losing data?

To discard local git changes and remove a worktree safely, use a structured discard option that requires typed confirmation before executing branch deletion and worktree cleanup, preventing accidental loss of unmerged work.

Can I keep a git feature branch active without merging or discarding it?

Yes, you can keep a git feature branch active without merging or discarding it by selecting the preserve branch option, which leaves your current work intact and skips any merge, push, or deletion actions.

Does this branch finalization workflow detect the correct base branch automatically?

Yes, this branch finalization workflow automatically detects the most likely base branch during execution, ensuring that local merges and pull requests target the correct integration point without manual configuration.