← Back to repository

agent-workflow-designer

设计生产级多Agent工作流,明确选择顺序、并行或分层模式,定义交接契约、故障处理与成本/上下文控制。适用于架构多步骤Agent流水线、在单Agent与多Agent方案间选型,…

slug: agent-workflow-designer v1.0.0 Engineering Output By Alireza Rezvani 4 files · 8.5 KB Updated 2026-10-20 Measured +2.5% ↓ 0 downloads 💬 0 reviews Quality 88/100 by Alireza Rezvani
Sign in to download (1 shrimp) Reviews (0) View JSON
Benchmark 小幅提升 deepseek-chat · 3 tasks × 2 samples × 3 repeats · 单轮 · 盲评 Methodology →
+2.5%
Average score gap in blind review,
with vs. without the skill.
n=3 次重复均值,区间 0.2% ~ 6.2%
Bare model 88.5
With skill 90.6
Tested 2026-10-20 3 tasks × 2 samples Blind review · same model, same params Pure conversation — no real commands run
Show per-task details (3)
Task 1 · 我们的客服系统要处理退款、技术咨询、投诉三类请求,单Agent总是答错类型。帮我设计一个router模式的多Agent工作流,包含意图分类器、三个专家Agent和兜底Agent。要有交接字段定义、超时重试策略,输出JSON配置。
Sample 1 Bare 85.0 vs Skilled 88.0 X设计更精细、风险控制更强但输出被截断;Y完整可执行、工程细节更全,整体质量接近。
Sample 2 Bare 88.0 vs Skilled 90.0 两份质量接近:X在超时重试精细度与可观测性上更强,Y在交接字段规范、工具与护栏定义上更完整。
Task 2 · 我要搭建一个内容生产流水线:选题→调研→初稿→事实核查→润色,每步都可能失败。请设计sequential工作流,说明每步的输入输出契约、失败重试次数和上下文传递方式,并给出成本控制建议,输出一份可直接落地的配置文档。
Sample 1 Bare 88.0 vs Skilled 92.0 X在契约严谨性、上下文传递与成本杠杆上更精细且文档完整;Y在降级分级与可观测性上更实用,但配置示例截断影响直接落地。
Sample 2 Bare 88.0 vs Skilled 92.0 两份均高质量,X 在步骤间输入输出契约的字段级精确度、上下文白名单裁剪和回环熔断设计上更严谨,Y 在降级出口与人工队列设计上更丰富但落地细节稍粗。
Task 3 · 我们要做代码审查Agent:生成器改代码,评审员打分,不合格就打回重写。请设计evaluator循环工作流,定义评分阈值、最大迭代轮数、打回时的反馈传递字段,以及防止无限循环的终止条件,输出带注释的JSON骨架。
Sample 1 Bare 90.0 vs Skilled 88.0 两份质量接近;Y 在阈值设计(维度短板否决)、防循环机制(issue 重复、代码哈希)和反馈分层上更细致可执行,X 的终止条件存在一处语义瑕疵。
Sample 2 Bare 93.0 vs Skilled 88.0 两份均覆盖全部要求,X 在防放水(gate 重算分数、缺陷 ID 去重)与终止条件严谨度上更强,Y 存在 JSON 合法性瑕疵与硬失败规则表达不规范。
Community tests Run by users with their own API keys — models and settings vary, for rough comparison only Sign in to test with my key →
Nobody has run it yet. Plug in your own key and test with your daily model — results stay in your records and never enter the official board.
—
☆☆☆☆☆
No ratings yet — tell it like it is after you've used it

One-line install

Downloading requires signing in first (free registration — just a username and password).Sign in →

Reviews · 0

Sign in to post a review.Sign in →

No reviews yet — be the first to share.

Quality check · 88/100

13 automated checks on metadata, examples, executability and completeness, for authors to self-improve; does not affect user ratings.

Version history

SKILL.md content

# Agent Workflow Designer

**Tier:** POWERFUL  
**Category:** Engineering  
**Domain:** Multi-Agent Systems / AI Orchestration

---

## Overview

Design production-grade multi-agent workflows with clear pattern choice, handoff contracts, failure handling, and cost/context controls.

## Core Capabilities

- Workflow pattern selection for multi-step agent systems
- Skeleton config generation for fast workflow bootstrapping
- Context and cost discipline across long-running flows
- Error recovery and retry strategy scaffolding
- Documentation pointers for operational pattern tradeoffs

---

## When to Use

- A single prompt is insufficient for task complexity
- You need specialist agents with explicit boundaries
- You want deterministic workflow structure before implementation
- You need validation loops for quality or safety gates

---

## Quick Start

```bash
# Generate a sequential workflow skeleton
python3 scripts/workflow_scaffolder.py sequential --name content-pipeline

# Generate an orchestrator workflow and save it
python3 scripts/workflow_scaffolder.py orchestrator --name incident-triage --output workflows/incident-triage.json
```

---

## Pattern Map

- `sequential`: strict step-by-step dependency chain
- `parallel`: fan-out/fan-in for independent subtasks
- `router`: dispatch by intent/type with fallback
- `orchestrator`: planner coordinates specialists with dependencies
- `evaluator`: generator + quality gate loop

Detailed templates: `references/workflow-patterns.md`

---

## Recommended Workflow

1. Select pattern based on dependency shape and risk profile.
2. Scaffold config via `scripts/workflow_scaffolder.py`.
3. Define handoff contract fields for every edge.
4. Add retry/timeouts and output validation gates.
5. Dry-run with small context budgets before scaling.

---

## Common Pitfalls

- Over-orchestrating tasks solvable by one well-structured prompt
- Missing timeout/retry policies for external-model calls
- Passing full upstream context instead of targeted artifacts
- Ignoring per-step cost accumulation

## Best Practices

1. Start with the smallest pattern that can satisfy requirements.
2. Keep handoff payloads explicit and bounded.
3. Validate intermediate outputs before fan-in synthesis.
4. Enforce budget and timeout limits in every step.