finishing-a-development-branch

Guide merge, PR, and cleanup decisions for completed development branches.

Updated Nov 8, 2024
One-click install
npx skills add https://github.com/cqkxxc/cqkxxc.github.io --skill finishing-a-development-branch-cqkxxc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/cqkxxc/cqkxxc.github.io/tree/main/.trae/skills/finishing-a-development-branch
Command: npx skills add https://github.com/cqkxxc/cqkxxc.github.io --skill finishing-a-development-branch-cqkxxc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishes development work by guiding structured options for merging, PR creation, or cleanup after code is complete and tests pass.

Core Features & Use Cases

  • Verify tests pass before choosing an integration path.
  • Determine the base branch and present four explicit options to the user.
  • Clean up the work environment based on the chosen option.

Quick Start

Finish a development branch by verifying tests and choosing one of four options to merge locally, push a PR, keep the branch, or discard.

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

To merge a development branch after tests pass, you can use a structured workflow that validates test results, determines the base branch, and presents explicit options to merge locally, push a pull request, keep the branch, or discard it.

What's the best way to clean up a git worktree after finishing a feature branch?

The best way to clean up a git worktree after finishing a feature branch involves selecting an explicit integration path, which then triggers the corresponding worktree cleanup actions based on your chosen merge or pull request workflow.

Can I create a pull request locally without discarding my current feature branch?

Yes, you can create a pull request while keeping the feature branch by selecting the explicit PR creation option, which allows you to push the branch for review without immediately discarding your local worktree environment.

How do I determine the correct base branch before merging my git work?

Determining the correct base branch before merging git work is handled automatically by the finalization workflow, which inspects your branch management setup to identify the target base branch before presenting integration options.

Why should I verify tests before choosing a git merge option?

You should verify tests before choosing a git merge option because the finalization workflow enforces test validation as a prerequisite, ensuring implementation is complete and preventing broken code from entering the base branch.

Does the branch finalization workflow support keeping the branch instead of merging?

Yes, the branch finalization workflow supports keeping the branch by offering four explicit options, allowing you to pause integration and preserve the current development state within your worktree instead of merging or discarding.