finishing-a-development-branch

Verify tests and complete a Git feature branch via merge, pull request, keep, or discard.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/wewetv1987-cell/openclaw-backup --skill finishing-a-development-branch-wewetv1987-cell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/wewetv1987-cell/openclaw-backup/tree/main/skills/clawgator-superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/wewetv1987-cell/openclaw-backup --skill finishing-a-development-branch-wewetv1987-cell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you close out completed development work without guesswork, by verifying readiness and guiding the best next step for a finished branch.

Core Features & Use Cases

  • Test Verification: Confirms the project test suite passes before any merge or release decision.
  • Branch Completion Options: Presents clear choices to merge locally, create a pull request, keep the branch, or discard the work.
  • Safe Cleanup: Handles branch deletion and worktree cleanup only when appropriate, reducing the risk of accidental loss.
  • Use Case: A feature is done and validated, and you need a structured workflow to integrate it into main, open a PR, or leave it intact for later.

Quick Start

Use the finishing-a-development-branch skill to verify the tests, present the available branch-completion options, and carry out the one I choose.

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 git branch after development and tests pass?

To safely finish a git branch after tests pass, verify readiness and choose to merge locally, push for a pull request, preserve, or discard the work. This prevents unsafe integration by applying explicit user choice handling.

What is the best way to merge a feature branch locally without losing work?

The best way to merge a feature branch locally without losing work is to use a structured workflow that presents clear completion options and applies worktree cleanup rules only when appropriate, reducing the risk of accidental loss.

How does worktree cleanup work when discarding a development branch?

Worktree cleanup when discarding a development branch works by handling branch deletion and workspace removal only when explicitly chosen, reducing the risk of accidental loss while ensuring unsafe integration is prevented.

Can I push a feature branch for a pull request without merging it locally?

Yes, you can push a feature branch for a pull request without merging it locally. The workflow verifies tests pass and presents clear branch completion options, allowing you to push for a PR while keeping the branch intact.

When do I need to verify tests before completing a git branch?

You need to verify tests before completing a git branch when you are ready to close out completed development work. Test verification confirms the project suite passes before any merge, pull request, or discard decision is made.

Does this branch completion workflow require base-branch detection?

Yes, this branch completion workflow requires base-branch detection to coordinate the safe completion of a development branch. It ensures the correct integration path is identified before applying worktree cleanup rules or merging.