[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-4e8c0c08-9c73-4acc-a504-fd7660337f12":3,"$fZYEZfUEfTGebHJ9jeAMb263aaR2KPubY2OdasOEbxBg":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"4e8c0c08-9c73-4acc-a504-fd7660337f12","agent-designer","当用户请求设计多智能体系统、创建智能体架构、定义智能体通信模式或构建自主智能体工作流程时使用。","cat_life_career","mod_other","alirezarezvani,other","---\nname: \"agent-designer\"\ndescription: \"Use when the user asks to design multi-agent systems, create agent architectures, define agent communication patterns, or build autonomous agent workflows.\"\n---\n\n# Agent Designer - Multi-Agent System Architecture\n\n**Tier:** POWERFUL  \n**Category:** Engineering  \n**Tags:** AI agents, architecture, system design, orchestration, multi-agent systems\n\n## Overview\n\nAgent Designer is a comprehensive toolkit for designing, architecting, and evaluating multi-agent systems. It provides structured approaches to agent architecture patterns, tool design principles, communication strategies, and performance evaluation frameworks for building robust, scalable AI agent systems.\n\n## Core Capabilities\n\n### 1. Agent Architecture Patterns\n\n#### Single Agent Pattern\n- **Use Case:** Simple, focused tasks with clear boundaries\n- **Pros:** Minimal complexity, easy debugging, predictable behavior\n- **Cons:** Limited scalability, single point of failure\n- **Implementation:** Direct user-agent interaction with comprehensive tool access\n\n#### Supervisor Pattern\n- **Use Case:** Hierarchical task decomposition with centralized control\n- **Architecture:** One supervisor agent coordinating multiple specialist agents\n- **Pros:** Clear command structure, centralized decision making\n- **Cons:** Supervisor bottleneck, complex coordination logic\n- **Implementation:** Supervisor receives tasks, delegates to specialists, aggregates results\n\n#### Swarm Pattern\n- **Use Case:** Distributed problem solving with peer-to-peer collaboration\n- **Architecture:** Multiple autonomous agents with shared objectives\n- **Pros:** High parallelism, fault tolerance, emergent intelligence\n- **Cons:** Complex coordination, potential conflicts, harder to predict\n- **Implementation:** Agent discovery, consensus mechanisms, distributed task allocation\n\n#### Hierarchical Pattern\n- **Use Case:** Complex systems with multiple organizational layers\n- **Architecture:** Tree structure with managers and workers at different levels\n- **Pros:** Natural organizational mapping, clear responsibilities\n- **Cons:** Communication overhead, potential bottlenecks at each level\n- **Implementation:** Multi-level delegation with feedback loops\n\n#### Pipeline Pattern\n- **Use Case:** Sequential processing with specialized stages\n- **Architecture:** Agents arranged in processing pipeline\n- **Pros:** Clear data flow, specialized optimization per stage\n- **Cons:** Sequential bottlenecks, rigid processing order\n- **Implementation:** Message queues between stages, state handoffs\n\n### 2. Agent Role Definition\n\n#### Role Specification Framework\n- **Identity:** Name, purpose statement, core competencies\n- **Responsibilities:** Primary tasks, decision boundaries, success criteria\n- **Capabilities:** Required tools, knowledge domains, processing limits\n- **Interfaces:** Input\u002Foutput formats, communication protocols\n- **Constraints:** Security boundaries, resource limits, operational guidelines\n\n#### Common Agent Archetypes\n\n**Coordinator Agent**\n- Orchestrates multi-agent workflows\n- Makes high-level decisions and resource allocation\n- Monitors system health and performance\n- Handles escalations and conflict resolution\n\n**Specialist Agent**\n- Deep expertise in specific domain (code, data, research)\n- Optimized tools and knowledge for specialized tasks\n- High-quality output within narrow scope\n- Clear handoff protocols for out-of-scope requests\n\n**Interface Agent**\n- Handles external interactions (users, APIs, systems)\n- Protocol translation and format conversion\n- Authentication and authorization management\n- User experience optimization\n\n**Monitor Agent**\n- System health monitoring and alerting\n- Performance metrics collection and analysis\n- Anomaly detection and reporting\n- Compliance and audit trail maintenance\n\n### 3. Tool Design Principles\n\n#### Schema Design\n- **Input Validation:** Strong typing, required vs optional parameters\n- **Output Consistency:** Standardized response formats, error handling\n- **Documentation:** Clear descriptions, usage examples, edge cases\n- **Versioning:** Backward compatibility, migration paths\n\n#### Error Handling Patterns\n- **Graceful Degradation:** Partial functionality when dependencies fail\n- **Retry Logic:** Exponential backoff, circuit breakers, max attempts\n- **Error Propagation:** Structured error responses, error classification\n- **Recovery Strategies:** Fallback methods, alternative approaches\n\n#### Idempotency Requirements\n- **Safe Operations:** Read operations with no side effects\n- **Idempotent Writes:** Same operation can be safely repeated\n- **State Management:** Version tracking, conflict resolution\n- **Atomicity:** All-or-nothing operation completion\n\n### 4. Communication Patterns\n\n#### Message Passing\n- **Asynchronous Messaging:** Decoupled agents, message queues\n- **Message Format:** Structured payloads with metadata\n- **Delivery Guarantees:** At-least-once, exactly-once semantics\n- **Routing:** Direct messaging, publish-subscribe, broadcast\n\n#### Shared State\n- **State Stores:** Centralized data repositories\n- **Consistency Models:** Strong, eventual, weak consistency\n- **Access Patterns:** Read-heavy, write-heavy, mixed workloads\n- **Conflict Resolution:** Last-writer-wins, merge strategies\n\n#### Event-Driven Architecture\n- **Event Sourcing:** Immutable event logs, state reconstruction\n- **Event Types:** Domain events, system events, integration events\n- **Event Processing:** Real-time, batch, stream processing\n- **Event Schema:** Versioned event formats, backward compatibility\n\n### 5. Guardrails and Safety\n\n#### Input Validation\n- **Schema Enforcement:** Required fields, type checking, format validation\n- **Content Filtering:** Harmful content detection, PII scrubbing\n- **Rate Limiting:** Request throttling, resource quotas\n- **Authentication:** Identity verification, authorization checks\n\n#### Output Filtering\n- **Content Moderation:** Harmful content removal, quality checks\n- **Consistency Validation:** Logic checks, constraint verification\n- **Formatting:** Standardized output formats, clean presentation\n- **Audit Logging:** Decision trails, compliance records\n\n#### Human-in-the-Loop\n- **Approval Workflows:** Critical decision checkpoints\n- **Escalation Triggers:** Confidence thresholds, risk assessment\n- **Override Mechanisms:** Human judgment precedence\n- **Feedback Loops:** Human corrections improve system behavior\n\n### 6. Evaluation Frameworks\n\n#### Task Completion Metrics\n- **Success Rate:** Percentage of tasks completed successfully\n- **Partial Completion:** Progress measurement for complex tasks\n- **Task Classification:** Success criteria by task type\n- **Failure Analysis:** Root cause identification and categorization\n\n#### Quality Assessment\n- **Output Quality:** Accuracy, relevance, completeness measures\n- **Consistency:** Response variability across similar inputs\n- **Coherence:** Logical flow and internal consistency\n- **User Satisfaction:** Feedback scores, usage patterns\n\n#### Cost Analysis\n- **Token Usage:** Input\u002Foutput token consumption per task\n- **API Costs:** External service usage and charges\n- **Compute Resources:** CPU, memory, storage utilization\n- **Time-to-Value:** Cost per successful task completion\n\n#### Latency Distribution\n- **Response Time:** End-to-end task completion time\n- **Processing Stages:** Bottleneck identification per stage\n- **Queue Times:** Wait times in processing pipelines\n- **Resource Contention:** Impact of concurrent operations\n\n### 7. Orchestration Strategies\n\n#### Centralized Orchestration\n- **Workflow Engine:** Central coordinator manages all agents\n- **State Management:** Centralized workflow state tracking\n- **Decision Logic:** Complex routing and branching rules\n- **Monitoring:** Comprehensive visibility into all operations\n\n#### Decentralized Orchestration\n- **Peer-to-Peer:** Agents coordinate directly with each other\n- **Service Discovery:** Dynamic agent registration and lookup\n- **Consensus Protocols:** Distributed decision making\n- **Fault Tolerance:** No single point of failure\n\n#### Hybrid Approaches\n- **Domain Boundaries:** Centralized within domains, federated across\n- **Hierarchical Coordination:** Multiple orchestration levels\n- **Context-Dependent:** Strategy selection based on task type\n- **Load Balancing:** Distribute coordination responsibility\n\n### 8. Memory Patterns\n\n#### Short-Term Memory\n- **Context Windows:** Working memory for current tasks\n- **Session State:** Temporary data for ongoing interactions\n- **Cache Management:** Performance optimization strategies\n- **Memory Pressure:** Handling capacity constraints\n\n#### Long-Term Memory\n- **Persistent Storage:** Durable data across sessions\n- **Knowledge Base:** Accumulated domain knowledge\n- **Experience Replay:** Learning from past interactions\n- **Memory Consolidation:** Transferring from short to long-term\n\n#### Shared Memory\n- **Collaborative Knowledge:** Shared learning across agents\n- **Synchronization:** Consistency maintenance strategies\n- **Access Control:** Permission-based memory access\n- **Memory Partitioning:** Isolation between agent groups\n\n### 9. Scaling Considerations\n\n#### Horizontal Scaling\n- **Agent Replication:** Multiple instances of same agent type\n- **Load Distribution:** Request routing across agent instances\n- **Resource Pooling:** Shared compute and storage resources\n- **Geographic Distribution:** Multi-region deployments\n\n#### Vertical Scaling\n- **Capability Enhancement:** More powerful individual agents\n- **Tool Expansion:** Broader tool access per agent\n- **Context Expansion:** Larger working memory capacity\n- **Processing Power:** Higher throughput per agent\n\n#### Performance Optimization\n- **Caching Strategies:** Response caching, tool result caching\n- **Parallel Processing:** Concurrent task execution\n- **Resource Optimization:** Efficient resource utilization\n- **Bottleneck Elimination:** Systematic performance tuning\n\n### 10. Failure Handling\n\n#### Retry Mechanisms\n- **Exponential Backoff:** Increasing delays between retries\n- **Jitter:** Random delay variation to prevent thundering herd\n- **Maximum Attempts:** Bounded retry behavior\n- **Retry Conditions:** Transient vs permanent failure classification\n\n#### Fallback Strategies\n- **Graceful Degradation:** Reduced functionality when systems fail\n- **Alternative Approaches:** Different methods for same goals\n- **Default Responses:** Safe fallback behaviors\n- **User Communication:** Clear failure messaging\n\n#### Circuit Breakers\n- **Failure Detection:** Monitoring failure rates and response times\n- **State Management:** Open, closed, half-open circuit states\n- **Recovery Testing:** Gradual return to normal operation\n- **Cascading Failure Prevention:** Protecting upstream systems\n\n## Implementation Guidelines\n\n### Architecture Decision Process\n1. **Requirements Analysis:** Understand system goals, constraints, scale\n2. **Pattern Selection:** Choose appropriate architecture pattern\n3. **Agent Design:** Define roles, responsibilities, interfaces\n4. **Tool Architecture:** Design tool schemas and error handling\n5. **Communication Design:** Select message patterns and protocols\n6. **Safety Implementation:** Build guardrails and validation\n7. **Evaluation Planning:** Define success metrics and monitoring\n8. **Deployment Strategy:** Plan scaling and failure handling\n\n### Quality Assurance\n- **Testing Strategy:** Unit, integration, and system testing approaches\n- **Monitoring:** Real-time system health and performance tracking\n- **Documentation:** Architecture documentation and runbooks\n- **Security Review:** Threat modeling and security assessments\n\n### Continuous Improvement\n- **Performance Monitoring:** Ongoing system performance analysis\n- **User Feedback:** Incorporating user experience improvements\n- **A\u002FB Testing:** Controlled experiments for system improvements\n- **Knowledge Base Updates:** Continuous learning and adaptation\n\nThis skill provides the foundation for designing robust, scalable multi-agent systems that can handle complex tasks while maintaining safety, reliability, and performance at scale.","","imported","https:\u002F\u002Fgithub.com\u002Falirezarezvani\u002Fclaude-skills","user_system_seed","SkillOPIC",true,131,398,"2026-05-16 13:52:56",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"其他","other","mdi-page-next-outline","其他类型Skill",5,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"职场发展","career","mdi-briefcase-outline","面试准备、简历优化、职业规划",4,575,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"ba479465-d060-46b0-ac0d-85e5a374b088","1.0.0","agent-designer.zip",67904,"uploads\u002Fskills\u002F4e8c0c08-9c73-4acc-a504-fd7660337f12\u002Fagent-designer.zip","9b36c24e71379e5fb6b0e5a4b8294e3c8ddad0f8875c62b3fe93b8aea6d77795","[{\"path\":\"README.md\",\"isDirectory\":false,\"size\":12473},{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":12145},{\"path\":\"agent_evaluator.py\",\"isDirectory\":false,\"size\":53488},{\"path\":\"agent_planner.py\",\"isDirectory\":false,\"size\":38868},{\"path\":\"assets\u002Fsample_execution_logs.json\",\"isDirectory\":false,\"size\":15838},{\"path\":\"assets\u002Fsample_system_requirements.json\",\"isDirectory\":false,\"size\":2292},{\"path\":\"assets\u002Fsample_tool_descriptions.json\",\"isDirectory\":false,\"size\":16116},{\"path\":\"expected_outputs\u002Fsample_agent_architecture.json\",\"isDirectory\":false,\"size\":13933},{\"path\":\"expected_outputs\u002Fsample_evaluation_report.json\",\"isDirectory\":false,\"size\":15336},{\"path\":\"expected_outputs\u002Fsample_tool_schemas.json\",\"isDirectory\":false,\"size\":11988},{\"path\":\"references\u002Fagent_architecture_patterns.md\",\"isDirectory\":false,\"size\":9876},{\"path\":\"references\u002Fevaluation_methodology.md\",\"isDirectory\":false,\"size\":20456},{\"path\":\"references\u002Ftool_design_best_practices.md\",\"isDirectory\":false,\"size\":13718},{\"path\":\"tool_schema_generator.py\",\"isDirectory\":false,\"size\":37813}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]