finishing-a-development-branch

Verify tests and present merge, pull request, or discard options for a development branch.

58|6|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/barretstorck/gemini-superpowers --skill finishing-a-development-branch-barretstorck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/barretstorck/gemini-superpowers/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/barretstorck/gemini-superpowers --skill finishing-a-development-branch-barretstorck

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that development work is properly finalized, tested, and integrated, preventing common mistakes like merging incomplete or broken code.

Core Features & Use Cases

  • Test Verification: Automatically checks if all tests pass before proceeding.
  • Branch Integration Options: Provides clear choices for merging, creating a Pull Request, or keeping the branch.
  • Worktree Management: Handles the cleanup of associated worktrees.
  • Use Case: After finishing a new feature, you can use this skill to systematically ensure all tests are green, then choose to merge it locally or create a pull request, with the skill guiding you through the necessary steps and cleanup.

Quick Start

Use the finishing-a-development-branch skill to finalize the current development 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 finalize a git development branch and ensure tests pass before merging?

Finalizing a development branch requires verifying that all tests pass before proceeding. This skill systematically checks test status, determines the correct base branch, and then presents structured options for integration to ensure code quality and proper branch management.

What is the best way to manage git branch completion after finishing a feature?

Managing git branch completion involves checking test results, identifying the base branch, and choosing an integration path. This skill guides you through local merges, push-and-PR workflows, or discarding work, while handling associated worktree cleanup to complete dev work with confidence.

How do I create a pull request or merge locally after completing development work?

To create a pull request or merge locally after completing development work, you can use this skill to evaluate your branch. It presents clear choices for integration, allowing you to select a local merge, a push-and-PR workflow, or keeping the branch.

Can I discard work and clean up worktrees when finalizing a development branch?

Yes, you can discard work and clean up worktrees when finalizing a development branch. This skill handles worktree management and provides a confirmation step to safely discard work if the tests fail or the feature is no longer needed.

Does this branch integration workflow require specific dependencies or components?

This branch integration workflow operates without external dependencies, utilizing only internal reference components. It functions within your existing git development environment to guide test verification, base branch determination, and structured integration options.

Why should I use a guided workflow for branch management instead of manual git commands?

A guided workflow for branch management prevents common mistakes like merging incomplete or broken code. It systematically verifies tests, determines the base branch, and handles worktree cleanup, ensuring code quality and proper integration that manual commands might skip.