agent-team-builder
Guide users through building a custom multi-agent team on OpenClaw — from role design to workspace files, routing bindings, channel configuration, and collaboration rules. Use this skill whenever the user mentions building an AI team, multi-agent setup, multi-agent collaboration, agent roles, OpenClaw team configuration, or wants to create multiple agents that work together. Also trigger when the user says things like "set up my agents", "create an agent team", "configure multi-agent", "I want multiple AI assistants working together", or references team coordination, agent routing, agent-to-agent communication, or workspace isolation in OpenClaw.
What this skill does
# Agent Team Builder for OpenClaw
Build a custom multi-agent collaboration team on OpenClaw — step by step, with correct
architecture, workspace files, routing config, and collaboration rules.
> **Important**: This skill is based on verified OpenClaw documentation (docs.openclaw.ai)
> and the official GitHub repo (github.com/openclaw/openclaw). All configuration patterns,
> file names, and architecture decisions reflect the actual OpenClaw system as of early 2026.
---
## How This Skill Works
This is an interactive, guided workflow. You walk the user through 8 phases:
1. **Team Design** — Define roles, responsibilities, and collaboration model
2. **Architecture Planning** — Single Gateway + multi-agent + channel strategy
3. **Agent & Workspace Setup** — Create agents, workspace files, identity
4. **Routing & Bindings** — Wire messages to the right agent
5. **Collaboration Rules** — Group chat strategy, mention gates, ping-pong limits
6. **Agent-to-Agent Communication** — sessions_send, sessions_spawn, allowlists
7. **Team Shared Memory** — Cross-agent knowledge sharing mechanism
8. **Memory, Operations & Delivery** — Per-agent memory, heartbeat, cost control, final config
At each phase, ask the user questions, validate their choices, then generate the
corresponding configuration and workspace files.
---
## Phase 1: Team Design
### Goal
Help the user define their agent team composition.
### Questions to Ask
1. **What is your primary use case?**
- Personal productivity (schedule, research, writing)
- Software development (code, review, deploy)
- Content creation (writing, editing, publishing)
- Business operations (strategy, analysis, execution)
- Custom / mixed
2. **How many agents do you want?** (recommend 2–5 to start; more adds complexity)
3. **For each agent, define:**
- `id`: short lowercase identifier (e.g., `planner`, `coder`, `writer`)
- `name`: display name (e.g., "🧠 Planner")
- `role`: one-sentence description of what this agent does
- `mode`: Does it lead (orchestrator) or follow (specialist)?
4. **Do you want an orchestrator agent?**
- An orchestrator monitors all group messages and dispatches to specialists
- Specialists only respond when explicitly @-mentioned
- This is the recommended pattern for 3+ agents
### Guidance
**Recommended team templates** (user can customize):
**Dev Team (4 agents)**:
- `planner` — Task decomposition, prioritization, project tracking
- `coder` — Code implementation, debugging, technical execution
- `reviewer` — Code review, quality assurance, testing
- `writer` — Documentation, commit messages, technical writing
**Content Team (3 agents)**:
- `strategist` — Content strategy, audience analysis, topic planning
- `creator` — Writing, editing, creative output
- `critic` — Quality review, fact-checking, style consistency
**Business Team (4 agents)**:
- `chief` — Overall coordination, decision synthesis
- `analyst` — Data analysis, market research, risk assessment
- `builder` — Technical implementation, automation
- `communicator` — External communication, reports, presentations
**Solo+ (2 agents)**:
- `main` — General-purpose assistant (default agent)
- `research` — Deep research, analysis, background tasks
---
## Phase 2: Architecture Planning
### Key Architecture Facts (from official docs)
Explain these to the user clearly:
1. **Single Gateway, Multiple Agents**
- One `openclaw gateway` process hosts ALL agents
- Each agent has its own workspace, session store, and memory index
- Agents are defined in `agents.list[]` in `~/.openclaw/openclaw.json`
- No need to run multiple Gateway processes
2. **Isolation is real**
- Each agent gets: workspace directory, `agentDir` for auth/state, session transcripts under `~/.openclaw/agents/<agentId>/sessions/`, memory index database
- **Never reuse `agentDir` across agents** — causes auth/session collisions
3. **Channel Strategy**
Ask the user which channels they want to use:
- **Discord**: Best for visible multi-agent group collaboration. Each agent needs its own bot account (Discord Developer Portal → one bot per agent). Enable Message Content Intent for each bot.
- **Telegram**: Each agent needs its own bot via BotFather. Good for controlled/private channels.
- **WhatsApp**: Each agent maps to a phone number/account. Good for personal use.
- **Slack, Signal, iMessage, etc.**: All supported. See channel guides in docs.
4. **Discord is recommended for group collaboration** because:
- Each bot has a visible identity in the server
- @mention mechanics work naturally
- Conversation threading is visible
- Multiple bots can coexist in one guild/server
### Questions to Ask
1. Which channel(s) will you use? (can be multiple)
2. For group collaboration, which channel will be the "main stage"?
3. Do you want the same agents on multiple channels, or different agents per channel?
---
## Phase 3: Agent & Workspace Setup
### Creating Agents
For each agent, the user should run:
```bash
openclaw agents add <agent-id>
```
Or define them in `~/.openclaw/openclaw.json`:
```json5
{
agents: {
list: [
{ id: "planner", workspace: "~/.openclaw/workspace-planner" },
{ id: "coder", workspace: "~/.openclaw/workspace-coder" },
{ id: "reviewer", workspace: "~/.openclaw/workspace-reviewer" },
],
},
}
```
### Workspace Files
Each agent's workspace follows this **standard structure** (per official docs):
| File | Purpose | Loaded When |
|------|---------|-------------|
| `AGENTS.md` | Operating instructions, memory rules, behavior priorities | Every session |
| `SOUL.md` | Persona, tone, boundaries | Every session |
| `USER.md` | Who the user is, how to address them | Every session |
| `IDENTITY.md` | Agent name, vibe, emoji (created during bootstrap) | Every session |
| `TOOLS.md` | Notes about local tools/conventions (guidance only, does NOT control tool access) | Every session |
| `HEARTBEAT.md` | Optional tiny checklist for heartbeat runs | Heartbeat only |
| `BOOT.md` | Optional startup checklist on gateway restart | Gateway start |
| `BOOTSTRAP.md` | One-time first-run ritual, deleted after completion | First run only |
| `memory/YYYY-MM-DD*.md` | Daily memory logs (append-only) | On demand |
| `MEMORY.md` | Curated long-term memory | **Private sessions only** |
> **Critical correction**: The official workspace does NOT include files named
> `ROLE-COLLAB-RULES.md`, `TEAM-RULEBOOK.md`, `TEAM-DIRECTORY.md`, or
> `GROUP_MEMORY.md` as standard OpenClaw files. These are custom additions.
> If the user wants collaboration rules, they should be embedded in `AGENTS.md`
> and `SOUL.md`, which are the files OpenClaw actually loads every session.
### Generate Workspace Files
For each agent, generate these files based on the user's team design.
**SOUL.md template** — Customize per agent:
```markdown
# Soul of [Agent Name]
## Identity
- Name: [Display Name]
- Role: [One-line role description]
- Emoji: [Emoji identifier]
## Personality
[2-3 sentences describing tone, communication style]
## Responsibilities
[Bullet list of what this agent owns]
## Boundaries
- [What this agent should NOT do]
- [When to defer to other agents]
## Private Chat Mode
[How to behave in 1:1 conversations — act as full-service expert]
## Group Chat Mode
[How to behave in group — follow team protocol, incremental contributions only]
```
**AGENTS.md template** — Customize per agent:
```markdown
# Operating Manual for [Agent Name]
## Core Behavior
- Always read IDENTITY.md and USER.md at session start
- In group chats, only respond when @-mentioned (unless you are the orchestrator)
- Write important decisions to memory/YYYY-MM-DD.md
## Memory Protocol
- Read today's and yesterday's daily log at session start
- Use memory_search for semantic recall before answering complex questions
- Write durable facts to MEMORY.md only in private sessions
- Never load MEMORY.md in group cRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.