wrap-up
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWrap Up
收尾流程
This skill is coordination-exempt: skip the ai-coord gate for its declared work.
If these instructions are already present in the conversation from a slash or dollar invocation, follow them directly;
do not invoke this skill again through a skill tool.
The user must leave now. Convert everything in flight — the session's own work and any subagents' — into either secured
completed work or a decision-complete handoff, without losing progress. Optimize for wall-clock time over polish: target
roughly five minutes end to end. Use as the user's deadline or departure note when present; a stated
deadline overrides the default budget.
$ARGUMENTSIn a single-agent session, skip Worker Wind-Down and apply the same rules to the session's own in-progress work.
本技能无需协调:其声明的工作可跳过ai-coord校验。
如果对话中已通过斜杠或美元符号调用呈现了这些指令,请直接遵循;不要通过技能工具再次调用本技能。
用户现在必须离开。将所有进行中的工作——会话自身的工作以及任何子代理的工作——转换为已保护的完成工作或决策完备的交接内容,且不丢失进度。优先考虑实际耗时而非完善度:目标是从头到尾耗时约五分钟。若存在,则将其作为用户的截止时间或离开说明;明确的截止时间将覆盖默认时长。
$ARGUMENTS在单代理会话中,跳过“子代理收尾”步骤,并将相同规则应用于会话自身的进行中工作。
Freeze
冻结操作
Immediately and before anything else:
- Launch no new subagents, waves, or scopes. Reclassify queued or not-yet-started work as remaining work for the handoff.
- Stop your own expansion into new files or subsystems; finish only the edit currently mid-flight so no file is left syntactically broken or half-rewritten.
- Start no new long-running validation. Record unverified claims as unverified instead of proving them.
在执行任何其他操作之前,立即执行以下步骤:
- 不启动新的子代理、工作流或作用域。将已排队或尚未开始的工作重新归类为待移交的剩余工作。
- 停止自身向新文件或子系统的扩展;仅完成当前正在进行的编辑,确保没有文件留下语法错误或未完成的改写。
- 不启动新的长时间验证操作。将未验证的声明记录为“未验证”,而非去证明它们。
Worker Wind-Down
子代理收尾
Enumerate active subagents with the host's agent listing, then message every messageable worker — in Claude Code through
SendMessage, in Codex CLI through the native subagent messaging tool — with a wrap-up order:
- Finish the smallest safe unit: complete the current edit, leave no file half-written, start nothing new.
- Skip remaining validation; report what ran and what was skipped instead.
- Reply with exactly these named fields: (
status,completed, orpartial),not-started,summarylisting only files actually touched,changed fileslisting commands run with outcomes plus checks skipped,verification, andremaining work.risks/blockers
Give messageable workers a soft deadline of two to three minutes, or less when the user's stated deadline demands it.
The deadline limits how long this skill waits; it is never permission to cancel a worker. When any worker remains active
at the deadline, leave its agent, subprocess runner, and watcher running under their existing timeouts. Never use a
stop, interrupt, kill, or termination action merely because wrap-up was invoked, the worker is silent, or it has no
message channel.
Classify such a worker as . Record its assigned scope, last observed activity, and existing timeout or
settlement condition. On-disk edits and peer messages are provisional while that worker can still write: do not
reconstruct a final result, launch replacement work, or claim that its scope is complete. If time permits, wait for
natural settlement and collect the normal result; otherwise defer result reconciliation to the handoff.
active-unsettledDo not assign new work, redesigns, or fixes through these messages, even when a report reveals a problem. A discovered
problem becomes remaining work in the handoff.
通过主机的代理列表枚举活跃子代理,然后向每个可发送消息的子代理发送收尾指令——在Claude Code中通过SendMessage,在Codex CLI中通过原生子代理消息工具:
- 完成最小安全单元:完成当前编辑,不留下未完成的文件,不启动新工作。
- 跳过剩余验证;改为报告已执行的操作和跳过的内容。
- 回复时需包含以下指定字段:(
status、completed或partial)、not-started、summary(仅列出实际修改的文件)、changed files(列出已执行的命令及其结果,以及跳过的检查)、verification和remaining work。risks/blockers
给可发送消息的子代理设置2-3分钟的软截止时间,若用户指定的截止时间更短则按用户要求执行。该截止时间限制本技能的等待时长;绝不允许以此为由取消子代理。若截止时间到后仍有子代理处于活跃状态,让其代理、子进程运行器和监视器在现有超时设置下继续运行。绝不能仅因调用了收尾流程、子代理无响应或无消息通道而使用停止、中断、终止等操作。
将此类子代理归类为(活跃未处理)。记录其分配的作用域、最后观察到的活动以及现有的超时或处理条件。在该子代理仍可写入时,磁盘上的编辑和对等消息均为临时内容:不要重建最终结果、启动替代工作或声称其作用域已完成。若时间允许,等待其自然处理并收集正常结果;否则将结果协调工作推迟到交接环节。
active-unsettled不要通过这些消息分配新工作、重新设计或修复问题,即使报告中发现了问题。发现的问题将作为剩余工作纳入交接内容。
Secure
保护工作
Inventory the working tree with and , and map every change to a workstream using
the wrap-up reports. Classify each workstream as completed (edits done and validated), partial (edits or validation
unfinished), or untouched.
git status --shortgit diff --statExclude every scope from validation, staging, and commits. Preserve its current coordination claims
and avoid overlapping writes until the worker settles; a snapshot may describe visible paths only as provisional
evidence, never as a substitute for its result.
active-unsettledFollow the session's existing commit policy: when committing is already authorized for this session, commit each
completed, validated workstream now as its own small commit so it cannot be lost, and leave partial work uncommitted but
fully described in the handoff. Never run tree-wide git commands that could sweep unrelated or concurrent work, and
never commit half-applied changes to make the tree look clean.
使用和盘点工作树,并通过收尾报告将每个变更映射到对应的工作流。将每个工作流分类为已完成(编辑完成且已验证)、部分完成(编辑或验证未完成)或未改动。
git status --shortgit diff --stat将所有作用域排除在验证、暂存和提交之外。保留其当前的协调声明,避免在子代理处理完成前进行重叠写入;快照仅可将可见路径描述为临时证据,绝不能替代其最终结果。
active-unsettled遵循会话现有的提交策略:若本次会话已获提交授权,立即将每个已完成且已验证的工作流单独提交为小型提交,以防丢失;部分完成的工作则不提交,但需在交接内容中完整描述。绝不要运行可能涵盖无关或并发工作的全局git命令,也不要为了让工作树看起来整洁而提交未完全应用的变更。
Hand Off
任务交接
Synthesize one state picture across your own work and every wrap-up report: what completed, what is partial and exactly
how far it got — keyed to stable paths and symbols, never line numbers — what remains, which claims are unverified, and
known blockers.
Invoke the task-handoff skill () with the remaining work, and make each handoff body decision-complete
per that skill's contract, folding in the synthesis: current tree state, per-workstream progress, remaining steps, and
the validation the resumed agent must run first. Default to one handoff; use coordinated handoffs only when remaining
workstreams have independent outcomes or owners. If the task-handoff skill is unavailable, deliver the same
decision-complete content in the final report instead.
$task-handoffFor each worker, make settlement and result reconciliation a prerequisite to any resumed edits in its
scope. Do not turn its still-running assignment into immediately actionable replacement work.
active-unsettled综合自身工作和所有收尾报告,生成一份状态概览:已完成的工作、部分完成的工作及其具体进度(需关联稳定路径和符号,而非行号)、剩余工作、未验证的声明以及已知障碍。
调用task-handoff技能()处理剩余工作,并根据该技能的约定使每个交接内容具备决策完备性,融入上述综合信息:当前工作树状态、各工作流进度、剩余步骤以及恢复会话的代理必须首先执行的验证操作。默认生成一份交接内容;仅当剩余工作流具有独立结果或所有者时,才使用协调式交接。若task-handoff技能不可用,则在最终报告中提供相同的决策完备内容。
$task-handoff对于每个子代理,需将其处理和结果协调作为恢复其作用域内编辑工作的先决条件。不要将其仍在运行的任务转换为可立即执行的替代工作。
active-unsettledReport
最终报告
Finish with followed by, compactly: completed workstreams with their
receipt OIDs when committed (never a follow-up ), partial workstreams and their exact stopping points,
active-unsettled workers with their settlement conditions, the handoff command(s) verbatim from task-handoff's report,
and an always-present risks line ( when empty). Keep it short — the user is walking out the door.
### 🏁 Hurry-up — session parked$commitgit lognone以结尾,简洁列出以下内容:已完成的工作流及其提交后的收据OID(不要后续执行)、部分完成的工作流及其确切停止点、活跃未处理的子代理及其处理条件、task-handoff报告中的交接命令原文,以及始终存在的风险行(无风险时填写)。保持内容简短——用户即将离开。
### 🏁 紧急收尾 — 会话已暂停$commitgit lognone