git-finishing-a-development-branch

Guide Git feature branch finalization with merge, PR, keep, or discard options.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finalizes development work by guiding structured options for merging or cleaning up a feature branch.

Core Features & Use Cases

  • Guides the decision between local merge, pushing to a PR, keeping the branch, or discarding it
  • Validates test results and ensures clean cleanup of worktrees when applicable
  • Applies to typical Git feature-branch workflows during handoff to main or release

Quick Start

Use this skill after your implementation is complete and tests pass to guide how you merge or clean up the branch.

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

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

FAQPage Schema
How do I finalize a git feature branch and choose between merging or creating a pull request?

To finalize a git feature branch, a guided workflow verifies tests pass and presents explicit options: merge locally, push to a pull request, keep the branch, or discard it. This structured approach ensures clean integration into your base branch.

What is the best way to clean up git worktrees after merging a feature branch?

The best way to clean up git worktrees after merging is to use a workflow that validates test results and performs automatic cleanups once you select an integration option. This removes leftover worktrees safely after development work is finalized.

How do I verify tests pass before merging a git branch into main?

You can verify tests pass before merging by running a feature branch finalization process that checks for a dirty working state and validates test results. This ensures code is ready before presenting options to merge or push a pull request.

Can I discard a git feature branch instead of merging it?

Yes, you can discard a git feature branch instead of merging it. A structured branch finishing workflow presents four explicit options including discarding the branch entirely, alongside keeping it, merging locally, or pushing to a pull request.

When should I push to a pull request instead of doing a local git merge?

You should push to a pull request instead of a local git merge when handing off feature branch integration to a remote repository workflow. A guided finalization process helps determine the base branch and select the appropriate handoff option.