← ClaudeAtlas

workflow-composerlisted

Write and debug workflow scripts for Claude Code's Workflow tool: single .js files in which deterministic JavaScript drives fleets of fresh-context subagents through agent(), parallel(), pipeline(), and phase(). Invoke for any request to build, generate, draft, repair, or restructure such a workflow ("I want a workflow that…", "turn this process into a workflow", "set up a multi-agent pipeline for X", editing files under .claude/workflows/), for questions about the script format — the meta literal, the orchestration primitives, structured-output schemas, the no-nondeterminism rules — and for diagnosing a workflow that launched with an error or produced wrong output. Fire it too when a request merely DESCRIBES a repeatable multi-stage or fan-out job that deserves packaging as a workflow, with or without the word. Teaches the bundled @workflow-toolbox TypeScript pattern toolkit as the standard library for workflows that will be kept and maintained. Out of scope: simply launching an already-written workflow, and
home-dev-lab/workflow-toolbox · ★ 0 · AI & Automation · score 62
Install: claude install-skill home-dev-lab/workflow-toolbox
# Authoring workflows for Claude Code's Workflow tool A workflow moves a multi-step plan out of the conversation and into code. Normally Claude is the orchestrator: it decides turn by turn what subagent to spawn, and every intermediate result lands back in its context. A workflow inverts that — a script holds the plan, the runtime executes it in isolation, and intermediate results stay in script variables. Only the leaf `agent()` calls spend model tokens; the loops, conditionals, and fan-out are plain deterministic JavaScript. There are **two ways to author one**, and choosing correctly is the first decision: - **Toolkit path (`@workflow-toolbox`)** — for workflows that will be **kept, re-run, and maintained**. You write a typed TypeScript file against a tested pattern library and compile it to a self-contained `.js` artifact. This is the default for anything repeatable. See [the toolkit path](#the-toolkit-path-repeatable-workflows). - **Raw `.js` path** — for **one-offs**, for shapes that fit none of the patterns, or when the toolkit's build chain is not available. You hand-write the orchestrator directly against the runtime globals. See [the raw path](#the-raw-authoring-path-one-offs). Two reference files carry the deep material — read them when a step points you there: - `references/api-reference.md` — every global, option, cap, and constant, each tagged with its evidence tier (documented / observed / verified). - `references/patterns.md` — the seven orche