← ClaudeAtlas

authoring-workflowslisted

Use when you are about to call the Workflow tool, or author / debug / launch a Claude Code dynamic-workflow script — 当你要写 workflow 脚本时 — even if you think you already know the API. Use when you catch yourself guessing the determinism or resume rules of the workflow engine, reaching for parallel() / pipeline() without checking the shape, hand-writing a validation linter, or about to relaunch after a harness error. Use before you guess, not after a failed run.
nemori-ai/cc-master · ★ 0 · AI & Automation · score 72
Install: claude install-skill nemori-ai/cc-master
# Authoring dynamic workflows A dynamic workflow moves the "what runs next" decision out of the LLM and into a deterministic JavaScript script that a runtime executes in the background. Use this skill when you are about to write one. The discipline here is small: **be honest about whether you need a workflow, pick the paradigm by its shape, and write to the runtime's own validation contract — the harness is the authoritative gate, so you don't reimplement it.** ## 1. The honest test — do you even need a workflow? A workflow earns its keep when a task needs **tens-to-hundreds of agents** coordinated, with intermediate results kept *out* of your context. It is overkill otherwise. - A two-line bugfix does **not** need a five-agent review panel. - A single lookup does **not** need a fan-out. - If the work is one reasoning chain with one deliverable, dispatch a single sub-agent — not a workflow. Reach for a workflow only when at least one of these is true: the work fans out into many independent units, the intermediate output would flood your context, or you want a reusable quality pattern (adversarial cross-review, judge panel). If none hold, stop here. ## 2. Paradigm decision tree Pick by the **shape** of the work, not by taste. (Full semantics in `references/mechanism.md`; full pattern catalog in `references/patterns.md`.) - **Independent tasks AND you need ALL results together** → **fan-out** (`parallel()`, a barrier). Template: `assets/templates/fan-out.js`. - **M