AGENT SKILL

finishing-a-development-branch

Use when implementation is complete, verification has run, and the user needs to merge, create a PR, keep, discard, or clean up a branch or worktree.

License 许可
MIT
所属仓库
max-kharena/nous
最近更新
2026-04-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
finishing-a-development-branch
risk
high
type
git
version
0.1.0
description
Use when implementation is complete, verification has run, and the user needs to merge, create a PR, keep, discard, or clean up a branch or worktree.

03 SKILL.md 正文

Finishing A Development Branch

Core Principle

Verify first, then present explicit integration options, then clean up only when safe.

Workflow

  1. Run verification-before-completion for the branch.
  2. Determine base branch and current branch.
  3. Present exactly four options.
  4. Execute the selected option.
  5. Clean up worktree only when the selected option permits it.

Options To Present

Implementation verified. What should happen to this branch?

1. Merge locally into <base-branch>
2. Push and create a Pull Request
3. Keep branch/worktree as-is
4. Discard this work

Safety Rules

  • Do not merge or PR with failing verification.
  • Do not delete a branch or worktree without typed confirmation for discard.
  • Do not force-push unless explicitly requested.
  • Verify again after local merge.
  • Preserve worktree for “keep as-is”.

Output Contract

## Verification Evidence
## Base Branch
## Current Branch
## Selected Option
## Actions Taken
## Cleanup Status
## Remaining Work

04 同仓库更多 Skills