long-task-coordinator by charon-fan/agent-playbook
npx skills add https://github.com/charon-fan/agent-playbook --skill long-task-coordinator让长时间运行的工作可恢复、有状态且可靠。
当工作具有以下特点时使用此技能:
对于小型、单回合任务,请跳过此技能。当简单的规划足够且恢复逻辑不是主要关注点时,请使用 planning-with-files。
planning-with-files 将多步骤工作组织在文件中。workflow-orchestrator 在里程碑后链接后续技能。long-task-coordinator 使长时间运行的工作可恢复、可审计且可安全交接。对于任何真正的长任务,维护一个持久状态文件。聊天历史不是可靠的状态存储。
状态文件至少应包含:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
使用适合任务的最小角色模型:
简单任务可以将这些角色合并到一个代理中。长时间或委派的任务应明确划分角色。
对于每个协调回合:
READ -> RECOVER -> DECIDE -> PERSIST -> REPORT -> END
在状态文件更新之前,不要报告结论。
awaiting-result 视为有效状态如果工作者或后台作业已成功分派,任务不会仅仅因为结果尚未返回而失败。
有效的状态转换包括:
running -> awaiting-resultawaiting-result -> runningrunning -> pausedrunning -> complete一个协调回合只有在至少完成以下一项时才有效:
如果没有任何变化,不要假装任务有进展。
恢复回答以下问题:
领域工作回答以下问题:
先恢复,然后继续领域工作。
当至少满足以下一项时使用此技能:
优先选择易于重新发现的路径,例如:
docs/<topic>-execution-plan.mddocs/<topic>-state.mdworklog/<topic>-state.md如果尚不存在持久状态,请根据 references/workflow.md 创建一个。
在每个新回合开始时:
在决定下一步行动后:
以以下状态之一结束每个回合:
runningawaiting-resultpausedblockedcomplete报告的状态应与持久化的状态完全一致。
使用此技能时,产生的更新应基于保存的状态:
只有当以下所有相关项都为真时,才将协调工作视为完成:
如果任务并非真正完成,请以 running、awaiting-result、paused 或 blocked 状态结束,而不是假装工作已完成。
避免:
references/workflow.md - 详细的工作流程、状态模板和恢复检查清单每周安装次数
98
代码仓库
GitHub 星标数
22
首次出现
11 天前
安全审计
安装于
kimi-cli94
gemini-cli94
amp94
github-copilot94
codex94
opencode94
Keep long-running work recoverable, stateful, and honest.
Use this skill when the work:
Skip this skill for small, single-turn tasks. Use planning-with-files when simple planning is enough and recovery logic is not the main concern.
planning-with-files keeps multi-step work organized in files.workflow-orchestrator chains follow-up skills after milestones.long-task-coordinator makes long-running work resumable, auditable, and safe to hand off.For any real long task, maintain one durable state file. Chat history is not a reliable state store.
The state file should capture at least:
Use the smallest role model that fits the task:
Simple tasks can collapse these roles into one agent. Long or delegated tasks should make the split explicit.
For each coordination round:
READ -> RECOVER -> DECIDE -> PERSIST -> REPORT -> END
Do not report conclusions before the state file has been updated.
awaiting-result as a valid stateIf a worker or background job was dispatched successfully, the task is not failing just because the result is not back yet.
Valid transitions include:
running -> awaiting-resultawaiting-result -> runningrunning -> pausedrunning -> completeA coordination round is only valid if it does at least one of the following:
If nothing changed, do not pretend the task advanced.
Recovery answers:
Domain work answers:
Recover first, then continue domain work.
Use this skill when at least one is true:
Prefer a path that is easy to rediscover, such as:
docs/<topic>-execution-plan.mddocs/<topic>-state.mdworklog/<topic>-state.mdIf no durable state exists yet, create one from references/workflow.md.
At the start of every new round:
After deciding the next action:
End each round with one of these states:
runningawaiting-resultpausedblockedcompleteThe reported status should match the persisted status exactly.
When using this skill, produce updates that are grounded in saved state:
Treat the coordination work as complete only when all relevant items below are true:
If the task is not truly complete, end in running, awaiting-result, paused, or blocked rather than pretending the work is done
Avoid:
references/workflow.md - Detailed workflow, state template, and recovery checklistWeekly Installs
98
Repository
GitHub Stars
22
First Seen
11 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
kimi-cli94
gemini-cli94
amp94
github-copilot94
codex94
opencode94
开源项目教练指南 - 诊断问题、制定行动计划、优化开源项目运营
40,200 周安装