finishing-a-development-branch

Validate tests and present Git merge options for feature branches.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/Suara17/guanlan-sina --skill finishing-a-development-branch-suara17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/Suara17/guanlan-sina/tree/main/.opencode/skills/finishing-a-development-branch
Command: npx skills add https://github.com/Suara17/guanlan-sina --skill finishing-a-development-branch-suara17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines finishing a development branch by validating tests and presenting a concise set of integration options.

Core Features & Use Cases

  • Verify tests pass before proceeding with merge or PR decisions
  • Present exactly four options: merge locally, push and create PR, keep the branch as-is, or discard
  • Clean up worktrees and branches after the chosen action

Quick Start

Run this skill when implementation is complete and tests pass to determine the merge path and cleanup steps for the current 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 finish a git development branch after tests pass?

Finishing a development branch involves choosing between merging locally, pushing for a pull request, keeping the branch, or discarding it. This workflow validates tests first, then presents exactly four integration options with exact commands and handles worktree cleanup automatically.

What are the options for merging a feature branch in a git workflow?

The options for merging a feature branch are local merge, remote pull request creation, keeping the branch as-is, or discarding it entirely. The workflow enforces a four-option decision process to ensure a clear integration path with corresponding commands for each action.

Can I create a pull request and clean up the worktree at the same time?

Yes, you can create a pull request and clean up the worktree together. The workflow presents push and PR creation as one of four branch finishing options, providing exact commands for the action and handling worktree cleanup after the chosen operation completes.

What is the best way to discard a development branch without leaving worktree artifacts?

Discarding a development branch cleanly requires selecting the discard option within a structured four-option workflow. This approach provides exact commands for branch removal and automatically manages worktree cleanup to prevent leftover artifacts after the branch is deleted.

Does this branch finishing workflow support keeping a branch instead of merging?

Yes, the workflow supports keeping a branch instead of merging. Keeping the branch as-is is one of the four enforced options presented after test validation, allowing development to pause without triggering a merge, pull request, or branch deletion.

Why should I validate tests before deciding to merge or create a pull request?

Validating tests before deciding to merge or create a pull request ensures the development branch is stable enough for integration. The workflow enforces this check before presenting the four finishing options, preventing broken code from advancing to local merge or PR creation.