Agent Creator
Generates the three core identity files for a new OpenClaw agent, packages them as a .skill file, and optionally publishes to ClawHub.
Workflow
Step 1 — Gather Agent Details
Ask the user (or infer from context) for:
| Field | Example |
|---|
| Name | Aria |
| Emoji |
✨ |
|
Nature | AI companion — sharp, reliable, with genuine care |
|
Vibe | Warm but direct. Smart without being showy. |
|
Serving | Solo founders who need a reliable thinking partner |
|
Slug |
aria (auto-derived from name; user can override) |
|
Version |
1.0.0 |
Minimum required: name, nature, vibe. Everything else has sensible defaults.
Step 2 — Generate & Package
Run the bundler script:
CODEBLOCK0
This produces ~/.openclaw/workspace/skills/dist/aria.skill.
Step 3 — Upload to ClawHub (optional)
If the user wants to publish:
CODEBLOCK1
Step 4 — Install on a Target Agent (optional)
To apply the identity to a running OpenClaw agent, copy the workspace files:
CODEBLOCK2
Output Structure
The .skill file contains:
CODEBLOCK3
Template Placeholders
The templates in assets/workspace-template/ use {{PLACEHOLDER}} tokens:
| Token | Filled With |
|---|
| INLINECODE7 | Agent's name |
| INLINECODE8 |
Agent's emoji |
|
{{AGENT_NATURE}} | One-line nature description |
|
{{AGENT_VIBE}} | Personality vibe |
|
{{AGENT_SLUG}} | URL-safe slug |
|
{{AGENT_AVATAR}} | Avatar path (default: not yet set) |
|
{{DATE}} | Today's date |
Notes
- - Output dir defaults to
~/.openclaw/workspace/skills/dist/ — create it if needed - Slug must be lowercase letters, digits, and hyphens only
- The
.skill file is a zip archive — inspect with INLINECODE16 - For VPS agents, use
(sleep 3 && systemctl restart openclaw.service) & before sending final reply
Agent Creator
为新的OpenClaw代理生成三个核心身份文件,将其打包为.skill文件,并可选择发布到ClawHub。
工作流程
第一步 — 收集代理详情
向用户询问(或从上下文中推断)以下信息:
✨ |
|
本质 | AI伴侣——敏锐、可靠、真诚关怀 |
|
气质 | 温暖而直接。聪明但不张扬。 |
|
服务对象 | 需要可靠思维伙伴的独立创始人 |
|
标识符 | aria(自动从名称派生;用户可覆盖) |
|
版本 | 1.0.0 |
最低要求:名称、本质、气质。其他字段均有合理的默认值。
第二步 — 生成与打包
运行打包脚本:
bash
python3 ~/.openclaw/workspace/skills/agent-creator/scripts/createagentbundle.py \
--name Aria \
--emoji ✨ \
--nature AI伴侣——敏锐、可靠、真诚关怀 \
--vibe 温暖而直接。聪明但不张扬。 \
--serving 需要可靠思维伙伴的独立创始人 \
--slug aria \
--version 1.0.0 \
--output-dir ~/.openclaw/workspace/skills/dist
这将生成 ~/.openclaw/workspace/skills/dist/aria.skill。
第三步 — 上传到ClawHub(可选)
如果用户想要发布:
bash
先登录(一次性操作)
clawhub login
发布
clawhub publish ~/.openclaw/workspace/skills/dist/aria.skill \
--slug aria \
--name Aria \
--version 1.0.0 \
--changelog 初始版本
第四步 — 安装到目标代理(可选)
要将身份应用到运行中的OpenClaw代理,复制工作区文件:
bash
解压技能包
unzip -o ~/.openclaw/workspace/skills/dist/aria.skill -d /tmp/aria-skill
复制到目标代理工作区
cp /tmp/aria-skill/aria/assets/workspace-template/SOUL.md /path/to/workspace/
cp /tmp/aria-skill/aria/assets/workspace-template/IDENTITY.md /path/to/workspace/
cp /tmp/aria-skill/aria/assets/workspace-template/AGENTS.md /path/to/workspace/
重启网关
systemctl --user restart openclaw-gateway # 或对VPS使用延迟重启
输出结构
.skill文件包含:
{标识符}/
├── SKILL.md ← 代理的安装说明
└── assets/
└── workspace-template/
├── SOUL.md ← 个性与价值观
├── IDENTITY.md ← 名称、表情符号、头像
└── AGENTS.md ← 操作规则与记忆系统
模板占位符
assets/workspace-template/中的模板使用{{占位符}}标记:
| 标记 | 填充内容 |
|---|
| {{AGENTNAME}} | 代理名称 |
| {{AGENTEMOJI}} |
代理表情符号 |
| {{AGENT_NATURE}} | 一行本质描述 |
| {{AGENT_VIBE}} | 个性气质 |
| {{AGENT_SLUG}} | URL安全的标识符 |
| {{AGENT_AVATAR}} | 头像路径(默认:尚未设置) |
| {{DATE}} | 当前日期 |
备注
- - 输出目录默认为 ~/.openclaw/workspace/skills/dist/ — 如不存在则创建
- 标识符只能包含小写字母、数字和连字符
- .skill文件是一个zip压缩包 — 使用 unzip -l {文件名}.skill 查看内容
- 对于VPS代理,在发送最终回复前使用 (sleep 3 && systemctl restart openclaw.service) &