finishing-a-development-branch

Guide post-implementation handoff by verifying tests and selecting a merge strategy.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/tridigitals/ispmanagement --skill finishing-a-development-branch-tridigitals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/tridigitals/ispmanagement/tree/main/.roo/skills/finishing-a-development-branch
Command: npx skills add https://github.com/tridigitals/ispmanagement --skill finishing-a-development-branch-tridigitals

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams to finish a development branch by ensuring all tests pass and presenting a structured set of next steps for merging, creating a pull request, or cleaning up.

Core Features & Use Cases

  • Verify tests pass before deciding next actions.
  • Identify the base branch and present four deterministic options for integration or cleanup.
  • Support safe cleanup of worktrees after decisions.

Quick Start

Use the finishing-a-development-branch skill to guide your next integration decision after all tests pass.

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 git branch and prepare it for a merge?

Finishing a development branch requires verifying all tests pass, identifying the base branch, and choosing from four deterministic options: local merge, push pull request, discard, or cleanup. This structured handoff ensures a feature branch is merge-ready before integration.

What are the best merge strategies for a completed feature branch?

The best merge strategies for a completed feature branch involve a four-option decision protocol: merge locally, push a pull request, or discard. Selecting the right merge strategy after tests pass ensures deterministic and safe code integration.

How do I clean up a git worktree after merging a branch?

To clean up a git worktree after merging a branch, use a structured handoff process that supports optional worktree cleanup as a final step. This removes the working directory safely once the merge strategy decision and integration are complete.

Do I need to run tests before creating a pull request?

Yes, you need to run tests before creating a pull request, as the workflow enforces that tests must pass before presenting integration options. Passing tests are a strict prerequisite to selecting a merge strategy and finalizing the branch handoff.

Can I discard a development branch instead of merging it locally?

Yes, you can discard a development branch, as the workflow enforces a four-option decision protocol that explicitly includes discarding alongside merging locally or pushing a pull request. This option applies after verifying tests and identifying the base branch.