finishing-a-development-branch

Verify tests and select merge, push, PR, preserve, or discard for a development branch.

1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/dmedina-dev/dev-forge --skill finishing-a-development-branch-dmedina-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/dmedina-dev/dev-forge/tree/main/plugins/forge-superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/dmedina-dev/dev-forge --skill finishing-a-development-branch-dmedina-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Resolve how to integrate or retire completed feature work by verifying tests, choosing a safe final action, and performing the chosen Git workflow while protecting work and requiring explicit confirmation for destructive steps.

Core Features & Use Cases

  • Structured decision flow: Verifies tests, detects base branch, and presents exactly four concise options (merge locally, push and create a PR, keep as-is, discard).
  • Safe execution and cleanup: Executes merges, pushes/PR creation, or branch deletion with typed confirmation and handles git worktree cleanup when appropriate.
  • Use Case: After finishing a feature and passing tests, use this Skill to decide whether to merge into main, open a PR with a clear test plan, preserve the branch for later work, or safely discard local changes.

Quick Start

Ask the assistant to finalize the current feature branch by verifying tests, presenting the four options, and executing the selected workflow.

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 merge a completed git feature branch after tests pass?

Merge a git feature branch by verifying tests, detecting the base branch, and selecting a final integration action like local merge, push and pull request, preserve, or discard with typed confirmation.

What is the best way to clean up a git worktree after finishing a feature?

The best way to clean up a git worktree after finishing a feature is to use a structured workflow that handles worktree cleanup automatically after you select your final branch integration or deletion action.

Can I discard local git branch changes without accidentally deleting unmerged work?

You can discard local git branch changes safely by requiring typed confirmation before destructive deletions, ensuring you explicitly verify the branch state before any worktree cleanup or removal occurs.

How do I create a pull request from a local branch with test verification?

Create a pull request from a local branch by verifying tests pass, pushing the branch, and generating the PR with a clear test plan as part of a structured four-option branch finalization workflow.

When should I preserve a development branch instead of merging it into main?

Preserve a development branch instead of merging when feature work is incomplete or needs later review, selecting the keep-as-is option to safely retain the branch without triggering worktree cleanup or destructive actions.