superpowers-finishing-a-development-branch

Run tests and preserve the working tree when finishing a development branch.

1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/klaaay/spec-toolkit --skill superpowers-finishing-a-development-branch-klaaay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: superpowers-finishing-a-development-branch
Source: https://github.com/klaaay/spec-toolkit/tree/main/apps/spec-kit-app/public/commands-packages/superpowers/skills/superpowers-finishing-a-development-branch
Command: npx skills add https://github.com/klaaay/spec-toolkit --skill superpowers-finishing-a-development-branch-klaaay

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

当实现完成且测试通过时,开发人员需要一个稳定、可重复的收尾流程,以确保分支在结束时保持原样并保留工作树,便于回顾和后续合并。

Core Features & Use Cases

  • 验证测试:在结束前确保所有测试通过。
  • 保留工作树:结束分支时保留工作目录以便审阅和最终合并。
  • 清晰指引:提供一致的工作流步骤,减少手动操作和错误。

Quick Start

将此技能应用于开发分支的完成阶段,确保测试通过后保持工作树以便审阅和合并。

Frequently Asked Questions about superpowers-finishing-a-development-branch

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

FAQPage Schema
How do I finish a development branch while preserving the working tree?

To finish a development branch while preserving the working tree, you need a deterministic workflow that runs tests, reports failures, and marks the branch as finished without altering your current working directory. This ensures a stable state for review and final merge.

What is the best way to ensure tests pass before merging a git branch?

The best way to ensure tests pass before merging a git branch is to enforce strict post-merge discipline using a CI-driven validation process. This provides an auditable finish process that runs tests and reports any failures before the branch is marked as complete.

Why should I preserve the working directory after a branch finishes?

You should preserve the working directory after a branch finishes to allow for seamless code review and final handoffs. Keeping the working tree intact post-completion provides a stable, repeatable state for developers to verify the implementation before the actual merge.

Can I use this branch management workflow for CI-driven validation?

Yes, you can use this branch management workflow for CI-driven validation. It specifically applies to software development workflows that require strict post-merge discipline, implementing an auditable finish process that validates tests and reports failures automatically.

What happens if tests fail when ending a development branch?

If tests fail when ending a development branch, the deterministic finish process reports the specific failures and halts the completion. This strict branch hygiene ensures that only fully validated implementations are marked as finished while keeping the working tree intact for fixes.