插件低风险未认领

workflow-builder

Workflow-builder skill: design and write deterministic multi-agent workflow scripts (.js files in .claude/workflows/) for Claude Code's Workflow tool (CLAUDE_CODE_WORKFLOWS=1, /workflows). Every session opens with an intake question set; when the user is vague, a stdlib recommendation engine infers and proposes a topology with rationale instead of stalling. Ships 3 stdlib Python tools (intake recommendation engine, .js validator enforcing the pure-literal-meta / no-non-determinism / guarded-loop / parallel-thunk rules, topology scaffolder), 3 references citing 7-8 authoritative sources each (full API surface, orchestration patterns, decision + intake guide), templates + a runnable example, cs-workflow-architect persona agent + /cs-workflow-build slash command. Use when building, scaffolding, or running a custom Claude Code workflow or orchestrating sub-agents (fan-out, pipeline, loop, judge-panel).

alirezarezvanialirezarezvani/workflow-builder-plugin★ 30k版本 2.14.5更新于 2026年11月17日

说明

Design and write deterministic multi-agent workflow scripts for Claude Code's Workflow tool — .js files in .claude/workflows/ that fan work out to fresh-context sub-agents under plain JavaScript control flow. Only leaf agent() calls spend tokens, so the main session stays clean and the run is resumable.

Targets the Workflow tool introduced in Claude Code v2.1.147 (gated behind CLAUDE_CODE_WORKFLOWS=1, browsable via /workflows).

The intake-first rule

Every workflow-creation session opens with an intake question set (what task, what unit of work, known list vs. loop, barrier vs. pipeline, structured output, depth). When the user is vague, the skill does not stall or interrogate in a loop — it runs a deterministic recommendation engine that infers a topology and presents it with the reasoning ("here's what I'd build and why"), then confirms before writing any file.

What's in the box

Component Where What it does
Intake recommendation engine skills/workflow-builder/scripts/workflow_intake.py Classifies a (vague) task → recommended topology + runner-up + per-stage model plan + budget guard + a one-line rationale per choice.
Workflow validator skills/workflow-builder/scripts/validate_workflow.py Stdlib linter for .js workflows: pure-literal meta, no Date.now()/Math.random()/argless new Date(), no FS/Node APIs in the orchestrator, parallel() thunks, guarded loops, filter(Boolean), size cap. PASS / WARN / FAIL with line numbers.
Scaffolder skills/workflow-builder/scripts/scaffold_workflow.py Emits a runnable starter for any of 5 topologies (fan-out, pipeline, barrier, loop, judge-panel).
3 references skills/workflow-builder/references/ API reference · orchestration patterns · decision + intake guide (7-8 sources each).
Templates + example skills/workflow-builder/assets/ Fan-out / pipeline / loop starters + a complete PR-triage workflow.
Persona agent agents/cs-workflow-architect.md Design-first interrogator that refuses to write before the topology is confirmed.
Slash command commands/cs-workflow-build.md /cs-workflow-build <task> — runs the full intake → scaffold → validate flow.

Quick start

/plugin marketplace add alirezarezvani/claude-skills
/plugin install workflow-builder@claude-code-skills
cd skills/workflow-builder

# 1. Turn a vague request into a concrete proposal
python scripts/workflow_intake.py --task "review my open PRs for bugs"

# 2. Scaffold the confirmed topology
python scripts/scaffold_workflow.py --topology pipeline --name pr-triage \
  --description "Triage open PRs" > /tmp/pr-triage.js

# 3. Validate before running
python scripts/validate_workflow.py /tmp/pr-triage.js

All three tools run with --sample (no args) and --help.

Running the workflows it writes

export CLAUDE_CODE_WORKFLOWS=1          # the feature is off by default
# save the .js under .claude/workflows/ , then launch + watch via /workflows
# P = pause/resume , X = skip a sub-agent ; failed agents retry automatically

Attribution

Conceptually inspired by Ray Amjad's claude-code-workflow-creator. All content here was written for this repo against Claude Code's publicly-documented Workflow tool API; no text was copied verbatim.

License

MIT.

宿主

宿主装上后有
Claude Code技能 1助手 1命令 1
Codex只装技能
OpenCode只装技能

成员1 个技能 · 1 个助手

  • workflow-builderUse when writing or running a Claude Code Workflow-tool script (.js in .claude/workflows/) for fan-out, pipeline, loop or judge-panel sub-agents. Gathers intent with workflow_intake.py, scaffolds with scaffold_workflow.py and validates with validate_workflow.py.
  • cs-workflow-architect助手Workflow-architect persona. Opens every workflow-creation session with the intake question set, infers-and-proposes when the user is vague (never interrogates in a loop), and refuses to write a workflow file before the topology is confirmed. Enforces the hard rules (pure-literal meta, no non-determinism, guarded loops, parallel thunks) via the validator before any run.

权限

完整安装
2.14.5
声明检测
运行代码—nodepython
安装—无
安装时运行脚本—无
网络—alirezarezvani.comgithub.com
需要的凭据—无
工作区外的路径—无
智能体工具—无

检查

低风险 · 没有发现需要提醒的地方。

未经人工审核 · 已做规则检查;模型审核尚未开启。

文件20 个文件 · 75.4 KB

  • README.md3.4 KB
.claude-plugin/2
  • authoring-notes.json458 B
  • plugin.json1.3 KB
agents/1
  • cs-workflow-architect.md5.0 KB
commands/1
  • cs-workflow-build.md3.6 KB
skills/workflow-builder/2
  • README.md1.4 KB
  • SKILL.md5.2 KB
skills/workflow-builder/assets/examples/1
  • pr-triage.js3.5 KB
skills/workflow-builder/assets/templates/3
  • fan-out.js1.1 KB
  • loop-until-budget.js1.2 KB
  • pipeline.js1.2 KB
skills/workflow-builder/expected_outputs/3
  • intake_pr_review.json1.2 KB
  • scaffold_pipeline.js1.2 KB
  • validate_sample.txt555 B
skills/workflow-builder/references/3
  • api_reference.md6.3 KB
  • decision_and_intake_guide.md5.8 KB
  • orchestration_patterns.md5.4 KB
skills/workflow-builder/scripts/3
  • scaffold_workflow.py6.7 KB
  • validate_workflow.py10.7 KB
  • workflow_intake.py10.2 KB

版本

  1. #12.14.5最新2026年11月17日

在 Codeg 中打开

也可以复制地址,在 Codeg 的「发现」里搜索。

alirezarezvani/workflow-builder-plugin

还没有 Codeg?下载