agent-designer – skill Agent & Tự động hóa cho agent AI
Dùng khi người dùng yêu cầu thiết kế hệ thống đa agent, chọn mẫu điều phối (supervisor/swarm/pipeline), tạo schema công cụ cho agent, hoặc đánh giá nhật ký thực thi agent về chi phí, độ trễ và nút thắt lỗi. Ví dụ: 'thiết kế kiến trúc agent cho tự động hóa nghiên cứu', 'tạo schema công cụ Anthropic
Cài skill agent-designer bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/agent-designer-7369d.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /agent-designer – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/agent-designer-7369d.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $agent-designer – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/agent-designer-7369d.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /agent-designer – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/agent-designer-7369d.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /agent-designer – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 archEmits 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 toolsEmits 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 evalEmits 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 depthreferences/tool_design_best_practices.md— schema, idempotency, error-handling rulesreferences/evaluation_methodology.md— metric definitions the evaluator implements
Skill liên quan
- skill-digester – Xem xét và cải thiện trường mô tả SKILL.md của kỹ năng DeepCode khác, và hướng dẫn cài…
- activecampaign-automation – Tự động hóa các tác vụ ActiveCampaign qua Rube MCP (Composio): quản lý liên hệ, thẻ…
- agent-harness – Biến bất kỳ thư mục skill nào của một lĩnh vực thành vòng lặp agent có giới hạn: biên…
- agent-launcher-orchestrator – Dùng khi người dùng muốn xây dựng, khởi chạy, chấm điểm hoặc lên lịch một Claude Managed…
- agent-memory – Dùng khi file CLAUDE.md của dự án đã dài đến mức không ai đọc hết và bạn muốn agent tự…
- bb-methodology – Dùng ở ĐẦU mỗi phiên săn bug bounty, khi chuyển mục tiêu, hoặc khi không biết nên làm gì…
- agent-creator – Tạo subagent AI tùy chỉnh với cấu trúc plugin đúng chuẩn, sinh persona và skill định…
- agent-evals – Xây dựng bộ đánh giá tự động cho AI agent dựa trên golden dataset, rubric và cổng hồi…