finishing-a-development-branch

Validate tests and execute merge or PR options with Git cleanup.

146|35|Updated Mar 20, 2023
One-click install
npx skills add https://github.com/mwangli/stock-trading --skill finishing-a-development-branch-mwangli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/mwangli/stock-trading/tree/main/.trae/skills/finishing-a-development-branch
Command: npx skills add https://github.com/mwangli/stock-trading --skill finishing-a-development-branch-mwangli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to gracefully finish a development branch by validating tests, choosing a clear next step, and performing safe cleanup to keep the repository tidy.

Core Features & Use Cases

  • Verify tests pass before proceeding with any integration decision.
  • Determine the appropriate base branch and consolidate the merge/PR workflow into four explicit options.
  • Execute the chosen option (local merge, push/PR, keep branch, or discard) with built-in safe cleanup steps to maintain a clean Git history.

Quick Start

Activate this skill after all tests pass and respond with the option number you want to execute.

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 feature branch after tests pass?

Finishing a development branch involves validating tests, choosing a merge or PR path, and cleaning up worktrees. You can execute a local merge, push to create a PR, keep the branch, or discard work, all with guarded cleanup procedures.

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

Cleaning up git worktrees after merging is handled by guarded cleanup procedures that activate once you select a closure option. This ensures a clean Git history by safely removing temporary work artifacts after the integration decision.

Can I choose between a local merge and a pull request when finalizing a branch?

Yes, you can choose between a local merge and a pull request. The workflow provides four explicit options for finalizing a branch, allowing you to select a local merge or push to create a PR based on your project's collaborative needs.

How do I discard git branch changes without losing unrelated work?

To discard git branch changes safely, select the discard option within the branch closure workflow. This triggers guarded cleanup procedures that remove the specific branch and worktree, ensuring unrelated repository work remains completely unaffected.

Does the branch merge workflow require CI feedback before proceeding?

The branch merge workflow relies on standard Git commands and CI feedback to verify tests pass before proceeding. You should activate the workflow after all tests pass to ensure integration decisions are made on validated code.