agentCLAWHUBUnverified

taskflow

Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under... Skill: taskflow Owner: 1yihui Summary: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-28T07:29:17.829Z | user Initial release Archive index: Archive v1.0.0: 3 files, 3665 bytes Files: skill-card.md (1960b), SKILL.md (5109b), _meta.json (133b) File v1.0.0

OpenClaw

Rank

62

Safety

84

Downloads

1.1k

Updated

Oct 11, 2026

Version

1.0.0

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1.1K downloadsadoption · observed Oct 11, 2026
Latest release
1.0.0release · observed Apr 28, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s17dkj69epg7yy8vn06c46hemn85dcap:yihui-taskflow
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-1yihui-yihui-taskflow/snapshot"

Documentation

CLAWHUB

7,688 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: taskflow
description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
metadata: { "openclaw": { "emoji": "🪝" } }
---
tags:
  - workflow
  - orchestration
  - task-management
compatibility: openclaw
license: MIT


# TaskFlow

Use 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.

## When to use it

- Multi-step background work with one owner
- Work that waits on detached ACP or subagent tasks
- Jobs that may need to emit one clear update back to the owner
- Jobs that need small persisted state between steps
- Plugin or tool work that must survive restarts and revision conflicts cleanly

## What TaskFlow owns

- flow identity
- owner session and requester origin
- `currentStep`, `stateJson`, and `waitJson`
- linked child tasks and their parent flow id
- finish, fail, cancel, waiting, and blocked state
- revision tracking for conflict-safe mutations

It does **not** own branching or business logic. Put that in Lobster, acpx, or the calling code.

## Current runtime shape

Canonical plugin/runtime entrypoint:

- `api.runtime.tasks.flow`
- `api.runtime.taskFlow` still exists as an alias, but `api.runtime.tasks.flow` is the canonical shape

Binding:

- `api.runtime.tasks.flow.fromToolContext(ctx)` when you already have trusted tool context with `sessionKey`
- `api.runtime.tasks.flow.bindSession({ sessionKey, requesterOrigin })` when your binding layer already resolved the session and delivery context

Managed-flow lifecycle:

1. `createManaged(...)`
2. `runTask(...)`
3. `setWaiting(...)` when waiting on a person or an external system
4. `resume(...)` when work can continue
5. `finish(...)` or `fail(...)`
6. `requestCancel(...)` or `cancel(...)` when the whole job should stop

## Design constraints

- Use **managed** TaskFlows when your code owns the orchestration.
- One-task **mirrored** flows are created by core runtime for detached ACP/subagent work; this skill is mainly about managed flows.
- Treat `stateJson` as the persisted state bag. There is no separate `setFlowOutput` or `appendFlowOutput` API.
- Every mutating method after creation is revision-checked. Carry forward the latest `flow.revision` after each successful mutation.
- `runTask(...)` links the child task to the flow. Use it instead of manually creating detached tasks when you want parent orchestration.

## Example shape

```ts
const taskFlow = api.runtime.tasks.flow.fromToolContext(ctx);

const created = taskFlow.createManaged({
  controllerId: "my-plugin/inbox-triage",
  goal: "triage inbox",
  currentStep: "classify",
  stateJson

_meta.json

{
  "ownerId": "kn75agxmr0x2w8x7206mwrwrwn85c6mz",
  "slug": "yihui-taskflow",
  "version": "1.0.0",
  "publishedAt": 1777361357829
}

skill-card.md

## Description:

Use when work should span one or more detached tasks but still behave like one job with a single owner context.

This skill is ready for commercial/non-commercial use.

## Publisher:

[1yihui](https://clawhub.ai/user/1yihui)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent builders use TaskFlow to coordinate durable multi-step work that can link detached child tasks, persist small resume state, wait on people or external systems, and return one owner-facing result.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Workflows can persist small state or waiting metadata that may include sensitive content if callers place it there.

Mitigation: Store only the minimum state required to resume, and avoid placing sensitive content in stateJson or waitJson unless it is necessary.

Risk: Linked child tasks may continue running as part of durable multi-step work if cancellation is not handled deliberately.

Mitigation: Use requestCancel when scheduling should stop, use cancel when active linked child tasks should also be cancelled, and inspect task summaries during orchestration.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/1yihui/skills/yihui-taskflow)

## Skill Output:

**Output Type(s):** [guidance, code, configuration]

**Output Format:** [Markdown guidance with TypeScript examples and API usage patterns]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces implementation guidance for durable flow identity, child-task linkage, waiting state, revision-checked mutations, and cancellation handling.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/1yihui/skills/yihui-taskflow",
      "sourceUrl": "https://clawhub.ai/1yihui/skills/yihui-taskflow",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T06:32:49.242Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-1yihui-yihui-taskflow/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-1yihui-yihui-taskflow/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T06:32:49.242Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.1K downloads",
      "href": "https://clawhub.ai/1yihui/yihui-taskflow",
      "sourceUrl": "https://clawhub.ai/1yihui/yihui-taskflow",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T06:32:49.242Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.0.0",
      "href": "https://clawhub.ai/1yihui/yihui-taskflow",
      "sourceUrl": "https://clawhub.ai/1yihui/yihui-taskflow",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-28T07:29:17.829Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-1yihui-yihui-taskflow/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-1yihui-yihui-taskflow/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.0.0",
      "description": "Initial release",
      "href": "https://clawhub.ai/1yihui/yihui-taskflow",
      "sourceUrl": "https://clawhub.ai/1yihui/yihui-taskflow",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-28T07:29:17.829Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to taskflow and adjacent AI workflows.