finishing-a-development-branch

Validate tests and guide Git merge, PR creation, or cleanup workflows.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/SPURSGO/awesome-skills-cn --skill finishing-a-development-branch-spursgo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/SPURSGO/awesome-skills-cn/tree/main/finishing-a-development-branch
Command: npx skills add https://github.com/SPURSGO/awesome-skills-cn --skill finishing-a-development-branch-spursgo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

在实施完成且测试通过后,提供一个结构化的决策流程,用以决定如何将工作成果整合到主分支、提交 PR 或清理工作分支。

Core Features & Use Cases

  • 验证测试结果:在任何合并或发布前先执行测试,确保所有用例通过。
  • 提供 4 种清晰选项:本地合并、推送并创建 PR、保持分支原样、丢弃此工作,并给出执行步骤。
  • 适用场景:完成某功能分支后需要决定何时合并、创建 PR 或清理分支,确保变更可追踪且满足团队工作流。

Quick Start

启用此技能后,先运行测试并确认结果,然后按以下任一选项执行后续操作:

  1. 本地合并到 <base-branch>,并验证合并后的测试
  2. 推送分支并创建 PR
  3. 保留分支供后续、稍后处理
  4. 丢弃该工作(需确认)

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

To finalize a git feature branch after tests pass, you can choose between local merge, pushing to create a pull request, retaining the branch, or discarding the work. This skill validates tests and guides the chosen workflow with clear commands.

What is the best way to merge a development branch locally?

The best way to merge a development branch locally involves validating tests first, then executing a local merge into the base branch. This skill provides the exact commands and verifies that tests still pass after the merge is complete.

How do I create a pull request after completing feature development?

To create a pull request after feature development, you push the branch to the remote repository. This skill guides you through the PR creation workflow once your local tests have successfully passed.

Can I retain or discard a git branch without merging?

Yes, you can retain a branch for later processing or discard the work entirely. This skill presents both options with clear execution steps, requiring explicit confirmation before discarding any development work.

Does this branch finalization workflow support different Git strategies?

Yes, this branch finalization workflow supports various Git strategies including local merges, pull request creation, and branch retention or deletion. It adapts to your team's specific workflow requirements.

Why should I run tests before merging a feature branch?

You should run tests before merging a feature branch to ensure all use cases pass and the codebase remains stable. This skill enforces test validation prior to executing any merge or pull request commands.