finishing-a-development-branch

Verify tests and merge, push, create a PR, keep, or discard a git feature branch.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured, safe workflow to conclude work on a feature branch by verifying tests, offering exactly four integration options, and performing the chosen git actions to avoid accidental data loss or broken merges.

Core Features & Use Cases

  • Test Verification: Runs or instructs verification of the project's test suite before any integration step.
  • Structured Options: Presents four concise choices: merge locally, push and create a PR, keep the branch, or discard with explicit confirmation.
  • Safe Execution & Cleanup: Automates merging, PR creation, branch deletion, and git worktree cleanup while requiring typed confirmation for destructive actions; useful when finishing a feature, preparing a release, or cleaning up stale worktrees.

Quick Start

Ask the finishing-a-development-branch skill to finalize the current feature branch by verifying tests and offering merge, PR, keep, or discard 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 safely merge a finished git feature branch after tests pass?

To safely merge a finished git feature branch, you can run a workflow that verifies your test suite, identifies the base branch, and executes a local git merge to integrate the completed feature.

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

The best way to clean up a git worktree after finishing development is to use a structured workflow that finalizes the branch and handles worktree cleanup alongside branch integration or deletion.

How do I create a pull request from a local feature branch without losing data?

To create a pull request from a local feature branch without losing data, you can use a guided workflow that verifies tests and pushes the branch to create a PR instead of merging locally.

Can I discard a local git branch safely if I no longer need the feature?

Yes, you can discard a local git branch safely by selecting the discard option, which requires typed confirmation for the destructive delete action to prevent accidental data loss.

What should I check before merging a git feature branch into the base branch?

Before merging a git feature branch into the base branch, you should run or verify the project's test suite and ensure the implementation is complete to avoid broken merges.