[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F5WXPWA6SQDSCNPY6Z5F9N":3,"skill-same:01M7F5WXPWA6SQDSCNPY6Z5F9N":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7F5WXPWA6SQDSCNPY6Z5F9N","taskflow",null,"Coordinate multi-step detached tasks as one durable TaskFlow job with owner context, state, waits, and child tasks.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftaskflow\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: taskflow\ndescription: \"Coordinate multi-step detached tasks as one durable TaskFlow job with owner context, state, waits, and child tasks.\"\nmetadata: { \"openclaw\": { \"emoji\": \"🪝\" } }\n---\n\n# TaskFlow\n\nUse TaskFlow when a job needs to outlive one prompt or one detached run, but you still want one owner session, one return context, and one place to inspect or resume the work.\n\n## When to use it\n\n- Multi-step background work with one owner\n- Work that waits on detached ACP or subagent tasks\n- Jobs that may need to emit one clear update back to the owner\n- Jobs that need small persisted state between steps\n- Plugin or tool work that must survive restarts and revision conflicts cleanly\n\n## What TaskFlow owns\n\n- flow identity\n- owner session and requester origin\n- `currentStep`, `stateJson`, and `waitJson`\n- linked child tasks and their parent flow id\n- finish, fail, cancel, waiting, and blocked state\n- revision tracking for conflict-safe mutations\n\nIt does **not** own branching or business logic. Put that in Lobster, acpx, or the calling code.\n\n## Current runtime shape\n\nCanonical plugin\u002Fruntime entrypoint:\n\n- `api.runtime.tasks.managedFlows` is mutation-capable: create, advance, and cancel Task Flows.\n- `api.runtime.tasks.flows` is the read-only DTO view for listing and status lookups (`get`, `list`, `findLatest`, `resolve`, `getTaskSummary`).\n\nBinding:\n\n- `api.runtime.tasks.managedFlows.fromToolContext(ctx)` when you already have trusted tool context with `sessionKey`\n- `api.runtime.tasks.managedFlows.bindSession({ sessionKey, requesterOrigin })` when your binding layer already resolved the session and delivery context\n\nManaged-flow lifecycle:\n\n1. `createManaged(...)`\n2. `runTask(...)`\n3. `setWaiting(...)` when waiting on a person or an external system\n4. `resume(...)` when work can continue\n5. `finish(...)` or `fail(...)`\n6. `requestCancel(...)` or `cancel(...)` when the whole job should stop\n\n## Design constraints\n\n- Use **managed** TaskFlows when your code owns the orchestration.\n- One-task **mirrored** flows are created by core runtime for detached ACP\u002Fsubagent work; this skill is mainly about managed flows.\n- Treat `stateJson` as the persisted state bag. There is no separate `setFlowOutput` or `appendFlowOutput` API.\n- Every mutating method after creation is revision-checked. Carry forward the latest `flow.revision` after each successful mutation.\n- `runTask(...)` links the child task to the flow. Use it instead of manually creating detached tasks when you want parent orchestration.\n\n## Example shape\n\n```ts\nconst taskFlow = api.runtime.tasks.managedFlows.fromToolContext(ctx);\n\nconst created = taskFlow.createManaged({\n  controllerId: \"my-plugin\u002Finbox-triage\",\n  goal: \"triage inbox\",\n  currentStep: \"classify\",\n  stateJson: {\n    businessThreads: [],\n    personalItems: [],\n    eodSummary: [],\n  },\n});\n\nconst classify = taskFlow.runTask({\n  flowId: created.flowId,\n  runtime: \"acp\",\n  childSessionKey: \"agent:main:subagent:classifier\",\n  runId: \"inbox-classify-1\",\n  task: \"Classify inbox messages\",\n  status: \"running\",\n  startedAt: Date.now(),\n  lastEventAt: Date.now(),\n});\n\nif (!classify.created) {\n  throw new Error(classify.reason);\n}\n\nconst waiting = taskFlow.setWaiting({\n  flowId: created.flowId,\n  expectedRevision: created.revision,\n  currentStep: \"await_business_reply\",\n  stateJson: {\n    businessThreads: [\"slack:thread-1\"],\n    personalItems: [],\n    eodSummary: [],\n  },\n  waitJson: {\n    kind: \"reply\",\n    channel: \"slack\",\n    threadKey: \"slack:thread-1\",\n  },\n});\n\nif (!waiting.applied) {\n  throw new Error(waiting.code);\n}\n\nconst resumed = taskFlow.resume({\n  flowId: waiting.flow.flowId,\n  expectedRevision: waiting.flow.revision,\n  status: \"running\",\n  currentStep: \"finalize\",\n  stateJson: waiting.flow.stateJson,\n});\n\nif (!resumed.applied) {\n  throw new Error(resumed.code);\n}\n\ntaskFlow.finish({\n  flowId: resumed.flow.flowId,\n  expectedRevision: resumed.flow.revision,\n  stateJson: resumed.flow.stateJson,\n});\n```\n\n## Keep conditionals above the runtime\n\nUse the flow runtime for state and task linkage. Keep decisions in the authoring layer:\n\n- `business` -> post to Slack and wait\n- `personal` -> notify the owner now\n- `later` -> append to an end-of-day summary bucket\n\n## Operational pattern\n\n- Store only the minimum state needed to resume.\n- Put human-readable wait reasons in `blockedSummary` or structured wait metadata in `waitJson`.\n- Use `getTaskSummary(flowId)` on `api.runtime.tasks.flows` when the orchestrator needs a compact health view of child work.\n- Use `requestCancel(...)` when a caller wants the flow to stop scheduling immediately.\n- Use `cancel(...)` when you also want active linked child tasks cancelled.\n\n## Examples\n\n- See `skills\u002Ftaskflow\u002Fexamples\u002Finbox-triage.lobster`\n- See `skills\u002Ftaskflow\u002Fexamples\u002Fpr-intake.lobster`\n- See `skills\u002Ftaskflow-inbox-triage\u002FSKILL.md` for a concrete routing pattern\n","# TaskFlow\n\nUse TaskFlow when a job needs to outlive one prompt or one detached run, but you still want one owner session, one return context, and one place to inspect or resume the work.\n\n## When to use it\n\n- Multi-step background work with one owner\n- Work that waits on detached ACP or subagent tasks\n- Jobs that may need to emit one clear update back to the owner\n- Jobs that need small persisted state between steps\n- Plugin or tool work that must survive restarts and revision conflicts cleanly\n\n## What TaskFlow owns\n\n- flow identity\n- owner session and requester origin\n- `currentStep`, `stateJson`, and `waitJson`\n- linked child tasks and their parent flow id\n- finish, fail, cancel, waiting, and blocked state\n- revision tracking for conflict-safe mutations\n\nIt does **not** own branching or business logic. Put that in Lobster, acpx, or the calling code.\n\n## Current runtime shape\n\nCanonical plugin\u002Fruntime entrypoint:\n\n- `api.runtime.tasks.managedFlows` is mutation-capable: create, advance, and cancel Task Flows.\n- `api.runtime.tasks.flows` is the read-only DTO view for listing and status lookups (`get`, `list`, `findLatest`, `resolve`, `getTaskSummary`).\n\nBinding:\n\n- `api.runtime.tasks.managedFlows.fromToolContext(ctx)` when you already have trusted tool context with `sessionKey`\n- `api.runtime.tasks.managedFlows.bindSession({ sessionKey, requesterOrigin })` when your binding layer already resolved the session and delivery context\n\nManaged-flow lifecycle:\n\n1. `createManaged(...)`\n2. `runTask(...)`\n3. `setWaiting(...)` when waiting on a person or an external system\n4. `resume(...)` when work can continue\n5. `finish(...)` or `fail(...)`\n6. `requestCancel(...)` or `cancel(...)` when the whole job should stop\n\n## Design constraints\n\n- Use **managed** TaskFlows when your code owns the orchestration.\n- One-task **mirrored** flows are created by core runtime for detached ACP\u002Fsubagent work; this skill is mainly about managed flows.\n- Treat `stateJson` as the persisted state bag. There is no separate `setFlowOutput` or `appendFlowOutput` API.\n- Every mutating method after creation is revision-checked. Carry forward the latest `flow.revision` after each successful mutation.\n- `runTask(...)` links the child task to the flow. Use it instead of manually creating detached tasks when you want parent orchestration.\n\n## Example shape\n\n```ts\nconst taskFlow = api.runtime.tasks.managedFlows.fromToolContext(ctx);\n\nconst created = taskFlow.createManaged({\n  controllerId: \"my-plugin\u002Finbox-triage\",\n  goal: \"triage inbox\",\n  currentStep: \"classify\",\n  stateJson: {\n    businessThreads: [],\n    personalItems: [],\n    eodSummary: [],\n  },\n});\n\nconst classify = taskFlow.runTask({\n  flowId: created.flowId,\n  runtime: \"acp\",\n  childSessionKey: \"agent:main:subagent:classifier\",\n  runId: \"inbox-classify-1\",\n  task: \"Classify inbox messages\",\n  status: \"running\",\n  startedAt: Date.now(),\n  lastEventAt: Date.now(),\n});\n\nif (!classify.created) {\n  throw new Error(classify.reason);\n}\n\nconst waiting = taskFlow.setWaiting({\n  flowId: created.flowId,\n  expectedRevision: created.revision,\n  currentStep: \"await_business_reply\",\n  stateJson: {\n    businessThreads: [\"slack:thread-1\"],\n    personalItems: [],\n    eodSummary: [],\n  },\n  waitJson: {\n    kind: \"reply\",\n    channel: \"slack\",\n    threadKey: \"slack:thread-1\",\n  },\n});\n\nif (!waiting.applied) {\n  throw new Error(waiting.code);\n}\n\nconst resumed = taskFlow.resume({\n  flowId: waiting.flow.flowId,\n  expectedRevision: waiting.flow.revision,\n  status: \"running\",\n  currentStep: \"finalize\",\n  stateJson: waiting.flow.stateJson,\n});\n\nif (!resumed.applied) {\n  throw new Error(resumed.code);\n}\n\ntaskFlow.finish({\n  flowId: resumed.flow.flowId,\n  expectedRevision: resumed.flow.revision,\n  stateJson: resumed.flow.stateJson,\n});\n```\n\n## Keep conditionals above the runtime\n\nUse the flow runtime for state and task linkage. Keep decisions in the authoring layer:\n\n- `business` -> post to Slack and wait\n- `personal` -> notify the owner now\n- `later` -> append to an end-of-day summary bucket\n\n## Operational pattern\n\n- Store only the minimum state needed to resume.\n- Put human-readable wait reasons in `blockedSummary` or structured wait metadata in `waitJson`.\n- Use `getTaskSummary(flowId)` on `api.runtime.tasks.flows` when the orchestrator needs a compact health view of child work.\n- Use `requestCancel(...)` when a caller wants the flow to stop scheduling immediately.\n- Use `cancel(...)` when you also want active linked child tasks cancelled.\n\n## Examples\n\n- See `skills\u002Ftaskflow\u002Fexamples\u002Finbox-triage.lobster`\n- See `skills\u002Ftaskflow\u002Fexamples\u002Fpr-intake.lobster`\n- See `skills\u002Ftaskflow-inbox-triage\u002FSKILL.md` for a concrete routing pattern\n",{"name":5,"metadata":24,"description":7},{"openclaw":25},{"emoji":26},"🪝","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Ftaskflow",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill taskflow",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill taskflow",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill taskflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftaskflow\u002FSKILL.md",true,[],[50,57,62,69,76,83],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":58,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]