Coding

TaskFlow-ClawHub Publish 编排技能

Try it

Orchestrate a TaskFlow-managed ingestion job that validates, packages, and publishes an OpenClaw skill folder to the ClawHub registry, then verifies the published artifact. Use when a piece of digital content (an agent skill) must move through a durable multi-step flow and land in the ClawHub resource center in a reproducible way.

What it does

Orchestrate a TaskFlow-managed ingestion job that validates, packages, and publishes an OpenClaw skill folder to the ClawHub registry, then verifies the published artifact. Use when a piece of digital content (an agent skill) must move through a durable multi-step flow and land in the ClawHub resource center in a reproducible way.

The skill document

TaskFlow + ClawHub publish

This skill documents a reproducible two-tool pattern:

  • TaskFlow owns the process: flow identity, owner session, child-task linkage, waiting/resuming, and revision-checked state transitions.
  • ClawHub owns the ingestion: it takes a validated skill folder and publishes it to the ClawHub resource center so it is installable by slug.

The TaskFlow layer keeps the human-facing orchestration (which step is running, what state must survive a restart, what we are waiting on). The ClawHub layer performs the single irreversible write to the resource center.

When to use

  • Publishing any agent skill folder whose ingestion must be auditable and resumable across steps.
  • Multi-step ingestion jobs that may wait on human review or an external scanner result before the final publish.

Inputs

  • skillFolder: absolute or workspace-relative path to a skill folder that contains a valid SKILL.md frontmatter block.
  • slug, name, version, changelog: ClawHub publish arguments.

Outputs

  • A TaskFlow flowId with persisted stateJson capturing the skill folder, chosen publish arguments, and the resulting published version / URL.
  • A published ClawHub skill installable via clawhub install .

Execution order

  1. validate (TaskFlow child task)
    • Confirm SKILL.md exists and has name + description.
    • Run clawhub publish --dry-run --json and parse the preview.
    • Persist { validated: true, dryRun: } into stateJson.
  2. publish (TaskFlow child task, irreversible)
    • Run clawhub publish --slug --name --version --changelog --json.
    • Persist the returned version and slug into stateJson.
  3. verify (TaskFlow child task)
    • Run clawhub inspect and confirm the version matches.
    • Optionally install into a throwaway dir: clawhub install --workdir .
  4. finish
    • taskFlow.finish({ flowId, expectedRevision, stateJson }).

Notes

  • Carry flow.revision forward after every mutating call; mutations are revision-checked.
  • The publish step is the only externally irreversible step; keep it behind the dry-run validation step so failures fail-fast.
  • See references/publish.sh for the concrete commands and references/flow.ts for the TaskFlow orchestration shape.

Related skills

Step-by-step runbook for pairing TaskFlow (business process orchestration) with ClawHub (skill registry ingestion) to publish a digital skill artifact to the ClawHub resource center. Use when you need a repeatable, auditable process-to-upload pipeline.

1 installs

Minimal demonstration skill for verifying a ClawHub publish flow. Prints a configurable greeting and the current date so the publish/ingest path can be exercised with a safe, side-effect-free artifact.

1 installs

Reference skill demonstrating TaskFlow + ClawHub tooling for publishing digital content to the resource hub.

2 installs

Before publishing to ClawHub, validate a skill-shaped folder (required files, frontmatter, size, auth, slug availability, and a dry-run publish) with one script. Use when authoring or packaging a skill and you want to catch structural problems before the real publish.

Prepare and publish a local skill to ClawHub and GitHub using a workflow that keeps the local publish directory clean. Use this skill when the user wants to...

19 installs

Prepare, safety-review, version, commit, and publish local Codex skills through a GitHub-backed release flow and ClawHub CLI. Use when the user asks to host,...