finishing-a-development-branch

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

264|11|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/coco-research/coco --skill finishing-a-development-branch-coco-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/coco-research/coco/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/coco-research/coco --skill finishing-a-development-branch-coco-research

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you safely finish implementation work by verifying the branch, deciding how to integrate it, and avoiding premature merge or cleanup mistakes.

Core Features & Use Cases

  • Test verification first: Confirms the codebase is ready before any merge, PR, or cleanup action.
  • Structured completion choices: Offers a clear set of end-of-branch outcomes, including local merge, pull request creation, keeping the branch, or discarding work.
  • Safe Git workflow handling: Identifies the base branch, performs the chosen Git action, and handles worktree cleanup when appropriate.
  • Use case: Ideal when feature development is complete and you need a disciplined way to wrap up the branch without losing work or shipping untested changes.

Quick Start

Use this skill to finish the current development branch by verifying tests first, then choosing whether to merge, create a pull request, keep the branch, or discard it.

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 branch and merge it after tests pass?

To finish a git branch, you first verify tests pass, then choose an integration action like a local merge or pull request. The workflow identifies the base branch, executes the chosen git action, and confirms any destructive cleanup before finalizing the development branch.

What is the best way to clean up a git worktree after merging a branch?

The best way to clean up a git worktree after merging is to use a structured branch completion workflow that performs optional worktree removal. It safely discards the finished development branch only after confirming the integration action is complete.

Can I create a pull request directly from a local development branch?

Yes, you can create a pull request directly from a local development branch. A structured branch finishing workflow identifies the base branch for integration and guides pull request creation once test verification is confirmed.

Do I need to run tests before merging a git branch?

Yes, you need to run tests before merging a git branch. Test verification is the required first step in a structured branch completion workflow to ensure the codebase is ready before any merge, pull request, or cleanup action is executed.

How do I discard a finished git branch without losing unmerged work?

To discard a finished git branch without losing work, use a workflow that requires explicit confirmation for destructive cleanup. It ensures the branch is fully integrated or explicitly marked for discard before removing the branch or its worktree.

When should I keep a git branch instead of merging or discarding it?

You should keep a git branch instead of merging or discarding it when you need to pause integration but preserve completed implementation work. A structured workflow offers keeping the branch as a valid end-of-branch outcome after tests pass.