finishing-a-development-branch

Verify tests and integrate a Git development branch via merge or pull request.

8|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/hxk622/TokenDance --skill finishing-a-development-branch-hxk622
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/hxk622/TokenDance/tree/main/backend/app/skills/builtin/superpowers/finishing-a-development-branch
Command: npx skills add https://github.com/hxk622/TokenDance --skill finishing-a-development-branch-hxk622

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of finalizing a development branch by providing clear, structured options for integrating completed work, ensuring tests pass, and managing the codebase cleanly.

Core Features & Use Cases

  • Test Verification: Automatically runs project tests before proceeding.
  • Integration Options: Offers choices like local merge, creating a Pull Request, keeping the branch, or discarding work.
  • Worktree Management: Handles the cleanup or preservation of worktrees based on the chosen action.
  • Use Case: After successfully implementing a new feature and passing all tests, use this Skill to safely merge your branch into main or create a PR for review.

Quick Start

Use the finishing-a-development-branch skill to complete the current development work.

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 merge a git development branch into main after tests pass?

After verifying tests pass, this workflow determines the base branch and guides you through your chosen integration strategy, executing a local merge or creating a pull request to finalize the development branch.

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

To clean up a git worktree, this workflow handles preservation or cleanup automatically based on your chosen integration action, ensuring your codebase remains tidy after finalizing the branch.

Do I need GitHub CLI to create a pull request from a local branch?

You optionally need GitHub CLI to create a pull request, while Git CLI is required for executing local merges, branch preservation, and worktree cleanup during the branch completion process.

Can I keep my development branch instead of merging it into the base branch?

Yes, you can keep your development branch by selecting the branch preservation option, which retains the branch for future work while still managing worktree cleanup.

Why should I run tests before completing a git branch integration?

Running tests before completing a git branch integration verifies your feature is stable, allowing the workflow to safely proceed with local merges, pull request creation, or worktree cleanup without breaking the base branch.