finishing-a-development-branch

Verify tests and guide merge, PR, or cleanup for a Git branch.

Updated Oct 28, 2025
One-click install
npx skills add https://github.com/AlabamaMike/copilot-agents --skill finishing-a-development-branch-alabamamike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/AlabamaMike/copilot-agents/tree/main/.codex/superpowers/skills/finishing-a-development-branch
Command: npx skills add https://github.com/AlabamaMike/copilot-agents --skill finishing-a-development-branch-alabamamike

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Completing development work on a branch involves critical steps like verifying tests, deciding on integration (merge, PR), and cleaning up the workspace. Mistakes in this process can lead to broken main branches or lost work. This skill automates and guides the entire completion workflow, ensuring tests pass, presenting clear options, and handling the chosen integration path and worktree cleanup reliably.

Core Features & Use Cases

  • Mandatory Test Verification: Ensures all tests pass before offering completion options.
  • Structured Integration Options: Presents clear choices for merging, creating a PR, keeping the branch, or discarding work.
  • Automated Cleanup: Handles Git branch deletion and worktree removal based on the chosen option.
  • Use Case: After completing a feature on a development branch, use this skill to verify everything, then choose to merge it locally, create a Pull Request, or discard the work, with automated cleanup.

Quick Start

Use the finishing-a-development-branch skill to complete work on the 'feature/dark-mode' 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 verify tests pass before merging a Git branch?

Test verification is a mandatory first step in branch completion. Run your project's test suite to ensure all tests pass before proceeding to merge, create a pull request, or clean up your branch. This prevents broken code from reaching your main branch.

What are my options after finishing work on a development branch?

After tests pass, you have four explicit options: merge the branch locally into the base branch, create a pull request for review, keep the branch for later, or discard the work entirely. The skill guides you through each path and handles the corresponding Git and worktree operations.

How do I clean up Git branches and worktrees after completing development work?

Branch completion automates cleanup by detecting your chosen integration option—merge, PR, keep, or discard—and then deletes the Git branch or removes the worktree accordingly. This ensures your workspace stays organized without manual git commands.

Can I use this workflow for feature branches in a standard Git setup?

Yes, this workflow applies to feature branches in standard Git workflows. It automatically detects a valid base branch, runs tests, presents integration options, and executes your choice with built-in cleanup, making it suitable for typical development lifecycles.

What happens if tests fail during branch completion?

Test success is enforced before progression. If tests fail, the workflow halts and does not offer merge, PR, or cleanup options until all tests pass, protecting your main branch from broken code.