Loading...
Loading...
Build specialized openclaw agents with proper workspace structure, identity, and skills
npx skill4agent add irangareddy/openclaw-essentials openclaw-agent-builder~/.openclaw/agents/<agentId>/agent~/.openclaw/agents/<agentId>/sessionsAGENTS.mdSOUL.mdUSER.mdIDENTITY.mdTOOLS.mdHEARTBEAT.mdBOOT.mdmemory/MEMORY.mdskills/# Create agent workspace
mkdir -p ~/.openclaw/workspace-<agent-name>
cd ~/.openclaw/workspace-<agent-name>
# Initialize git (recommended)
git init# IDENTITY.md
## Name
[Agent Name]
## Emoji
[1-2 relevant emojis]
## Role
[Short role description - e.g., "Android spec writer", "SEO optimizer"]
## Mission
[Concise mission statement - what the agent does and why]# SOUL.md - [Agent Name]
## Who You Are
[Description of expertise, background, strengths]
## Your Expertise
### [Domain 1]
- [Specific skill or knowledge area]
- [Another capability]
### [Domain 2]
- [Capability]
## Your Approach
### [Trait 1 - e.g., Analytical, Pragmatic]
- [How this manifests]
### [Trait 2]
- [Behavior pattern]
## Your Tone
[Communication style - concise/verbose, formal/casual, technical level]
## Your Values
1. **[Value 1]** - [Why it matters]
2. **[Value 2]** - [Explanation]# AGENTS.md - [Agent Name]
[Brief agent description and primary role]
## Primary Responsibilities
1. **[Task 1]** - [Description]
2. **[Task 2]** - [Description]
## Workflow
### On User Request: "[Trigger Pattern]"
1. **[Step 1]** [Action description]
[Details, commands, or sub-steps]
2. **[Step 2]** [Next action]
### On User Request: "[Another Pattern]"
[Workflow steps]
## [Domain-Specific Section - e.g., "iOS Codebase Structure"]
[Relevant context, file paths, patterns]
## [Another Section - e.g., "Translation Guidelines"]
[Reference tables, mappings, rules]
## Memory
- Log [what to track] in `memory/YYYY-MM-DD.md`
- [Memory strategy specific to agent purpose]
## Tools
See `TOOLS.md` for [domain-specific tools or integrations]
## Skills
- **[skill-name]** - [Purpose]
- **[another-skill]** - [Purpose]# USER.md
## Who You Are
[User description, preferences, context]
## Your Goals
[What user wants to achieve with this agent]
## Communication Preferences
[How user prefers to interact]# TOOLS.md
## [Domain] Tools
- **[Tool/API name]**: [Purpose and usage notes]
- **[Another tool]**: [Notes]
## Authentication
[If agent needs API keys, credentials, etc.]
## Conventions
[Domain-specific conventions or patterns]mkdir -p skills/<skill-name>SKILL.md---
name: skill-name
description: What the skill does
---
# Skill Name
[Skill documentation following agentskills.io format]
## When to Use
[Trigger conditions]
## Steps
[Detailed workflow]
## Examples
[Usage examples]mkdir -p memory
touch memory/$(date +%Y-%m-%d).mdMEMORY.md# MEMORY.md
## [Category]
- [Key fact or pattern]
- [Lesson learned]
## [Another Category]
[Organized knowledge]# Add agent to openclaw
openclaw agents add <agent-name>
# Set workspace path
# Edit ~/.openclaw/openclaw.json:
{
"agents": {
"list": [
{
"id": "<agent-name>",
"workspace": "~/.openclaw/workspace-<agent-name>"
}
]
}
}{
"bindings": [
{
"agentId": "<agent-name>",
"match": {
"channel": "whatsapp",
"peer": { "kind": "direct", "id": "+1234567890" }
}
}
]
}/new/reset~/.openclaw/skills/Purpose: Analyze iOS features, generate Android requirement specs
Style: Concise, technical, requirement-focused
Skills: ios-analyzer, android-spec-generator, github-issue-creatorPurpose: Content optimization, keyword research, SEO strategy
Style: Data-driven, analytical, actionable
Skills: keyword-research, content-analyzer, competitor-analysisPurpose: Blog posts, documentation, technical writing
Style: Clear, engaging, audience-aware
Skills: content-planner, seo-writer, editor~/.openclaw/credentials/# Start gateway with agent
openclaw gateway --agent <agent-name>
# Or use binding to route to agent
openclaw gateway
# Send test message via WhatsApp/Telegram/Discord
# Verify agent responds with expected personality/capabilitycd ~/.openclaw/workspace-<agent-name>
git add .
git commit -m "Update [what changed]"
git pushcd ~/.openclaw/workspace-<agent-name>/skills
mkdir new-skill
# Create SKILL.md# Workspace already in git
# Separately backup sessions if needed:
tar -czf sessions-backup.tar.gz ~/.openclaw/agents/<agent-name>/sessions/