用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/GeorgeDoors888/GB-Power-Market-JJ --skill agent-creator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | agent-creator |
| description | 创建新的 OpenClaw Agent。用于当用户要求创建新 agent、添加新机器人、配置新模型测试环境时触发。 |
创建新 OpenClaw Agent 的完整 checklist。
mkdir -p ~/.openclaw/workspace-{agentId}/agent
mkdir -p ~/.openclaw/agents/{agentId}/agent
在 ~/.openclaw/workspace-{agentId}/ 下创建:
| 文件 | 用途 | 模板位置 |
|---|---|---|
| IDENTITY.md | 身份定义(名字、emoji、风格) | templates/IDENTITY.md |
| SOUL.md | 灵魂/个性定义 | templates/SOUL.md |
| USER.md | 用户信息 | templates/USER.md |
| AGENTS.md | Agent 行为协议 | templates/AGENTS.md |
| MEMORY.md | 热缓存 | templates/MEMORY.md |
⚠️ 常见遗漏:AGENTS.md 和 MEMORY.md 容易被漏掉,必须从 templates 复制。
在 ~/.openclaw/workspace-{agentId}/agent/ 下创建:
| 文件 | 内容 |
|---|---|
| models.json | 模型配置(从主 agent 复制并修改 provider) |
| auth.json | 认证配置(空对象 {} 或从主 agent 复制) |
修改 ~/.openclaw/openclaw.json:
{
"id": "{agentId}",
"workspace": "/home/axelhu/.openclaw/workspace-{agentId}",
"model": {
"primary": "{provider}/{modelId}",
"fallbacks": []
}
}
agentToAgent.allow — 添加 agentId 到列表
可选:bindings + channels — 如需飞书绑定:
{
"agentId": "{agentId}",
"match": {
"channel": "feishu",
"accountId": "{accountId}"
}
}
并在 channels.accounts 中添加对应配置
运行 openclaw status 确认新 agent 已加载。
# 1. 创建目录
mkdir -p ~/.openclaw/workspace-{agentId}/agent
# 2. 复制模板文件(必须!)
cp ~/.openclaw/skills/agent-creator/templates/IDENTITY.md ~/.openclaw/workspace-{agentId}/
cp ~/.openclaw/skills/agent-creator/templates/SOUL.md ~/.openclaw/workspace-{agentId}/
cp ~/.openclaw/skills/agent-creator/templates/USER.md ~/.openclaw/workspace-{agentId}/
cp ~/.openclaw/skills/agent-creator/templates/AGENTS.md ~/.openclaw/workspace-{agentId}/
cp ~/.openclaw/skills/agent-creator/templates/MEMORY.md ~/.openclaw/workspace-{agentId}/
# 3. 创建 agent 配置
# 编辑 agent/models.json 和 agent/auth.json
# 4. 更新 openclaw.json
# 添加到 agents.list, agentToAgent.allow, bindings, channels
创建完成后确认:
如需配置飞书,需要以下信息:
longcat){
"agentId": "{agentId}",
"match": {
"channel": "feishu",
"accountId": "{accountId}"
}
}
"{accountId}": {
"appId": "{appId}",
"appSecret": "{appSecret}",
"botName": "{botName}"
}
创建完成后,询问用户:
"Agent 创建完成!是否需要配置飞书机器人绑定?如需要,请提供:accountId、botName、appId、appSecret"