LeoYeAI/agent-master-skills / skills/agent-builder-plus
agent-builder-plus
UnverifiedBuild high-performing OpenClaw agents end-to-end with comprehensive safety features. Use when you want to design a new agent (persona + operating rules) and generate required OpenClaw workspace files (SOUL.md, IDENTITY.md, AGENTS.md, USER.md, HEARTBEAT.md, optional MEMORY.md + memory/YYYY-MM-DD.md). Includes anti-deadlock protection, timeout handling, error recovery, loop breaker, message overload protection, token limit protection, retry mechanism, health check, degraded mode, monitoring & logging, configuration validation, and channel conflict prevention. Also use to iterate on an existing agent's behavior, guardrails, autonomy model, heartbeat plan, and skill roster.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 16.7 KB |
| _meta.json | config | 466 B |
| references/architecture.md | markdown | 2.2 KB |
| references/openclaw-workspace.md | markdown | 2.2 KB |
| references/templates.md | markdown | 13.9 KB |
references/architecture.md
View on GitHub# Agent Architecture Patterns
Based on "LLM Powered Autonomous Agents" (Weng, 2023) and modern best practices.
## Core Components
An autonomous agent system generally consists of a central LLM controller augmented with three key capabilities:
1. **Planning** (Brain)
* **Subgoal Decomposition**: Breaking complex tasks into manageable steps (e.g., Chain of Thought, Tree of Thoughts).
* **Reflection**: Criticizing and refining plans based on past actions (e.g., ReAct, Reflexion).
2. **Memory** (Context)
* **Short-term**: In-context learning (limited by context window).
* **Long-term**: Vector stores (RAG) or external databases for efficient retention and retrieval.
3. **Tool Use** (Action)
* Calling external APIs for data (Search, Calendar) or capabilities (Code execution, Math).
## 1. Planning
### Decomposition Techniques
* **Chain of Thought (CoT)**: "Think step by step."
* **Tree of Thoughts (ToT)**: Explore multiple reasoning paths at each step.
* **LLM+P**: Offloading long-horizon planning to classical planners (e.g., PDDL).
### Self-Reflection
* **ReAct**: Interleaving `Thought`, `Action`, and `Observation`.
* **Reflexion**: Using a dynamic memory of past failures to induce self-improvement.
* **Chain of Hindsight**: Fine-tuning on a sequence of outputs with feedback to improve future generations.
## 2. Memory
### Types
* **Sensory**: Raw input embeddings.
* **Short-Term (Working)**: The current prompt context.
* **Long-Term**: External storage (Vector DBs like Pinecone, Weaviate, Milvus).
### Retrieval (MIPS)
Using Maximum Inner Product Search to find relevant long-term memories. Algorithms include LSH, ANNOY, HNSW, and FAISS.
## 3. Tool Use
### Patterns
* **MRKL**: Modular Reasoning, Knowledge and Language. A router sends queries to expert modules (calculators, weather APIs).
* **Toolformer**: Fine-tuning LMs to self-supervise API calls.
* **Function Calling**: Native LLM capabilities to output structured JSON for API execution (e.g., OpenAI functions).
## Common Architectures
* **Single Agent**: One LLM loop handling all steps.
* **Multi-Agent**: Specialized agents (Planner, Executor, Critic) working together (e.g., AutoGPT, BabyAGI, Generative Agents).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |