Xpersona
O

Openclaw New Agent

CLAWHUB · Unverified

在 OpenClaw 上创建新的独立飞书机器人(多账号模式)。当用户要求创建新的飞书机器人、新增 Agent、部署第二个机器人时使用。流程包括:收集配置信息 → 备份 → 创建工作区 → 修改配置 → 验证。 Skill: Openclaw New Agent Owner: itzhouq Summary: 在 OpenClaw 上创建新的独立飞书机器人(多账号模式)。当用户要求创建新的飞书机器人、新增 Agent、部署第二个机器人时使用。流程包括:收集配置信息 → 备份 → 创建工作区 → 修改配置 → 验证。 Tags: latest:1.2.1 Version history: v1.2.1 | 2026-03-30T13:32:37.342Z | auto openclaw-new-agent 1.2.1 - Updated version to 1.2.1 in SKILL.md and package.json. - No functional or documentation changes aside from version bump. v1.2.0 | 2026-03-28T19:17:54.306Z | auto

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17083w2bsf8k8ykqgckd9sznx83n42e:openclaw-new-agent
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-itzhouq-openclaw-new-agent/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

46,328 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: openclaw-new-agent
description: 在 OpenClaw 上创建新的独立飞书机器人(多账号模式)。当用户要求创建新的飞书机器人、新增 Agent、部署第二个机器人时使用。流程包括:收集配置信息 → 备份 → 创建工作区 → 修改配置 → 验证。
keywords:
  - openclaw
  - feishu
  - lark
  - multi-agent
  - chatbot
  - robot
version: 1.2.1
author: Zhou Quan
homepage: https://clawhub.com
repository: https://github.com/itzhouq/openclaw-new-agent
license: MIT
---

# openclaw-new-agent

> 在 OpenClaw 上丝滑创建多个独立的飞书机器人 Agent

本 Skill 用于在已运行的 OpenClaw 实例上,新增一个独立的飞书机器人 Agent。

---

## 前提条件

用户需要提前准备好:
1. 飞书开放平台上的新应用(App ID + App Secret)
2. 新机器人在飞书中的名称
3. 工作区文件夹名称(与现有 workspace 平级,不是子文件夹)

### 快速创建飞书机器人

如果用户还没有飞书机器人,可通过以下方式快速创建:

👉 **推荐:一键创建模板应用**
https://open.feishu.cn/page/openclaw?form=multiAgent

使用此链接可直接生成包含 WebSocket 事件订阅配置的多账号模式模板应用,无需手动配置权限和事件订阅。

---

## Step 0:确认使用场景

在开始之前,向用户确认以下信息:

| 问题 | 说明 |
|------|------|
| 新 Agent 的用途是什么? | 用于记录到 SOUL.md,定义 Agent 角色 |
| 工作区文件夹名称? | 建议:`workspace-{功能名}`,如 `workspace-codewriter` |
| App ID & App Secret? | 新的飞书机器人凭证(格式:`cli_xxx`) |
| Obsidian 相关(可选) | 如涉及信息收集,记录 vault 路径和笔记结构 |

> **账号获取说明**:配置初期 allowFrom 可先留空,等用户向新机器人发送测试消息后,从日志中自动获取发送者 open_id 并补充到 allowFrom。

---

## Step 1:备份现有配置

**必须操作**,所有配置变更前必须备份:

```bash
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.{日期标签}.bak
```

常用备份标签:
- `.beforemultiagentbak` — 多机器人配置前
- `.before-{agentId}bak` — 新增特定 Agent 前

---

## Step 2:创建独立工作区

工作区必须与主 `workspace` **平级**,不是子文件夹:

```
.openclaw/
├── workspace/                  ← 主工作区
└── workspace-{name}/           ← 新工作区(平级)
    ├── SOUL.md                 # Agent 角色定义
    ├── USER.md                 # 用户信息
    ├── AGENTS.md               # 工作区说明
    ├── MEMORY.md               # 长期记忆(可选)
    ├── HEARTBEAT.md            # 心跳任务(默认空)
    └── memory/                 # 每日工作日志
        └── YYYY-MM-DD.md
```

### SOUL.md 模板

```markdown
# SOUL.md - {Agent名称}

_我是 {Agent名称},..._

## 角色定位

- **核心能力**:
- **风格**:
- **原则**:

## 工作方式

1.
2.
3.

## 边界

-
```

### USER.md 模板

```markdown
# USER.md - 用户信息

- **Name:** {用户名}
- **What to call them:** {称呼}
- **Timezone:** Asia/Shanghai (GMT+8)

## 相关信息(如适用)

-
```

---

## Step 3:确认飞书机器人配置

向用户收集以下信息:

| 信息 | 必填 | 说明 |
|------|------|------|
| App ID | ✅ | 格式:`cli_xxx`,来自飞书开放平台 |
| App Secret | ✅ | 对应 App ID 的 Secret |
| Bot Name | ✅ | 机器人在飞书显示的名称 |
| 允许的用户 | ⚠️ | 用户的 open_id(可能有多个账号)|

> 💡 **没有飞书机器人?** 使用 [一键创建链接](https://open.feishu.cn/page/openclaw?form=multiAgent),自动生成已配置好权限和事件订阅的模板应用。

### ⚠️ 重要:allowFrom 自动获取

**allowFrom 不需要用户提前确认**。配置时 allowFrom 可先留空,等用户向新机器人发送测试消息后,从日志中自动获取发送者 open_id:

```bash
grep "{agentId}" ~/.openclaw/logs/gateway.log | grep "received message from"
```

获取到 open_id 后,用 `gateway config.patch` 补充到 `allowFrom` 即可。

---

## Step 4:修改 openclaw.json

使用 `gateway config.patch` **局部更新**,不要覆盖整个文件。

### 配置结构

```json
{
  "channels": {
    "feishu": {
      "accounts": {
        "default": { ... },                    // 现有账号,保持不变
        "{agentId}": {                         // 新账号
          "enabled": true,
          "appId": "cli_xxx",
          "appS

README.md

# 一个skills在OpenClaw上丝滑创建多个独立的飞书机器人Agent

[![OpenClaw Skill](https://img.shields.io/badge/OpenClaw-Skill-blue)](https://clawhub.com)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

仓库地址:https://github.com/itzhouq/openclaw-new-agent

介绍视频:https://www.bilibili.com/video/BV16fXLBkEwo

演示视频:https://www.bilibili.com/video/BV1cUXaBsEM1

## 痛点:官方配置太复杂,容易改错

在 OpenClaw 上新增一个独立的飞书机器人,官方流程需要:

1. **手动编辑 `openclaw.json`** — 复杂的嵌套 JSON,改错一点就崩
2. **多账号模式配置繁琐** — 需要理解 `channels.feishu.accounts` 的结构
3. **allowFrom 白名单容易遗漏** — 配错了消息就收不到
4. **备份恢复麻烦** — 改坏了不知道怎么回滚
5. **Gateway 重启时机不确定** — 不知道什么时候配置生效

**核心痛点**:配置改错一次,可能需要花半小时排查问题。

---

## 解决方案

`openclaw-new-agent` Skill 核心能力:

- ✅ **自动备份** — 每次变更前自动备份,坏了随时回滚
- ✅ **分步骤引导** — 每一步做什么清清楚楚,不会迷路
- ✅ **allowFrom 自动获取** — 不需要用户记 open_id,发条消息自动识别
- ✅ **配置 patch 化** — 只改需要改的部分,不碰其他配置
- ✅ **验证三步曲** — 创建完自动确认是否成功

---

## 一、安装

### 安装方式一:clawhub 安装 (推荐)

```bash
# 执行下面命令或者告诉Openclaw:通过clawhub 安装 openclaw-new-agent 这个 skills。
npx clawhub@latest install openclaw-new-agent
# 安装完成实际会下载到 skills 目录下: ~/.openclaw/workspace/skills
```

### 安装方式二:手动下载

```bash
git clone https://github.com/itzhouq/openclaw-new-agent.git ~/.openclaw/workspace/skills
# 手动安装完最好重启下网关,在终端执行:openclaw gateway restart
```

### 安装方式三:联系我发你安装包

如果确实安装失败或者网络问题无法下载,可以联系我发你,有问题也欢迎call我或者提交issue。

<img src="assets/wechat.png" alt="wechat" width="25%" height="25%" />

## 二、一键创建飞书机器人

👉 https://open.feishu.cn/page/openclaw?form=multiAgent

直接生成包含 WebSocket 事件订阅的模板应用,无需手动配置权限。生成完后显示 AppId 和 appSecret 页面不要关闭后面要用。

<img src="https://github.com/itzhouq/openclaw-new-agent/blob/master/assets/image-20260326175903868.png" alt="创建飞书机器人" style="zoom:50%;" />

<img src="https://github.com/itzhouq/openclaw-new-agent/blob/master/assets/image-20260326180114565.png" alt="创建飞书机器人2" style="zoom:50%;" />

## 三:确认基本信息

直接在现有飞书机器人聊天界面告诉 AI 助手:"创建一个新机器人:[名称],[用途]"

示例:"创建一个新机器人:码字精,用于写作辅助"

<img src="https://github.com/itzhouq/openclaw-new-agent/blob/master/assets/image-20260326180008946.png" alt="确认机器人" style="zoom:50%;" />

AI 会自动询问:App ID & App Secret(没有?点击上面链接创建)

## 四、提供飞书机器人的信息

核心是把这两个信息发给机器人。机器人名称、职责、工作区文件夹名称等是可选调整项目,默认即可。

<img src="https://github.com/itzhouq/openclaw-new-agent/blob/master/assets/image-20260326180234755.png" alt="确认机器人" style="zoom:100%;" />

到这里,Openclaw 已经在自动创建新的 Agent,备份,修改配置文件。下面列举的是 AI 做的事你不需要改动。

- AI 自动备份文件:`cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.before{agentId}bak`
- AI 自动创建新工作区:`~/.openclaw/`workspace-{name}/ 
- AI 自动使用 `gateway config.patch` 局部更新,**不会覆盖你的其他配置**。

稍微等待一会儿,等待创建完成。



## 五、新机器人创建完成

你会收到一条类似消息。

<img src="assets/image-20260329015924649.png" alt="image-20260329015924649" width="50%" height="50%" />

可能稍微有点出入(跟具体你使用的模型有关系)。

你只需要关心的是:向新创建的机器人发个消息。

## 六、给新机器人发送消息

飞书有个通知,你点进去就能跟新机器人对话。

<img src="assets/image-20260329020142441.png" alt="image-20260329020142441" width="50%" height="50%" />

随便跟新机器人发个消息。这部分目的是让机器人自动配置 allowFrom 。

**如果这一步失败(发了很多次消息也没收到回复),看后续的常见问题。*

_meta.json

{
  "ownerId": "kn7bwndntrb0f2fdex1qd1tnmn826g6n",
  "slug": "openclaw-new-agent",
  "version": "1.2.1",
  "publishedAt": 1774877557342
}

CLAUDE.md

# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## 项目概述

这是一个 Claude Code Skill(非传统代码项目),用于在 OpenClaw 上创建多个独立的飞书机器人 Agent。

## 项目结构

```
openclaw-new-agent/
├── SKILL.md          # Skill 定义文件(核心)
├── README.md         # 用户文档
└── assets/           # README 中的图片资源
```

## 重要说明

这是一个 Skill 包仓库,不是传统应用项目:
- **无构建命令** — 无需编译、打包
- **无测试命令** — 无单元/集成测试
- **无 lint 命令** — 无代码检查

## 主要文件

- **SKILL.md** — Skill 的完整定义,包含创建飞书机器人的分步流程(收集配置 → 备份 → 创建工作区 → 修改配置 → 验证)
- **README.md** — 用户面向的文档,说明痛点和解决方案

## 工作区结构

OpenClaw 的工作区位于 `~/.openclaw/`,结构如下:

```
~/.openclaw/
├── openclaw.json                    # 主配置文件
├── workspace/                       # 主工作区
└── workspace-{name}/               # Agent 工作区(平级)
    ├── SOUL.md                      # Agent 角色定义
    ├── USER.md                      # 用户信息
    ├── AGENTS.md                    # 工作区说明
    └── memory/                      # 每日工作日志
```

## 常用命令

OpenClaw 自身命令(在本机已安装 openclaw 时使用):

```bash
# 验证配置
openclaw doctor --non-interactive

# 重启 Gateway
openclaw gateway restart

# 查看日志
cat ~/.openclaw/logs/gateway.log
```

## 相关文档

- OpenClaw 官方文档:`~/.nvm/versions/node/v22.22.1/lib/node_modules/openclaw/docs/`
- 飞书插件文档:`~/.openclaw/extensions/openclaw-lark/`

skill-card.md

## Description:

在 OpenClaw 上创建新的独立飞书机器人(多账号模式)。当用户要求创建新的飞书机器人、新增 Agent、部署第二个机器人时使用。流程包括:收集配置信息、备份、创建工作区、修改配置和验证。

This skill is ready for commercial/non-commercial use.

## Publisher:

[itzhouq](https://clawhub.ai/user/itzhouq)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and OpenClaw operators use this skill to add another independent Feishu bot agent to an existing OpenClaw setup. It guides collection of bot credentials, configuration backup, workspace creation, OpenClaw configuration patching, and post-change validation.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill may modify ~/.openclaw and OpenClaw gateway configuration.

Mitigation: Review proposed configuration patches, keep a backup of openclaw.json, and validate with openclaw doctor before relying on the new bot.

Risk: Feishu App Secrets may be exposed if pasted into ordinary chat or retained in logs/transcripts.

Mitigation: Enter secrets locally or through a secret manager when possible, restrict permissions on openclaw.json and backups, and rotate any secret that was already exposed.

Risk: Mutable installer commands such as clawhub@latest can change what is installed over time.

Mitigation: Prefer a pinned, reviewed installer version for repeatable installation.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/itzhouq/skills/openclaw-new-agent)
- [Publisher profile](https://clawhub.ai/user/itzhouq)
- [ClawHub homepage from clawdis metadata](https://clawhub.com)
- [Feishu OpenClaw multi-agent app template](https://open.feishu.cn/page/openclaw?form=multiAgent)
- [Introduction video](https://www.bilibili.com/video/BV16fXLBkEwo)
- [Demo video](https://www.bilibili.com/video/BV1cUXaBsEM1)

## Skill Output:

**Output Type(s):** [guidance, markdown, code, shell commands, configuration]

**Output Format:** [Markdown guidance with inline shell commands, JSON configuration examples, and workspace file templates]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May ask the user for Feishu App ID, App Secret, bot name, workspace name, and testing details before proposing local OpenClaw configuration changes.]

## Skill Version(s):

1.2.1 (source: server release metadata, SKILL.md frontmatter, and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Openclaw New Agent and adjacent AI workflows.