agent-builder-plusBuild high-performing OpenClaw agents end-to-end with comprehensive safety features. Use when you want to design a new agent (persona + operating rules) and...
Install via ClawdBot CLI:
clawdbot install YKaiXu/agent-builder-plusDesign and generate a complete OpenClaw agent workspace with strong defaults and advanced-user-oriented clarifying questions.
# 1. Read skill documentation
Read SKILL.md and references/openclaw-workspace.md
# 2. Answer interview questions
Provide answers for: job statement, surfaces, autonomy level, prohibitions, memory, tone, tool posture
# 3. Generate workspace files
The skill will create: IDENTITY.md, SOUL.md, AGENTS.md, USER.md, HEARTBEAT.md
# 4. Verify and test
Run acceptance tests to validate behavior
references/openclaw-workspace.mdreferences/templates.mdreferences/architecture.mdAsk only what you need; keep it tight. Prefer multiple short rounds over one giant questionnaire.
Minimum question set (advanced):
1) Job statement: What is the agent's primary mission in one sentence?
2) Surfaces: Which channels (Telegram/WhatsApp/Discord/iMessage/Feishu)? DM only vs groups?
3) Autonomy level:
4) Hard prohibitions: Any actions the agent must never take?
5) Memory: Should it keep curated MEMORY.md? What categories matter?
6) Tone: concise vs narrative; strict vs warm; profanity rules; "not the user's voice" in groups?
7) Tool posture: tool-first vs answer-first; verification requirements.
Error recovery:
Generate these files (minimum viable OpenClaw agent):
IDENTITY.mdSOUL.mdAGENTS.mdUSER.mdHEARTBEAT.md (often empty by default)BOOTSTRAP.md (for first-run guidance)Optionals:
MEMORY.md (private sessions only)memory/YYYY-MM-DD.md seed (today) with a short "agent created" entryTOOLS.md starter (if the user wants per-environment notes)File creation commands:
# Create workspace directory
mkdir -p /path/to/workspace/memory
# Create files (use write tool with correct parameters)
# Important: Use `file_path` parameter, not `path`
# Example:
# write:
# file_path: /path/to/workspace/IDENTITY.md
# content: "content here"
# For large files (>2000 bytes), consider using file-writer skill
# or split content into smaller chunks
Note: If you encounter "Missing required parameter: path (path or file_path)" error,
ensure you're using file_path parameter in your write tool calls.
Error handling:
Error recovery:
Use templates from references/templates.md but tailor content to the answers.
ā ļø CRITICAL WARNING: Channel Conflict Prevention
NEVER bind a new agent to the same channel as the main agent!
This will cause the new agent to hijack the main agent's channel, making it impossible to communicate with the main agent.
Before registering, check existing agent bindings:
# List all agents and their bindings
openclaw agents list
# Check which channels are already in use
openclaw channels list
Channel binding rules:
/agentname command binding for testingBackup configuration first:
# Backup openclaw.json before modification
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.backup
Register the agent:
# Add agent to OpenClaw configuration
openclaw agents add <agent-name> --workspace /path/to/workspace
# Example 1: Use independent workspace (recommended - each agent has its own workspace)
openclaw agents add my-assistant --workspace ~/.openclaw/workspace-my-assistant
# Example 2: Use default workspace (for single agent setup only)
openclaw agents add my-assistant --workspace ~/.openclaw/workspace
Channel binding options:
Feishu:
/agentname in Feishu messages (for testing)Telegram:
WhatsApp:
Discord:
iMessage:
Authentication configuration (if needed):
# Edit auth-profiles.json for external service access
# Location: ~/.openclaw/auth-profiles.json
# Example structure:
{
"feishu": {
"appId": "cli_xxxxx",
"appSecret": "xxxxx"
},
"telegram": {
"botToken": "your-bot-token"
}
}
Model provider configuration (optional):
If the new agent needs to use custom model providers, you need to configure API keys:
Step 1: Check main agent's model configuration
# View main agent's model configuration
cat ~/.openclaw/agents/main/agent/models.json
# View global model providers
cat ~/.openclaw/openclaw.json | grep -A 20 "providers"
Step 2: Choose configuration approach
Option A: Use same model as main agent (recommended)
Option B: Configure new model provider
Step 3: Configure model provider (if needed)
# Add provider to openclaw.json
# Location: ~/.openclaw/openclaw.json
# Example structure:
{
"models": {
"providers": {
"custom-provider": {
"baseUrl": "https://api.example.com/v1",
"apiKey": "key_id:secret",
"api": "openai-completions",
"models": [...]
}
}
}
}
Step 4: Configure agent-specific auth (if needed)
# Edit auth-profiles.json for the agent
# Location: ~/.openclaw/agents/<agent-name>/agent/auth-profiles.json
# Example structure:
{
"custom-provider": {
"apiKey": "key_id:secret",
"baseUrl": "https://api.example.com/v1"
}
}
ā ļø IMPORTANT: Model providers vs Channel providers
Do not confuse these two types of providers!
Common error:
ā ļø Agent failed before reply: No API key found for provider "provider-name"
Solution:
ā ļø IMPORTANT: Never reuse credentials from main agent!
Error recovery:
openclaw agents add fails: Restores from backup and checks syntaxCommon errors and solutions:
Error 1: "No API key found for provider 'provider-name'"
Causes:
Solutions:
cat ~/.openclaw/openclaw.json | grep -A 10 "providers"
Error 2: "Agent failed before reply"
Causes:
Solutions:
ls -la /path/to/workspace/
openclaw agents list
openclaw agents test <agent-name>
openclaw logs --follow
Error 3: "Missing required parameter: path (path or file_path)"
Causes:
Solutions:
file_path instead of path
write:
file_path: /path/to/file.md
content: "content here"
Error 4: "Could not find exact text in file"
Causes:
Solutions:
read /path/to/file.md
<!-- SECTION_START -->
[content]
<!-- SECTION_END -->
Verification steps:
# 1. Check agent is registered
openclaw agents list
# 2. Verify workspace files exist
ls -la /path/to/workspace/
# 3. Test agent can load (dry run)
openclaw agents test <agent-name>
Success criteria:
openclaw agents list outputIf verification fails:
openclaw agents testError recovery:
Ensure the generated agent includes:
AGENTS.md.Error recovery:
Provide 5-10 short scenario prompts to validate behavior, e.g.:
Error recovery:
Automated test commands:
# Run OpenClaw's built-in agent tests
openclaw agents test <agent-name> --verbose
# Test workspace file syntax
openclaw validate workspace /path/to/workspace
# Test configuration loading
openclaw config test
Test script example:
#!/bin/bash
# test-agent.sh - Automated agent testing script
AGENT_NAME="my-assistant"
WORKSPACE="/path/to/workspace"
echo "Testing agent: $AGENT_NAME"
# Test 1: File existence
echo "Test 1: Checking required files..."
for file in IDENTITY.md SOUL.md AGENTS.md USER.md HEARTBEAT.md; do
if [ ! -f "$WORKSPACE/$file" ]; then
echo "ā Missing: $file"
exit 1
fi
done
echo "ā
All required files present"
# Test 2: Configuration syntax
echo "Test 2: Validating configuration..."
openclaw agents list | grep -q "$AGENT_NAME"
if [ $? -eq 0 ]; then
echo "ā
Agent registered correctly"
else
echo "ā Agent not found in configuration"
exit 1
fi
# Test 3: Agent loading
echo "Test 3: Testing agent load..."
openclaw agents test "$AGENT_NAME"
if [ $? -eq 0 ]; then
echo "ā
Agent loads successfully"
else
echo "ā Agent failed to load"
exit 1
fi
echo "š All tests passed!"
Error recovery:
For production deployments, the agent can run as a systemd service:
Service file example:
# Create systemd service file
sudo tee /etc/systemd/system/openclaw-agent.service > /dev/null <<EOF
[Unit]
Description=OpenClaw Agent Service
After=network.target
[Service]
Type=simple
User=<your-username>
WorkingDirectory=/home/<your-username>/.openclaw
ExecStart=/usr/bin/node /home/<your-username>/.npm-global/lib/node_modules/openclaw/dist/index.js
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
[Install]
WantedBy=multi-user.target
EOF
Enable and start service:
# Reload systemd configuration
sudo systemctl daemon-reload
# Enable service to start on boot
sudo systemctl enable openclaw-agent.service
# Start service now
sudo systemctl start openclaw-agent.service
# Check status
sudo systemctl status openclaw-agent.service
# View logs
sudo journalctl -u openclaw-agent.service -f
Error recovery:
When improving an existing agent, ask:
1) What are the top 3 failure modes you have seen? (loops, overreach, verbosity, etc.)
2) What autonomy changes do you want?
3) Any new safety boundaries?
4) Any changes to heartbeat behavior?
Then propose targeted diffs to:
SOUL.md (persona/tone/boundaries)AGENTS.md (operating rules + memory + delegation)HEARTBEAT.md (small checklist)Keep changes minimal and surgical.
Error recovery:
Generated Mar 1, 2026
Build an agent to handle customer inquiries on Telegram or WhatsApp, providing automated responses for common issues, escalating complex cases, and maintaining a warm, professional tone. It can operate as an Operator with non-destructive actions like fetching order details, while prohibiting sharing sensitive data.
Create an agent for internal company use on Feishu or Discord, assisting with scheduling, document retrieval, and meeting summaries in groups or DMs. Configured as an Advisor to suggest actions only, with memory for tracking project updates and a concise tone to avoid clutter.
Design an agent for personal wellness on iMessage, offering daily reminders, fitness tips, and nutrition advice in private sessions only. Set to Autopilot for proactive suggestions, with prohibitions against medical diagnoses and memory for logging user progress in MEMORY.md.
Develop an agent for financial guidance on dedicated channels, providing market updates, investment insights, and budget planning tools. Use Operator autonomy to ask before executing trades, with strict prohibitions on unauthorized transactions and tool-first posture for data verification.
Build an agent for online learning platforms, answering student questions, providing study resources, and tracking progress in group chats or DMs. Configure as an Operator to handle non-destructive tasks like quiz generation, with memory for lesson history and a narrative tone for engagement.
Offer the agent-building skill as a cloud-based service with tiered pricing, targeting businesses needing custom automation. Revenue comes from monthly subscriptions based on agent complexity and support levels, with upsells for advanced safety features.
Provide professional services to design and deploy agents for clients, including integration with existing systems and ongoing maintenance. Revenue is generated through project-based fees and retainer agreements for updates and monitoring.
Distribute a free version of the skill with basic features, monetizing through premium upgrades for advanced capabilities like anti-deadlock protection and multi-channel support. Revenue streams include one-time purchases for pro features and enterprise licenses.
š¬ Integration Tip
Ensure channel conflict prevention by verifying existing bindings with openclaw agents list before registering new agents to avoid hijacking main agent channels.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection