finishing-a-development-branch

Guide structured merge decisions for development branches after tests pass.

16|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/Marwan78888/Neuron-Cli --skill finishing-a-development-branch-marwan78888
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/Marwan78888/Neuron-Cli/tree/main/scratch/superpowers-main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/Marwan78888/Neuron-Cli --skill finishing-a-development-branch-marwan78888

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the finalization of development branches by guiding the user through a structured set of merge and cleanup options once tests pass.

Core Features & Use Cases

  • Verify tests pass before finalizing any work and choosing the correct next step.
  • Determine a base branch and present four explicit options: merge locally, push and create a PR, keep the branch as-is, or discard the work.
  • Clean up the local worktree and feature branch according to the chosen option, reducing drift and clutter.

Quick Start

Ask me to finalize the development branch by validating tests and selecting one of the four options.

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 git development branch after tests pass, choose between merging locally, pushing and creating a pull request, keeping the branch, or discarding it. The workflow detects the base branch and guides cleanup to reduce local worktree drift.

What is the best way to merge a feature branch locally versus creating a pull request?

Choosing between local merging and creating a pull request depends on your workflow needs after tests pass. A structured workflow presents both as explicit options alongside keeping or discarding the branch, then cleans up the local worktree based on your choice.

Do I need to verify tests before merging a development branch?

Yes, you need to verify tests before merging a development branch. The workflow prompts test verification during end-of-feature work before presenting the four options to merge locally, push a pull request, keep, or discard.

How do I clean up local worktree clutter after merging a git branch?

To clean up local worktree clutter after merging a git branch, use the optional cleanup step in the workflow. After selecting a merge, pull request, or discard option, the feature branch is removed to reduce drift and clutter.

When should I discard a development branch instead of keeping it?

You should discard a development branch instead of keeping it when the end-of-feature work is no longer needed. The workflow offers discarding as one of four explicit options, removing the branch and cleaning the worktree to prevent clutter.