finishing-a-development-branch

Verify tests and present merge, PR, or cleanup options for Git branches.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides the completion of development work by presenting structured options for merging, creating PRs, or cleaning up, ensuring safe handoff when a feature is finished.

Core Features & Use Cases

  • Test verification: Validates that the project's tests pass before offering completion options.
  • Environment detection: Detects normal repos, named branches, and detached HEAD scenarios to tailor options.
  • Structured decision flow: Presents four concrete options (merge locally, push PR, keep as-is, or discard) and handles cleanup accordingly.
  • Safety and cleanup: Performs necessary workspace cleanup only when appropriate and preserves host environments as needed.

Quick Start

Verify tests pass, detect the repository environment, present options, execute the selected workflow, and clean up.

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 tests pass?

To finalize a Git development branch, this Skill verifies your tests pass, detects the repository environment, and presents structured options to merge locally, push a pull request, keep the branch, or discard it. It then executes the chosen workflow and cleans up the workspace safely.

What is the best way to handle a detached HEAD state when finishing development work?

When finishing development work in a detached HEAD state, the Skill detects the specific environment scenario and tailors the completion options accordingly. It ensures safe handoff by presenting appropriate merge, pull request, or cleanup choices suited for detached HEAD repositories.

Can I choose between a local merge and a pull request when completing a feature branch?

Yes, you can choose between a local merge and a pull request. The Skill presents a structured decision flow offering four concrete options: merge locally, push a pull request, keep the branch as-is, or discard the work entirely.

How does test verification work before merging a finished Git branch?

Test verification validates that the project's tests pass before offering any branch completion options. This ensures that only successfully tested code proceeds to the merge, pull request, or cleanup workflow.

Does this branch management workflow support cleanup in normal Git repos?

Yes, this branch management workflow supports normal Git repos and performs necessary workspace cleanup only when appropriate. It preserves host environments as needed while finalizing your finished feature branch.

When should I avoid using automated Git merge and cleanup options?

You should avoid using automated Git merge and cleanup options if your project's tests have not passed, as the Skill requires test verification before presenting completion workflows. It is designed specifically for finished feature branches in standard Git workspaces.