finishing-a-development-branch

Verify tests and guide Git merge decisions with worktree cleanup.

1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/DecentralizedGeo/stac-manager --skill finishing-a-development-branch-decentralizedgeo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/DecentralizedGeo/stac-manager/tree/main/.github/skills/finishing-a-development-branch
Command: npx skills add https://github.com/DecentralizedGeo/stac-manager --skill finishing-a-development-branch-decentralizedgeo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps development teams finish a feature branch by validating tests, presenting a concise, fixed set of merge options, and guiding cleanup after the decision.

Core Features & Use Cases

  • Test verification: ensures tests pass before proposing merge/workflow decisions.
  • Structured decision prompts: presents four explicit options: merge locally, push and create PR, keep as-is, discard.
  • Worktree cleanup automation: handles cleanup of local worktrees after decision.

Quick Start

Run this skill on the active feature branch to verify tests, select a final action, and clean up the worktree.

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

To finalize a development branch, this skill verifies your tests pass and then presents four explicit options: merge locally, push and create a PR, keep the branch as-is, or discard it entirely.

What are the standard options for finishing a feature branch in a Git workflow?

The standard options for finishing a feature branch in a Git workflow are merging locally, pushing to create a pull request, keeping the branch as-is, or discarding it, with optional worktree cleanup following the decision.

Does this Git branch management workflow run tests before allowing a merge?

Yes, this Git branch management workflow runs test verification before presenting any merge or integration decisions, ensuring your feature branch is validated before you choose how to finalize it.

Can I automate worktree cleanup after merging a development branch?

Yes, you can automate worktree cleanup after merging a development branch. The skill performs optional worktree cleanup with built-in safety checks once you execute your chosen finalization action.

How do I determine the base branch when finalizing a feature worktree?

To determine the base branch when finalizing a feature worktree, the skill implements steps to automatically identify the correct base branch before presenting your merge, push, keep, or discard options.