Agent Creation Skill
This skill is used to create a new OpenClaw agent with the correct workspace structure.
Trigger Conditions
This skill is automatically activated when users mention keywords such as "create agent", "new agent", "agent add", "configure agent", "set up agent identity", etc.
Creation Process
Step 1: Generate Agent Information
Generate the following information based on the user's input:
| Item | Description |
|---|
| Agent Name | Unique identifier, lowercase English, hyphen-separated |
| Identity Name |
Friendly name visible to users |
|
SOUL.md | Defines the agent's personality, communication style, and boundaries; affects interaction style |
Step 2: Create Agent Using Commands
CODEBLOCK0
Optional parameters:
- -
--model <model-id>: Specify a default model for this agent
Step 3: Replace SOUL.md File
After successfully creating the agent via the command, replace the
SOUL.md file content in the agent directory.
INLINECODE2 Template:
CODEBLOCK1
Step 4: Set Up Memory Structure
Create a
memory/YYYY-MM-DD.md file in the agent directory.
Important Notes
- - Agent Naming: Use lowercase letters and hyphens; avoid spaces and special characters
- SOUL.md Required: Every agent must have this file
- Directory Location: Place uniformly under INLINECODE4
Example
Create a customer service assistant agent that is professional, patient, and good at communication
代理创建技能
该技能用于创建具有正确工作区结构的新OpenClaw代理。
触发条件
当用户提及创建代理、新建代理、添加代理、配置代理、设置代理身份等关键词时,该技能自动激活。
创建流程
第一步:生成代理信息
根据用户输入生成以下信息:
| 项目 | 描述 |
|---|
| 代理名称 | 唯一标识符,小写英文,连字符分隔 |
| 身份名称 |
用户可见的友好名称 |
|
SOUL.md | 定义代理的个性、沟通风格和边界;影响交互方式 |
第二步:使用命令创建代理
bash
openclaw agents add <代理名称> --workspace ~/.openclaw/workspace-<代理名称>
openclaw agents set-identity --agent <代理名称> --name <身份名称>
可选参数:
- - --model <模型ID>:为此代理指定默认模型
第三步:替换SOUL.md文件
通过命令成功创建代理后,替换代理目录中的SOUL.md文件内容。
SOUL.md模板:
markdown
SOUL.md — <身份名称>(<代理名称>)
身份
<代理身份描述>
核心职责
能力边界
工作流程
回复风格
自我介绍
当用户提出你是谁?或你能做什么?等问题时,按以下风格回复:
<自我介绍模板>
第四步:设置记忆结构
在代理目录中创建memory/YYYY-MM-DD.md文件。
重要说明
- - 代理命名:使用小写字母和连字符;避免空格和特殊字符
- SOUL.md必需:每个代理都必须有此文件
- 目录位置:统一放置在~/.openclaw/workspace-<代理名称>下
示例
创建一个专业、耐心且善于沟通的客服助手代理。