finishing-branch

Finalize feature branches by choosing merge, PR, keep, or discard.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill finishing-branch-zenbuapps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-branch
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/finishing-branch
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill finishing-branch-zenbuapps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

開發分支在完成與測試通過後需要一致的收尾流程。本技能提供一個可預測的選項樹,協助使用者在 Merge / PR / Keep / Discard 四個選項中做出選擇,並執行對應的 git 與 worktree 清理步驟。

Core Features & Use Cases

  • 提供 Green 後的收尾決策流程,保證測試全綠且有可追蹤的清理動作。
  • 支援本地與 CI 工作流,四種明確行動:合併、開 PR、保留或丟棄,並自動執行相關清理。
  • 與 zenbu-powers 的 git-commit 與 tdd-coordinator 整合,形成完整的開發收尾循環。

Quick Start

Run this skill after tests pass to choose how to finalize the feature branch.

Frequently Asked Questions about finishing-branch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up a git branch after tests pass?

To clean up a git branch after tests pass, a guided workflow validates green tests and presents a deterministic decision tree to merge, open a pull request, keep, or discard the branch.

What is the best way to finalize feature branches in CI workflows?

Finalizing feature branches in CI workflows requires a deterministic decision tree that validates green tests and executes git or worktree cleanup based on whether you choose to merge, open a PR, keep, or discard.

How does worktree cleanup work when discarding a development branch?

Worktree cleanup when discarding a development branch works by applying a deterministic decision tree that removes the associated git worktree and branch files after confirming tests are green and the discard option is selected.

Can I use this branch management process for both local and CI environments?

Yes, this branch management process applies to both local and CI environments, providing a predictable cleanup flow that decides between merge, PR, keep, or discard and runs the corresponding git actions.

When should I keep versus discard a finished git worktree?

You should keep a finished git worktree if further development is needed, or discard it if the worktree is complete, using a decision tree that ensures tests are green before executing the git cleanup action.