/cs:workflow-build <task-description> — Design and write a deterministic Claude Code workflow (.js). Opens with intake questions, infers-and-proposes a topology
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-b97e43e2391c ,按照其中的说明把「cs-workflow-build」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Command: /cs:workflow-build <task-description>
Designs a deterministic multi-agent workflow for Claude Code's Workflow tool. Always opens with intake; never writes a file before the topology is confirmed.
.claude/workflows/*.js fileAsk the opening question set. Lead with #1.
python ../skills/workflow-builder/scripts/workflow_intake.py --task "<their request>" \
--units unknown --stages unknown --needs-all unknown --structured unknown
Present the result as "here's what I'd build and why": recommended topology (+ runner-up), per-stage model picks, a budget guard, and the rationale for each choice. Then ask only "what should I change?"
python ../skills/workflow-builder/scripts/scaffold_workflow.py \
--topology <fan-out|pipeline|barrier|loop|judge-panel> --name <name> --description "..." \
> .claude/workflows/<name>.js
python ../skills/workflow-builder/scripts/validate_workflow.py .claude/workflows/<name>.js
Fix every FAIL. WARNs need a one-line justification.
export CLAUDE_CODE_WORKFLOWS=1 # the feature is off by default
# Save under .claude/workflows/, then launch + monitor via /workflows.
# P = pause/resume, X = skip a sub-agent. Failed agents retry automatically.
meta is a pure literal and the first statement — no variables, spreads, template strings, or calls.Date.now(), Math.random(), or argless new Date() — they break resume.agent().parallel() takes thunks (() => agent(...)); default to pipeline() unless a stage needs the whole prior set.budget.remaining().results.filter(Boolean) before using parallel/pipeline output.# Workflow Build: <name>
## The Decision
[intake | recommend | scaffold | validate | run]
## Recommended Topology
[fan-out | pipeline | barrier | loop | judge-panel] — why
## Model Plan
[per-stage model + reason]
## Validator Verdict
🟢 PASS | 🟡 WARN (justified) | 🔴 FAIL (with line numbers)
## Next Steps
[3 concrete actions]
cs-workflow-architectworkflow-builder/cs:write-a-skill (authoring skills, not workflows)Version: 1.0.0