跳到正文
Skillpedia
智能体29k · #9573

agent-designer

它能做什么

它帮助规划多个 AI 智能体协同工作的系统,例如监督者、流水线或群体模式,并检查它们的表现。适合设计多智能体架构的工程师。

适用场景

  • ✓当你正在设计一个由多个协作 AI 智能体组成的系统时。
  • ✓当你需要以各服务商可直接使用的格式为智能体提供工具定义时。
  • ✓当你想阅读智能体的运行日志,找出成本、延迟或失败的瓶颈时。

技能链接

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/agent-designer/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/agent-designer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想设计一个处理客户支持工单的多智能体系统,并想知道哪种模式最合适。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体借助规划脚本,将你的需求与常见模式进行比对打分,生成工具架构,并评估运行日志中的成功率、延迟和成本。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Agent Designer — Multi-Agent System Architecture

Design, schema-generate, and evaluate multi-agent systems with three deterministic tools. The scripts are the workflow — do not freehand an architecture when the planner can score one from requirements.

When to use

  • Designing a new multi-agent system from requirements (pattern choice, roles, comms)
  • Generating provider-ready tool schemas (Anthropic + OpenAI formats) from plain tool descriptions
  • Evaluating execution logs: success rate, latency distribution, cost, bottlenecks

When NOT to use: Claude Code Workflow-tool automations → workflow-builder; single-agent workflow scaffolds → agent-workflow-designer; multi-agent fan-out at runtime → agenthub.

Pattern decision table

Choose When Watch out for
Single agent One bounded task, < ~5 tools Don't add agents you don't need
Supervisor Central decomposition, specialists report back Supervisor becomes the bottleneck
Pipeline Strictly sequential stages with handoffs Rigid order; slowest stage gates throughput
Hierarchical Multiple org layers, > ~8 agents Communication overhead per level
Swarm Parallel peers, fault tolerance over predictability Hard to debug; needs consensus rules

The planner applies this scoring deterministically — run it rather than picking by feel.

Workflow

All paths relative to this skill folder. Each step's JSON output is the next step's design input.

1. Design the architecture

Write a requirements JSON (copy assets/sample_system_requirements.json — keys: goal, tasks[], constraints{max_response_time, budget_per_task, concurrent_tasks}, team_size):

python3 agent_planner.py requirements.json --format json -o arch

Emits arch.json with architecture_design (pattern, agents, communication links), mermaid_diagram, and implementation_roadmap. Read architecture_design.pattern and the per-agent role list; present the mermaid diagram to the user.

2. Generate tool schemas

Describe each agent's tools in plain JSON (copy assets/sample_tool_descriptions.json), then:

python3 tool_schema_generator.py tool_descriptions.json --validate -o tools

Emits tools.json (tool_schemas, validation_summary) plus provider-specific tools_anthropic.json / tools_openai.json. Gate: every tool must print ✓ Valid. Fix any invalid schema before proceeding — never hand an agent an unvalidated schema.

3. Evaluate execution logs

Once the system runs (or against assets/sample_execution_logs.json for a dry run):

python3 agent_evaluator.py execution_logs.json --detailed -o eval

Emits eval.json with summary, agent_metrics, bottleneck_analysis, error_analysis, cost_breakdown, sla_compliance, and optimization_recommendations, plus split files (eval_errors.json, eval_recommendations.json).

4. Verification loop

The design is not done until:

  1. tool_schema_generator.py --validate reports 0 invalid schemas.
  2. agent_evaluator.py on a pilot run reports 0 critical issues (the tool prints CRITICAL: N critical issues when found). If N > 0, apply the top item in eval_recommendations.json, re-run the pilot, and re-evaluate.
  3. Compare your outputs against expected_outputs/ to confirm the schema shape you're consuming hasn't drifted.

References

  • references/agent_architecture_patterns.md — pattern trade-offs in depth
  • references/tool_design_best_practices.md — schema, idempotency, error-handling rules
  • references/evaluation_methodology.md — metric definitions the evaluator implements
常见问题

它可以从哪些模式中选择?

单智能体、监督者、流水线、层级和群体模式。

它适用于 Claude Code 的工作流文件吗?

不适用。Claude Code 中的工作流自动化由另一个技能负责。

它能分析我的智能体表现吗?

能。它读取执行日志,并报告成功率、延迟分布、成本和瓶颈。

详情

作者的原始描述

Use when designing a multi-agent system (supervisor, swarm, pipeline), writing agent tool schemas, or reading agent run logs for cost, latency or failure bottlenecks. Not for Claude Code workflow files (workflow-builder).

repo: alirezarezvani/claude-skills

热度

GitHub 星标
29k
排名
#9573
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能