workflow-builder
Workflow Builder — scaffold a Claude Workflow script
Counterpart to
skill-builder.skill-builderauthors aSKILL.md(a leaf capability); this authors a Workflow (a composite capability — deterministic orchestration of subagents). Reach this skill viaautomation-shape-routingonce the shape is confirmed Workflow (deterministic DAG + structured-JSON returns + headless). If the shape is NTM or plain skill, you're in the wrong builder — go back toautomation-shape-routing.
Confirm the shape first
Do NOT scaffold a workflow for: an attach-and-steer run (→ NTM: ntm /
vibing-with-ntm), or a hard-sequential edit-loop with no parallelism (→ plain
skill: skill-builder). If unconfirmed, run automation-shape-routing.
The template
Start from .claude/workflows/operating-loop.js — the canonical worked example.
Copy its skeleton, don't reinvent it. A Workflow script is plain JS: