finishing-a-development-branch

Guide merge, PR, or cleanup choices after tests pass.

2|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/MomoDaviluke/star-citizen-promotion --skill finishing-a-development-branch-momodaviluke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/MomoDaviluke/star-citizen-promotion/tree/main/.trae/skills/finishing-a-development-branch
Command: npx skills add https://github.com/MomoDaviluke/star-citizen-promotion --skill finishing-a-development-branch-momodaviluke

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

提供一个清晰且结构化的收尾流程,用于在开发分支完成、所有测试通过后,明确选择合并、创建 PR、保持现状或删除分支等操作的路径。

Core Features & Use Cases

  • 验证测试通过后再进行任何合并或收尾动作,确保代码质量和稳定性。
  • 自动识别基础分支并呈现四个选项:[1] 本地合并回基础分支 [2] 推送并创建 PR [3] 保持分支现状以便后续处理 [4] 丢弃分支,帮助团队达成一致。
  • 按选项执行相应工作流并提供清理步骤,确保工作树整洁。
  • 适用场景包括:需要将完成的分支合并到主干、提交 PR 进行代码审查,或在需求变更时安全地删除分支。

Quick Start

Select one of the four options to finalize the branch 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
What is the best way to finalize a git development branch after tests pass?

To finalize a development branch after tests pass, choose between merging locally to the base branch, pushing to create a pull request, keeping the current state, or discarding the branch entirely. The workflow detects the base branch and executes cleanup to maintain a tidy work tree.

How do I automate closing a feature branch in git?

Automating feature branch closure requires verifying tests pass, detecting the base branch, and presenting structured options for merging, pull requests, or deletion. It provides an auditable path to safely integrate or discard development work.

Does the git branch finishing workflow support creating pull requests?

Yes, the git branch finishing workflow supports creating pull requests by pushing the feature branch. It presents this as one of four structured options alongside local merge, keeping the branch, or discarding it entirely.

When should I discard a git feature branch instead of merging?

You should discard a git feature branch when requirements change and the development work is no longer needed. The workflow safely deletes the feature branch and ensures your work tree remains clean after removal.

Can I keep my git branch active without merging or creating a PR?

Yes, you can keep your git branch active by selecting the option to maintain the current status for later processing. This leaves the feature branch fully intact without executing any merge, pull request, or deletion actions.