finishing-a-development-branch

Verify tests, then merge, create a pull request, or discard a development branch.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/DMT123/claude-skills-collection --skill finishing-a-development-branch-dmt123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/DMT123/claude-skills-collection/tree/main/plugins/superpowers/finishing-a-development-branch
Command: npx skills add https://github.com/DMT123/claude-skills-collection --skill finishing-a-development-branch-dmt123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of concluding development work by providing clear, structured options for merging, creating pull requests, or discarding changes, ensuring a clean and efficient workflow.

Core Features & Use Cases

  • Test Verification: Automatically checks if tests pass before proceeding.
  • Branch Integration: Guides users through merging to a base branch or creating a Pull Request.
  • Worktree Management: Handles the cleanup or preservation of worktrees based on the chosen action.
  • Use Case: After completing a new feature, use this skill to ensure all tests are green, then choose to merge locally, create a PR, or safely discard the work.

Quick Start

Use the finishing-a-development-branch skill to complete 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 safely finish a git development branch after completing a feature?

To safely finish a development branch, you should verify tests pass, then choose to merge to a base branch, create a pull request, or discard the work. This ensures a clean and efficient workflow exit.

What is the best workflow for merging a feature branch locally?

The best workflow for merging a branch involves running test verification first, selecting a local merge to the base branch, and finally cleaning up the worktree. This standardized process prevents unresolved issues from entering the main codebase.

Can I create a pull request after verifying my branch tests?

Yes, you can create a pull request after verifying your branch tests. The workflow presents structured options for integration, allowing you to select pull request creation and execute the chosen workflow with explicit confirmation.

How do I discard git changes and clean up my worktree?

To discard git changes and clean up your worktree, select the discard option from the structured workflow choices. The process safely removes the work with explicit confirmation and handles the subsequent worktree cleanup.

Does branch completion require passing tests before merging?

Yes, branch completion requires passing tests before merging to ensure code stability. The workflow automatically checks if tests pass before presenting integration options, guaranteeing a safe exit strategy for feature development.

When should I discard a development branch instead of creating a pull request?

You should discard a development branch instead of creating a pull request when feature work is no longer needed or tests fail irrecoverably. This option safely removes the work and cleans up the worktree with explicit confirmation.