Skip to content
Back to skills

Feature Branch Closeout

ASecurity

Post-verification feature-branch closeout menu: after verify (and archive when applicable), and after optional delivery-discipline when code delivery is needed, present PR / merge / keep / continue options; optional worktree cleanup; selecting merge MUST load merge-discipline Parts A→B→C→R→D; keep/continue MUST NOT trigger merge gates. Open/update PR delegates to delivery-discipline. Triggers — 「分支收尾」「feature 收尾菜单」「合入或保留分支」「branch closeout」 / feature branch closeout, post-verify branch menu. ...

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
testinggit

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add FuDesign2008/open-skills --skill feature-branch-closeout --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feature Branch Closeout?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feature Branch Closeout
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fudesign2008-feature-branch-closeout/badge)](https://www.skillsdirectory.com/skills/fudesign2008-feature-branch-closeout)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: feature-branch-closeout
version: "1.1.0"
user-invocable: false
description: "Post-verification feature-branch closeout menu: after verify (and archive when applicable), and after optional delivery-discipline when code delivery is needed, present PR / merge / keep / continue options; optional worktree cleanup; selecting merge MUST load merge-discipline Parts A→B→C→R→D; keep/continue MUST NOT trigger merge gates. Open/update PR delegates to delivery-discipline. Triggers — 「分支收尾」「feature 收尾菜单」「合入或保留分支」「branch closeout」 / feature branch closeout, post-verify branch menu. Do NOT use as a name alias for finishing-a-development-branch."
dependencies:
  - merge-discipline
  - delivery-discipline
---

# Feature Branch Closeout

> Internal shared skill. Single source of truth for **post-verify branch closeout decisions**. Hosts declare it in `dependencies` and abort if missing — no silent fallback.
>
> **Name note:** intentionally **not** named `finishing-a-development-branch` (external skills repo). Use this name only.

## Prerequisite

On load, verify `merge-discipline` and `delivery-discipline` are available; if missing, abort with install hint. No silent degrade.

## When this applies

After verification is **green**, or every incomplete check is labeled **Pending** with an exact action — and after OpenSpec archive when the host requires archive before closeout — and after optional `delivery-discipline` when the host runs delivery before the menu. Do not claim the branch work is finished without presenting the menu (unless the user already gave an explicit closeout choice this turn).

## Closeout menu (minimum)

Present intent clearly; agent picks native structured-question capability or prose:

1. **Open / update PR** — load `delivery-discipline` (need-delivery gate + commit if needed + create/refresh PR); stop (no merge)
2. **Merge** — merge into the protected target (then run `merge-discipline`)
3. **Keep branch** — leave branch as-is; no merge
4. **Continue development** — stay on branch for more work; no merge

Optional (when applicable): detect worktree / detached HEAD / isolation created via `git-worktree-discipline` and offer cleanup; **discard** only with explicit strong confirmation (user must clearly affirm discard). Do **not** create new isolation here — create/detect lives in `git-worktree-discipline`. Post-merge local workspace sync is owned by `merge-discipline` Part D, not this menu.

## Merge path

If the choice is **merge** (or the user later says merge):

1. Load `merge-discipline`
2. Run Parts **A → B → C → R → D**
3. Only then execute the platform merge

Do **not** copy rebase / coverage / tip-pin prose into this skill.

## Non-merge paths

**Keep** / **continue**: do **not** start merge-discipline coverage or tip pinning for a merge.

**PR-only** (option 1): load `delivery-discipline`; do **not** start merge-discipline.

## Forbidden

- Silently merging without the menu (unless user already ordered merge explicitly — then still run `merge-discipline`)
- Embedding merge-discipline Parts A→B→C→R→D inline
- Inlining commit/push/PR-create steps that belong in `delivery-discipline`
- Renaming this skill to `finishing-a-development-branch` inside this repository

## Integration guide

- Hosts: after archive/verify, optionally load `delivery-discipline` when delivery is expected, then one-line — load `feature-branch-closeout` for the menu; on merge, it loads `merge-discipline`.
- Prefer `user-invocable: false`; reach via PDCA hosts.
- Order: archive (if any) + diff check → **optional `delivery-discipline`** → **this menu** → merge-discipline only if merge selected.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.