/engineering-advanced-skills:agent-workflow-designerfrom engineering-advanced-skills
Designs multi-agent workflow DAGs with routing, hand-offs, state management, and retries. Validates and costs workflows before build. Supports LangGraph, CrewAI, AutoGen, and Claude agent teams.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The agent designs multi-agent orchestration systems using five core patterns: sequential pipeline, parallel fan-out/fan-in, hierarchical delegation, event-driven reactor, and consensus validation. It implements agent routing strategies, circuit breaker reliability patterns, context window budgeting, and cost optimization across LangGraph, CrewAI, AutoGen, and Claude Code agent teams.
Before designing the workflow, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
What does the workflow look like?
│
├─ Linear: step A feeds step B feeds step C
│ └─ SEQUENTIAL PIPELINE
│ Best for: content pipelines, code review chains, data transformation
│
├─ Parallel: N independent tasks, then combine
│ └─ FAN-OUT / FAN-IN
│ Best for: competitive research, multi-source analysis, parallel code gen
│
├─ Tree: orchestrator breaks work into subtasks dynamically
│ └─ HIERARCHICAL DELEGATION
│ Best for: complex projects, open-ended research, code generation with planning
│
├─ Reactive: agents respond to events/triggers
│ └─ EVENT-DRIVEN REACTOR
│ Best for: monitoring, alerting, continuous integration, chat workflows
│
└─ Verification: multiple agents must agree on output
└─ CONSENSUS VALIDATION
Best for: high-stakes decisions, code review, fact checking, safety-critical output
Load the reference that matches the task — keep this file lean and pull detail on demand:
ContextBudget), and the cost optimization matrix. Read when deciding how requests reach agents and how to control spend.Design time only: these tools check and price a workflow file; they run no agents. To track a
live multi-agent run (spawned agents, a board, ranked results) use engineering/agenthub, which
reads its own agents/dependencies format rather than the steps/depends_on format below.
# 1. Validate the DAG: cycles, missing dependencies, unreachable steps, dead ends, duplicate ids
python3 scripts/workflow_validator.py assets/sample_workflow.json # exit 0, VALID
python3 scripts/workflow_validator.py assets/sample_workflow_flawed.json # exit 1, 4 errors
# 2. Draw it (Mermaid) with detected patterns; --annotate-models / --annotate-cost add labels
python3 scripts/workflow_visualizer.py assets/sample_workflow.json --annotate-models
# 3a. Price the step DAG per run and over N runs, with what-if model swaps
python3 scripts/cost_estimator.py assets/sample_workflow.json --runs 1000 --prices assets/sample_prices.json
python3 scripts/cost_estimator.py assets/sample_workflow.json --override-model claude-haiku-5-5
# 3b. Or compare a lead + scoped subagents topology against one strong agent
python3 scripts/multi_agent_cost_estimator.py --file assets/sample_multi_agent_design.json
Tools overview: which estimator. Use cost_estimator.py when you have the step DAG and per-step token
estimates (estimated_input_tokens, estimated_output_tokens, optional cached_input_tokens,
parallel_branches, retry_probability). Use multi_agent_cost_estimator.py earlier, when the
question is whether to split into subagents at all; it works on roles, call counts and price tiers.
Prices. Neither tool ships a provider price list, because prices change faster than the skill.
cost_estimator.py prices each model at your --prices rate (JSON {"model-id": {"input", "output", "cached_input"}} per 1M tokens; assets/sample_prices.json holds illustrative numbers only) and
otherwise at a placeholder rate for the tier its name suggests, and says so in the output.
multi_agent_cost_estimator.py takes --price tier=input/output. Copy current rates from the
provider's pricing page before quoting a dollar figure.
Exit codes. workflow_validator.py: 0 valid, 1 structural errors, 2 unreadable or
malformed input. The other three: 0 report printed, 2 unreadable or malformed input. All
accept --json and --stdin.
Done when this checklist holds:
workflow_validator.py exits 0 on the final workflow file.Mistake: A pipeline of seven agents where three would do, each hand-off losing context.
Why it happens: Splitting by verb ("research", "outline", "draft", "edit") feels like good design.
Instead: Split only where tools, permissions or parallelism differ. Run multi_agent_cost_estimator.py; keep the single loop if the split is not clearly cheaper or faster.
Mistake: Each agent passes the next one a paragraph of prose and hopes it contains what is needed. Why it happens: Free text works in the demo. Instead: Define a small return contract per step (fields, types, what "done" means) and validate it before the next step runs.
Mistake: A fan-out with no timeout, so one hung branch stalls the whole run, and no rule for partial results. Why it happens: Happy-path demos never hang. Instead: Give every step a timeout, a bounded retry and a fallback; decide up front whether fan-in proceeds with N-1 results.
scripts/workflow_validator.py, scripts/workflow_visualizer.py, scripts/cost_estimator.py, scripts/multi_agent_cost_estimator.py — the four CLIs above.assets/sample_workflow.json (valid), assets/sample_workflow_flawed.json (cycle + missing dependency), assets/sample_multi_agent_design.json, assets/sample_prices.json.references/ — pattern implementations, routing and cost, reliability, subagent scoping.references/subagent-scoping-and-orchestration.md).scripts/multi_agent_cost_estimator.py before committing, and keep the single loop if the multi-agent design isn't meaningfully cheaper or faster.This skill covers:
This skill does NOT cover:
engineering/agenthub)engineering/agent-designer)engineering/senior-ml-engineer)engineering/rag-architect)engineering/senior-cloud-architect)engineering/agent-designer — architecture pattern and roles that feed this DAG.engineering/agenthub — run-time board and result ranking for the agents designed here.engineering/agent-protocol — message and tool schema formats for the hand-offs.engineering/batch-api-orchestrator — when a step is a large offline batch rather than a live call.assets/sample_multi_agent_design.json (opens in a new tab)assets/sample_prices.json (opens in a new tab)assets/sample_workflow.json (opens in a new tab)assets/sample_workflow_flawed.json (opens in a new tab)references/orchestration-patterns.md (opens in a new tab)references/reliability-and-troubleshooting.md (opens in a new tab)references/routing-and-cost.md (opens in a new tab)references/subagent-scoping-and-orchestration.md (opens in a new tab)scripts/cost_estimator.py (opens in a new tab)scripts/multi_agent_cost_estimator.py (opens in a new tab)scripts/workflow_validator.py (opens in a new tab)scripts/workflow_visualizer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
multi-agent, orchestration, workflow-dag, routing, handoffs, state-management
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job