feature-branch-closeout
Skill6 starsChanged 6 days agoMITView on GitHub
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.
In this repository79 other files it gives its agents.
- AGENTS.mdAGENTS.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-bulk-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-sync-specsSkill
- openspec-verify-changeSkill
- ai-proxy-disciplineSkill
- analysis-coreSkill
- android-webview-debugSkill
- article-writerSkill
- astrill-controlSkill
- brainstorm-workflowSkill
- browser-debug-toolkitSkill
- clarifying-question-disciplineSkill
- code-design-reviewSkill
- competitive-researchSkill
- completion-evidence-disciplineSkill
- context-budget-disciplineSkill
- decision-fog-disciplineSkill
- delivery-disciplineSkill
- design-approval-gateSkill
- domain-language-disciplineSkill
- effective-web-researchSkill
- essence-diagnosisSkill
- evolution-reviewSkill
- explain-clearlySkill
- figma-pixel-implementSkill
- figma-pixel-verifySkill
- git-branch-protectSkill
- git-commitSkill
- git-conflict-resolveSkill
- git-release-finishSkill
- git-release-startSkill
- git-worktree-disciplineSkill
- goal-driven-queueSkill
- goal-driven-workflowSkill
- go-deploySkill
- hybrid-debugSkill
- intake-interview-disciplineSkill
- jira-fix-queueSkill
- jira-fix-workflowSkill
- jira-readSkill
- jira-status-lifecycleSkill
- jira-status-writebackSkill
- jira-wiki-markupSkill
- known-issue-researchSkill
- learn-and-improveSkill
- merge-disciplineSkill
- multi-agent-debateSkill
- node-version-disciplineSkill
- opsx-jira-fix-queueSkill
- opsx-jira-fix-workflowSkill
- opsx-solve-workflowSkill
- opsx-workspace-gateSkill
- perf-optimize-workflowSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
If the choice is merge (or the user later says merge):
- Distinctive: line 41
Run Parts A → B → C → R → D
- Distinctive: line 42
Only then execute the platform merge
- Distinctive: line 44
Do not copy rebase / coverage / tip-pin prose into this skill.
- Very specific: line 62
Prefer user-invocable: false.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Feature Branch Closeout
Internal shared skill. Single source of truth for post-verify branch closeout decisions. Hosts declare it in
dependenciesand 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:
- Open / update PR — load
delivery-discipline(need-delivery gate + commit if needed + create/refresh PR); stop (no merge) - Merge — merge into the protected target (then run
merge-discipline) - Keep branch — leave branch as-is; no merge
- 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):
- Load
merge-discipline - Run Parts A → B → C → R → D
- 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-branchinside this repository
Integration guide
- Hosts: after archive/verify, optionally load
delivery-disciplinewhen delivery is expected, then one-line — loadfeature-branch-closeoutfor the menu; on merge, it loadsmerge-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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

