finishing-a-development-branch

Automate branch completion decisions with conditional merge, PR, or cleanup actions.

5|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/primatrix/skills --skill finishing-a-development-branch-primatrix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/primatrix/skills/tree/main/plugins/superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/primatrix/skills --skill finishing-a-development-branch-primatrix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill assists in automating the decision-making process for completing a development branch, guiding you through merge, PR creation, or cleanup based on test results and workspace state.

Core Features & Use Cases

  • Automated Workflow Options: Offers structured choices for merging, creating PRs, or discarding a branch.
  • Conditional Execution: Based on test pass/fail status and workspace type.
  • Branch Cleanup: Automated worktree and branch management.

Quick Start

To finalize a development branch, use the finishing-a-development-branch skill to decide on merging, creating a PR, or discarding the branch based on the provided 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 finalize a git development branch after tests pass?

To finalize a git development branch after tests pass, you can automate the completion decision by choosing to merge the code, create a PR, or discard the branch. The workflow evaluates test results and workspace type to execute the correct branch cleanup.

What is the best way to automate git branch cleanup and worktree management?

Automating git branch cleanup and worktree management involves using a structured workflow that offers conditional execution. It evaluates your workspace state and provides clear options to safely remove branches and clean up associated worktrees.

Can I automate git workflow decisions based on test results?

Yes, you can automate git workflow decisions based on test results. The workflow uses conditional execution to determine whether to merge, create a PR, or discard a development branch depending on whether tests pass or fail.

Do I need a specific git environment setup to automate branch completion?

You need standard git commands and a configured environment setup for branch management. The automated workflow relies on your existing version control workspace state and worktree configuration to execute branch completion options.

What options do I have when completing a version control branch?

When completing a version control branch, your options include merging the changes, creating a pull request, or discarding the branch entirely. The chosen action triggers automated worktree and branch cleanup.

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

Using workflow automation for git branch management eliminates manual decision-making by providing structured choices for merging, PRs, or cleanup. It ensures proper branch and worktree cleanup based on conditional test results and workspace type.