finishing-a-development-branch

Verify tests and present merge, PR, or cleanup options for a development branch.

223|23|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/ReinaMacCredy/maestro --skill finishing-a-development-branch-reinamaccredy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/ReinaMacCredy/maestro/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/ReinaMacCredy/maestro --skill finishing-a-development-branch-reinamaccredy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

After implementation and test verification, present clear completion options and perform chosen cleanup to finalize work on a development branch.

Core Features & Use Cases

  • Test verification: Run the test suite to confirm stability.
  • Four completion options: Merge locally, push & PR, keep as-is, or discard.
  • Cleanup: Remove worktrees and branches appropriately.

Quick Start

If tests pass, present the four options and carry out the selected path, then clean up the worktree.

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 finish a development branch after tests pass?

After tests pass, finishing a development branch means verifying stability and choosing between four options: merge locally, push and create a pull request, keep the branch as-is, or discard it entirely. The Skill presents these structured options, executes your choice, and cleans up worktrees automatically.

What's the best way to clean up git branches and worktrees after merging?

After completing work on a development branch, clean up by removing worktrees and branches appropriately to your chosen path—local merge, PR submission, retention, or discard. This prevents stale branches and orphaned worktrees from cluttering your repository.

Can I automate the decision between merging locally versus creating a pull request?

Yes. The Skill automates branch completion by running test verification first, then presenting exactly four completion paths: local merge to the base branch, push and open a PR, keep the branch unchanged, or clean up and discard. You select the option that fits your workflow.

How do I verify tests before finalizing a development branch?

Test verification happens automatically when finishing a development branch. The Skill runs your test suite to confirm stability before presenting merge or cleanup options, ensuring only verified code moves forward in your CI/CD workflow.

What happens to my worktree when I finish a development branch?

When you complete branch finalization, worktrees are cleaned up automatically as part of the chosen action—whether you merge locally, submit a PR, retain the branch, or discard it. This ensures your working directory stays organized without orphaned worktrees.

Does branch cleanup work with typical CI/CD workflows?

Yes. Finishing a development branch integrates into standard CI/CD workflows by verifying tests pass, determining your base branch, offering four completion options, executing the selected action, and performing required cleanup—all designed for typical merge or PR-based deployment pipelines.