finishing-a-development-branch

Verify tests and finalize a feature branch with merge, PR, keep, or discard options.

19|2|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/bonnguyenitc/antigravity-superpowers --skill finishing-a-development-branch-bonnguyenitc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/bonnguyenitc/antigravity-superpowers/tree/main/.agent/skills/finishing-a-development-branch
Command: npx skills add https://github.com/bonnguyenitc/antigravity-superpowers --skill finishing-a-development-branch-bonnguyenitc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verify tests pass and decide how to integrate completed work, guiding completion of a development branch with clear merge, PR, or cleanup options.

Core Features & Use Cases

  • Verifies tests pass on the feature branch and determines the appropriate next step (merge locally, push and create a PR, keep the branch, or discard).
  • Presents a deterministic, four-option workflow to prevent ambiguity and streamline finalization.
  • Cleans up worktrees and temporary state according to configuration after an option is executed.

Quick Start

Decide how to finalize the current development branch by selecting one of the four options: merge locally, push and create a PR, keep as-is, or discard.

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 completing a feature?

To finalize a development branch, you can verify tests pass and choose to merge locally, push and create a pull request, keep the branch as-is, or discard it entirely. This guided workflow prevents ambiguity during final integration.

What is the best way to merge a completed feature branch locally?

The best way to merge a feature branch locally is to verify tests pass first, identify the correct base branch, and then execute a local merge. This workflow safely integrates completed work while respecting auto_commit configurations.

Can I create a pull request directly after finishing work on a development branch?

Yes, you can push your completed development branch and create a pull request. This workflow verifies tests pass beforehand and presents push and create PR as one of four explicit finalization options.

How do I safely discard a development branch and clean up temporary worktrees?

To discard a development branch and clean up worktrees, select the discard option from the finalization workflow. The process prompts for destructive actions to ensure safety and performs optional worktree cleanup after execution.

Does the branch finalization workflow verify tests before merging?

Yes, the branch finalization workflow verifies that tests pass on the feature branch before presenting integration options. This ensures completed work is validated before you merge locally or create a pull request.

When should I keep a development branch as-is instead of merging or discarding it?

You should keep a development branch as-is when you are not ready to finalize integration. This option preserves the current branch state without merging, pushing, or discarding, allowing you to resume work later.