‹ 首页

taskflow

@qianleigood · 收录于 昨天 · 上游提交 1 个月前

Use when work should span one or more detached tasks but still behave like one job with one owner session, one return context, and durable flow state.

适合你,如果需要管理多个相关任务的执行流程

/ 通过 npx 安装 校验哈希
npx oh-my-skill add qianleigood/crawclaw/taskflow
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- qianleigood/crawclaw/taskflow
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify qianleigood/crawclaw/taskflow
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
30GitHub stars
~357上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 f27e175 · 表述以原文为准
它做什么

Claude 能够将多个独立步骤当作一个整体任务管理,保持所有者会话和持久状态,支持暂停、恢复或取消。

什么时候触发

当工作需要跨多个提示或独立步骤,但需要统一管理时触发,例如等待外部系统或子代理结果。

装好后可以这样说
创建任务流并执行。
设置等待状态。
请求取消。
技能原文 SKILL.md作者撰写 · MIT · f27e175

TaskFlow

Use TaskFlow when a job needs to outlive one prompt or one detached run, but still needs one owner session and one place to inspect or resume the work.

Use it for
  • multi-step background work with one owner
  • jobs that wait on detached ACP or subagent tasks
  • durable flow state between steps
  • child-task linkage with revision-checked mutations
Do not use it for
  • branching business logic
  • routing policy
  • domain-specific orchestration decisions

Keep those in the caller.

Canonical entrypoints
  • api.runtime.tasks.flows
  • api.runtime.tasks.flows.fromToolContext(ctx)
  • api.runtime.tasks.flows.bindSession({ sessionKey, requesterOrigin })
Lifecycle
  1. createManaged(...)
  2. runTask(...)
  3. setWaiting(...) when blocked on a person or external system
  4. resume(...)
  5. finish(...) or fail(...)
  6. requestCancel(...) or cancel(...)
Rules
  • Use managed TaskFlows when your code owns orchestration.
  • Treat stateJson as the persisted state bag.
  • Every mutating method after creation is revision-checked; always carry forward the latest revision.
  • Use runTask(...) instead of creating detached child tasks manually when you want parent orchestration.
  • Store only the minimum state needed to resume.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。