agent-architecture-patterns
AI Agent architecture patterns library with 10 patterns for single and multi-agent systems
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/banxian87/agent-architecture-patternsAgent Architecture Patterns
This skill provides a comprehensive library of AI Agent architecture patterns to help developers:
- Design single-agent architectures (ReAct, Reflection, Self-Critique, Plan-and-Solve, Tree of Thoughts)
- Design multi-agent collaboration systems (Manager-Worker, Peer-to-Peer, Hierarchical, Market-Based, Pipeline)
- Apply system design principles (separation of concerns, fault tolerance, scalability)
- Implement best practices based on OpenClaw
Patterns
Single-Agent Patterns (5)
- ReAct - Reasoning + Acting alternation
- Reflection - Self-reflection and iterative improvement
- Self-Critique - Self-criticism and error correction
- Plan-and-Solve - Plan first, then execute
- Tree of Thoughts - Multi-path exploration
Multi-Agent Patterns (5)
- Manager-Worker - 1 manager coordinates multiple workers
- Peer-to-Peer - Equal agents collaborate
- Hierarchical - Multi-level management structure
- Market-Based - Task bidding and allocation
- Pipeline - Sequential multi-stage processing
Usage
Option 1: Consult AI-Agent
Ask questions like:
- "Design a multi-agent code review system"
- "How to implement ReAct pattern?"
- "Which agent collaboration pattern should I use?"
Option 2: Reference Documentation
Browse patterns/ directory for detailed pattern docs.
Option 3: Use Code Examples
Run example code from examples/ directory.
Examples
ReAct Pattern Example
const agent = new ReActAgent({
tools: [search, calculate],
maxSteps: 10
});
const answer = await agent.execute("What's the temperature in Beijing today?");
Manager-Worker Pattern Example
const workers = [
new WorkerAgent('worker-1', ['javascript'], { codeReview: true }),
new WorkerAgent('worker-2', ['python'], { dataAnalysis: true })
];
const manager = new ManagerAgent(workers);
const result = await manager.coordinate("Review this codebase");
Installation
clawhub install agent-architecture-patterns
Testing
npm test
# Runs 30 test cases for ReAct and Manager-Worker implementations
License
MIT
Author
AI-Agent
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-banxian87-agent-architecture-patterns": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
ai-code-generator
AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications.
ai-email-master
Professional email writing assistant with tone adjustment, template library, grammar checking, and response suggestions. Supports formal, casual, persuasive, and empathetic tones for business communication.
research-assistant
Research assistant using ReAct + Plan-and-Solve for web research, information synthesis, and report generation with citations.
content-creator-assistant
AI writing assistant using Reflection + Tree of Thoughts for high-quality content creation. Generates articles, blogs, and documentation with iterative refinement.
code-review-expert
Multi-agent code review system using Manager-Worker pattern. Provides comprehensive code analysis from syntax, logic, security, and performance perspectives.