会话收尾引导
closeout
为 beep-effect 提供引导式会话收尾。在每个停止点(任务完成、被操作员阻塞、PR 可合并、合并后收尾、在提出问题前让出控制权)使用,通过 AskUserQuestion(Claude Code)或 request_user_input(Codex)向操作员提供结构化的下一步提示,而不是散文式的选项列表。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 80
- Forks
- 14
01 前言 Front Matter
- name
- closeout
- description
- Guided session closeout for beep-effect. Use at every stopping point (task done, blocked on the operator, PR merge-ready, post-merge closeout, before yielding on a question) to hand the operator a structured next-step prompt through AskUserQuestion (Claude Code) or request_user_input (Codex) instead of a prose list of options.
03 SKILL.md 正文
Guided Closeout
The operator runs many sessions and clones in parallel and does not read long
final messages. A stopping point is handed back as a short recap plus one
structured prompt whose options are the concrete next steps. The law is the
"Guided Closeout" section of AGENTS.md; this skill is the shape.
When holding the orchestrator role, update the private handoff under
the orchestrate skill before the ledger row and prompt.
Record each unit's T3 thread link (or its environmentId plus thread id on a
linked host) and any send whose reply is still unread. A t3_thread_send
receipt confirms delivery, not completion; role takeover requires the
successor's explicit acknowledgment and orchestrator ledger row. Do not resume
an existing Desktop task merely to deliver a closeout message.
At session start
Read bun run beep session open (the Claude SessionStart hook prints the
same rows). Each live row is a resume candidate: offer them in the first
prompt alongside whatever the operator asked for, newest first, and never
silently take over a row another live session owns: bun run beep session resolve <lane or PR> names its owner and says whether that session is live.
When
Every stopping point, not only the end of a task:
- the requested work is done and verified;
- the work is blocked on something only the operator can decide or do;
- a PR reached
merge-ready: yes: it opened (or left draft) at content-final, its checks are green, its threads are answered and its 20-minute review window has elapsed (hand-off, never a merge unless authorized); - a merge landed and the lane was retired;
- any moment you would otherwise end the turn with a question.
If the harness has no question tool (headless -p runs, a detached job), write
the same options as a numbered list with the recommended item first and say
which tool the operator should use to answer.
Shape
- Write the ledger row first.
bun run beep session note --state <open|blocked|done> --next "<one line>" [--summary "<one line>"] [--pr <n>]from the checkout you worked in. This is what the next session (yours or a sibling's) sees at start throughbun run beep session open; the prompt below is for the operator, the row is for the fleet. The note also records this session's message routes, sosession resolvecan find it.yeet sweepandyeet sweep --retirewrite thedonerow themselves. - Recap, three lines at most, above the prompt. What landed (PR numbers, commits), what is verified, what is not. Numbers in a short table if more than two.
- One prompt call. Claude Code:
AskUserQuestion. Codex:request_user_input. At most four questions per call; most closeouts need one. - The question carries the state. One line: clone, lane or branch, PR, where it stopped. The operator must be able to answer without scrolling up.
- Two to four options, each a real next step. Recommended option first,
labelled "(Recommended)", with the trade-off in its description. Always
include a "stop here" or "park it" option so a
nois one click. - Multi-select only when the options are independent (several lanes to retire, several packets to close). Decisions between alternatives stay single-select.
- Act on the answer in the same turn when it is reversible and in scope; otherwise open the next prompt.
Option vocabulary
Prefer these, so prompts read the same across sessions:
Continue with <next step> (Recommended)— the work that follows naturally.Open the follow-up PR for <x>— when the next step is a separate branch.Run /grill-with-docs on <decision>— when direction, not execution, is next.Retire the lane/Sweep the clone— post-merge closeout.Verify the <slug> closeout (Recommended)— after a goal's final PR merges:goals completion refresh --slug <slug>, thengoals doctor --online.yeet sweep --retireruns the same check and leaves a P0 inbox row when it fails. A red required check needs a committedredAttributiondecision file naming it with its cause and fix PR; a final GitHub can no longer verify needs anoperatorRulingdecision file. A goal is not done, and/goalmust not stop, until it verifies or an operator ruling closes it.Archive the <slug> packet (Recommended)— after the closeout verifies:bun run beep goals archive --kind goals --slug <slug> --plan, then--write --expect <planId>, push the archive checkout, then land the tombstone in a packet-state PR; or setretentionReasonin the manifest when the evidence must stay onmain. Explorations use--kind explorationsonce graduated or killed.Park it: record state and stop— writes the state to memory or the packet and ends the turn.
What it is not
- Not a substitute for
/grill-with-docs: direction-setting decisions are grilled first; the closeout prompt carries the remaining frontier. - Not an exploration exit: an
/explorepacket that needs the operator switches into/grill-with-docsand keeps going; closeout comes only once the packet is graduated, parked, or killed. - Not a permission laundering path: an action the harness denied is reported as denied, never offered as an option for the operator to "approve" on your behalf.
- Not a reason to skip the on-disk handoff: packet state, memory, and the yeet inbox are still written before the prompt.
04 同仓库更多 Skills
alchemy-provider
Bring up a new Alchemy cloud provider (its own `@alchemy.run/<provider>` package under packages/<provider>) end to end — credentials, a distilled SDK, resources, bindings, live tests, and the patch loop that feeds live-test failures back into distilled — or extend an existing provider with a new service, or bring an existing provider up to the bar (gap audit, then waves). Use for "add a <X> provider", "create an alchemy provider for <X>", "port <X> to alchemy", "add <service> to the <X> provider", "bring the <X> provider up to par", or any work that needs a distilled SDK plus Alchemy resources tested against a live API.
alchemy-domain
Build backends with @alchemy.run/domain (domain-driven design on Effect) - turn requirements into aggregates, commands, events, rejections, views, policies, sagas, projections, streams, queries, external systems and Apis; lay them out in a monorepo (domain / server / web packages, kind-suffixed files); test them with stories; host them on Durable Objects (Cloudflare, Rivet or Effect Cluster) with alchemy; and drive them from a foldkit frontend. Use when designing or changing an @alchemy.run/domain model, adding a building block, wiring hosting or a frontend, or reviewing such code.
update-harnesses
Update every agent harness on every fleet host: T3 Code, Codex, Claude Code, Grok Build, Kimi Code, Junie, Cursor Agent and Muse on DankStation, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl and the grok-bot VM, plus the desktop apps (ChatGPT and Claude Desktop on DankStation and grok-bot; Cursor and Kimi Desktop on DankStation). Use on `/update-harnesses`, when a harness is out of date somewhere, or to audit which versions and install methods each host runs.
auth-environments
Sign Claude Code in to a chosen Claude subscription on every linked T3 fleet host (grok-bot, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl). Use when a Claude account hits its weekly limit, when `bun run beep accounts` shows the fleet's account used up, or on `/auth-environments`. Opens each host's OAuth page and a masked KDE code dialog together and verifies the admitted account.
shadcn 技能来源校验
shadcn
用于 shadcn 技能不可变来源(provenance)的固定装置(fixture)。
QA 库存判定
qa-inventory-judge
暂无简介