How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Agent Workflow Designer (Engineering domain).

Designs multi-agent workflow DAGs (routing, hand-offs, state, retries) and validates and costs them before build. Use when planning a pipeline of specialised agents, fan-out/fan-in, or a lead with subagents.

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,

## Your Key Capabilities
- Agents for every verb
- Hand-offs as free text
- No failure path

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/agent-workflow-designer

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/agent-workflow-designer ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/agent-workflow-designer your-project/
# The skill is available in your Codex workspace at:
.codex/skills/agent-workflow-designer/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/agent-workflow-designer your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/agent-workflow-designer/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/agent-workflow-designer your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/agent-workflow-designer/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/agent-workflow-designer your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/agent-workflow-designer your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/agent-workflow-designer

Run Python Tools

python engineering/agent-workflow-designer/scripts/tool_name.py --help

Quick Start

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: 1. `workflow_validator.py` exits 0 on the final workflow file. 2. Every step has an owner agent, a timeout and a retry or fallback rule. 3. The hand-off contract between steps (fields, types, done condition) is written down. 4. The cost for the expected run volume, at real rates, is within budget.

Related Skills in Engineering

View on GitHub