finishing-a-development-branch

Verify tests and guide git branch merge, push, preserve, or discard decisions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a clear, safe, and repeatable process for concluding work on a git feature branch by verifying tests, offering precise integration choices, and performing appropriate cleanup so code is integrated or preserved without accidental loss.

Core Features & Use Cases

  • Test verification before any integration: Run the project's test suite and block progress if failures are present.
  • Structured decision flow: Present exactly four concise options (merge locally, push & create PR, keep as-is, discard) to avoid ambiguous next steps.
  • Safe execution and cleanup: Execute merges or PR creation, require typed confirmation before destructive deletes, and remove git worktrees only when appropriate.
  • Use Case: After finishing a feature and passing tests, use this Skill to choose whether to merge into main, open a PR, preserve the branch for later, or safely discard it with explicit confirmation.

Quick Start

Run the project's tests, then ask me to present merge, push/PR, preserve, or discard options for the current branch.

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 finalize a git feature branch after passing tests?

To safely finalize a git feature branch, run your test suite and choose from four actions: merge locally, push and create a pull request, preserve the branch, or discard it. The process requires explicit typed confirmation before executing destructive actions.

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

The best way to clean up a git worktree after merging is to use a structured decision flow that conditionally removes worktrees only when appropriate, ensuring code is integrated without accidental loss during the branch cleanup process.

How do I ensure tests pass before merging a git development branch?

To ensure tests pass before merging a git development branch, use a guided workflow that runs the project test suite and blocks integration progress if failures are present, preventing broken code from reaching the base branch.

Can I discard a git feature branch without accidental code loss?

Yes, you can discard a git feature branch without accidental loss by requiring explicit typed confirmation before destructive deletes, ensuring you consciously verify the branch content before removal is executed.

Does this branch finalization process determine the correct base branch automatically?

Yes, the branch finalization process includes base-branch determination to identify the correct target for merges or pull requests, presenting concise integration choices based on your repository's branch structure.