finishing-a-development-branch

Validate tests and guide Git branch merge, PR, retention, or cleanup.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/JasonVene/CC_MainDev --skill finishing-a-development-branch-jasonvene
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/JasonVene/CC_MainDev/tree/main/_archive/imports/downloads/superpowers-main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/JasonVene/CC_MainDev --skill finishing-a-development-branch-jasonvene

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams finalize development work after implementation and tests pass by guiding how to integrate the work: choosing between merging locally, pushing a PR, keeping the branch, or discarding, with built-in cleanup and workflow prompts.

Core Features & Use Cases

  • Verify tests pass on the development branch before offering options.
  • Determine the base branch and present exactly four actions: merge locally, push and create PR, keep the branch, or discard.
  • Execute the chosen action and perform post-worktree cleanup to restore clean state.

Quick Start

Run the finishing-a-development-branch skill on a feature branch after tests pass to choose the final integration path.

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

To finalize a development branch after tests pass, you validate tests and choose from four integration options: merge locally, push a pull request, keep the branch, or discard it. This ensures safe and auditable completion of feature work.

What are my options for merging a feature branch in git?

When merging a feature branch, you have exactly four options: merge locally into the base branch, push and create a pull request, keep the branch for later work, or discard the changes entirely. Post-merge worktree cleanup restores a clean state.

Do I need to know the base branch name before finishing a development branch?

Yes, finishing a development branch requires baseline knowledge of the project's test command and base-branch naming. The workflow determines the target base branch automatically to ensure changes merge into the correct integration stream.

Can I automate git worktree cleanup when discarding a feature branch?

Yes, when discarding a feature branch or completing any integration action, the workflow performs post-worktree cleanup automatically. This removes the branch and restores the local repository to a clean state after the chosen action executes.

What is the best way to guide a pull request creation workflow for local git changes?

The best way to guide pull request creation is enforcing a four-option decision model that verifies tests pass first, then offers to push and create a PR. This standardizes the workflow and ensures safe, auditable branch integration.

Why should I verify tests before merging a development branch?

You should verify tests before merging a development branch to ensure the feature work is stable. The workflow validates that tests pass on the branch before offering any integration or cleanup options, preventing broken code from entering the base branch.