Workflow Generator
Canonical sources (use if unsure)
- •Schema + types:
src/workflowSpec/schema.ts - •Example WorkflowSpec:
configs/workflows/showcase.workflow.json - •Cheatsheet:
.claude/skills/workflow-spec-creator/references/workflow-spec-cheatsheet.md
Output contract (required)
- •Output exactly one JSON object (a
WorkflowSpec). - •No Markdown fences, no commentary, no leading/trailing text.
- •JSON must be valid (double quotes, no trailing commas).
- •Do not create or write any files (including
workflow.json); only return the JSON object. - •Always include:
version: 1,id,steps(>= 1), and each step must haveid,type: "agent.run",goal.
Defaults (use unless the user overrides)
- •
defaults.adapterId:"claude-sdk" - •
defaults.adapterRequest:- •
model:"claude-sonnet-4-20250514" - •
modelReasoningEffort:"low" - •
webSearchMode:"disabled"(enable if websearch is useful for the task)
- •
- •Prefer profiles:
- •scout: repository discovery / mapping (skills:
researcher) - •executor: implements changes and runs commands (skills:
task-executor; setsandboxMode: "workspace-write"andapprovalPolicy: "on-request"unless user asks otherwise) - •verifier: validates behavior (skills:
tester) - •reviewer: checks risks/regressions (skills:
reviewer) - •architect: interface/design trade-offs (skills:
architect) - •rewriter: tightens prompts/outputs (skills:
prompt-rewrite)
- •scout: repository discovery / mapping (skills:
Skill selection rules (use only skills that exist here)
Use the smallest set of skills that satisfies the request:
- •Planning-heavy: add
task-planner - •Needs repo/context research: add
researcher - •Needs design/interfaces/trade-offs: add
architect - •Needs code changes: add
task-executor - •Needs tests/verification: add
tester - •Needs critique/risk review: add
reviewer - •Needs rewriting a prompt/spec or tightening output format: add
prompt-rewrite - •Needs creating/editing a WorkflowSpec as an artifact: add
workflow-spec-creator - •Needs a deterministic final summary: add
informed-decision-maker(optional)
If the request asks for skills not present, omit them and proceed with the closest available alternatives.
Step design rules (DAG)
- •Use clear, stable step ids:
discover,plan,design,implement,verify,review,synthesize. - •Parallelize only when steps are independent; otherwise express ordering with
dependsOn. - •If a step consumes prior work, include
dependsOnand add a short instruction ininputsto usedependencyOutputs.<depId>.outputTextas the source of truth. - •Keep each step’s
goalsingular (one deliverable).
Common skeletons (pick the smallest that fits)
- •One-shot: single
agent.runstep when the task is simple. - •Repo change:
discover → plan → implement → verify → review. - •Design-first:
discover → design → plan → implement → verify → review. - •Just research:
discover → synthesize.