Xpersona
百

百科虾

CLAWHUB · Unverified

蜗牛公司百科虾技能包。为员工解答公司相关问题(制度、福利、流程、组织架构等)。当用户询问公司相关问题时触发。知识库没有的问题一律不答,不编造,不联网搜索。 Skill: 百科虾 Owner: beyondbright Summary: 蜗牛公司百科虾技能包。为员工解答公司相关问题(制度、福利、流程、组织架构等)。当用户询问公司相关问题时触发。知识库没有的问题一律不答,不编造,不联网搜索。 Tags: latest:2.2.1 Version history: v2.2.1 | 2026-04-07T15:34:37.906Z | user 修复乱码检测,更新AGENTS.md消息发送规范,更新MEMORY.md自检机制 v2.5.0 | 2026-04-05T14:25:42.555Z | user docs: sync SKILL.md knowledge paths and mention format v2.4.0 | 2026-04-05T14:20:56.092Z | user perf: search index cache + feishu token cache f

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/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 s17f81b6vdwyrc6srjwnzegzq983hdat:walter-baikexia
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  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-beyondbright-walter-baikexia/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

62,252 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: baikexia
description: 蜗牛公司百科虾技能包。为员工解答公司相关问题(制度、福利、流程、组织架构等)。当用户询问公司相关问题时触发。知识库没有的问题一律不答,不编造,不联网搜索。
---

# 百科虾技能包

蜗牛公司百科虾知识库 Q&A 技能。

## 文件结构

```
walter-baikexia/
├── SKILL.md                    # 本文件
├── scripts/
│   ├── search.js               # 搜索脚本(提取 AT 标签上下文)
│   ├── send-message.js         # 飞书消息发送(含 mention 支持)
│   ├── sync.js                 # 知识库同步脚本
│   └── wiki_list.json          # Wiki 列表配置(同步目标)
```

**注意:** 凭证存储在 `openclaw.json` 中;缓存放在 agent workspace(`~/.openclaw/workspace-{agentName}/`)下。

## 部署步骤

### Step 1:创建 Agent

在 OpenClaw 中创建独立的 agent(例如 `baikexia`),确保 agent 的 workspace 路径为 `~/.openclaw/workspace-baikexia/`。

### Step 2:安装本 Skill

**在 agent 对话中**执行安装,skill 会装到该 agent 的 workspace 下:

```bash
openclaw skills install walter-baikexia
```

安装后 skill 位于:`~/.openclaw/workspace-baikexia/skills/walter-baikexia/`

### Step 3:配置角色文件

从本文件末尾「Agent 角色定义」章节复制模板内容,分别写入 agent workspace:

- `~/.openclaw/workspace-baikexia/SOUL.md` — 行为准则
- `~/.openclaw/workspace-baikexia/AGENTS.md` — 工作手册

### Step 4:初始化知识库

```bash
# 在 agent workspace 下执行(skill 位于 skills/walter-baikexia/)
node skills/walter-baikexia/scripts/sync.js --agent=baikexia
```

成功后会生成 agent workspace 下的 `cache/content.json`(知识库内容)和 `cache/metadata.json`(同步元数据)。

## 管理员命令

| 命令 | 操作 |
|------|------|
| `同步知识库` | 执行 `sync.js` 增量同步(内容变化才更新) |
| `同步知识库 --force` | 强制全量同步 |
| `同步状态` | 读取 agent workspace 下 `cache/metadata.json` 汇报同步状态 |

**注意:** 所有 `sync.js` 命令都需要加 `--agent=<name>` 参数指定 agent 名称。

## 核心文件说明

### scripts/send-message.js

通过飞书 IM API 发送消息,支持 mention(@人)和图片。

```
node send-message.js <receive_id> <receive_id_type> [content_file]
```

- `receive_id`:接收者 ID(open_id / user_id 等)
- `receive_id_type`:ID 类型(`open_id` / `user_id` 等)
- `content_file`:消息内容文件路径,默认从 stdin 读取

**mention 格式**:使用 `『AT:user_id』` 格式,脚本会自动转换为飞书 at 标签发送。

### scripts/sync.js

从飞书知识库同步文档内容到本地缓存。

- 凭证从 `openclaw.json` 的 `channels.feishu.accounts[<agentName>]` 读取
- 缓存输出到 agent workspace 下的 `cache/content.json`
- 支持增量同步(hash 对比)
- `--force` 参数强制全量同步

### scripts/wiki_list.json

定义要同步的 Wiki 列表,格式如下:

```json
{
  "wikis": [
    {
      "name": "蜗牛大百科",
      "url": "https://campsnail.feishu.cn/wiki/VGRRw7s4BiStank4GnpczxnGn44"
    }
  ]
}
```

新增 Wiki 时,在此文件添加一条即可。

## 知识库路径

Agent 运行时通过以下路径读取知识库(相对于 agent workspace):

- 内容:`cache/content.json`
- 元数据:`cache/metadata.json`
- 同步图片:`cache/images/`
- 搜索索引:`cache/search_cache.json`(自动缓存,content.json 变化时重建)
- 临时文件:`temp/temp_{sender_id}.txt`

## 注意事项

- `cache/` 目录为运行时生成,不属于 skill 源码,无需提交
- 凭证存储在 `openclaw.json` 中,由 agent-factory 管理,勿手动修改
- 知识库同步需要机器能访问飞书 API(`open.feishu.cn`)
- sync.js 需要 `--agent=<name>` 参数指定 agent 名称

---

## Agent 角色定义

供 agent-factory 创建新 agent 时复制到目标 workspace 的模板文件,内容分为三部分:

---

### → IDENTITY.md(身份)

```markdown
# IDENTITY.md - 百科虾

- **Name:** 百科虾
- **Creature:** AI助手
- **Vibe:** 实事求是,只答知识库有的

_meta.json

{
  "ownerId": "kn785yck10am5nvt1p28ekqdqh82mcj9",
  "slug": "walter-baikexia",
  "version": "2.2.1",
  "publishedAt": 1775576077906
}

scripts/wiki_list.json

{
  "wikis": [
    {
      "name": "蜗牛大百科",
      "url": "https://campsnail.feishu.cn/wiki/VGRRw7s4BiStank4GnpczxnGn44"
    }
  ]
}

skill-card.md

## Description:

蜗牛公司百科虾技能包。为员工解答公司相关问题(制度、福利、流程、组织架构等)。当用户询问公司相关问题时触发。知识库没有的问题一律不答,不编造,不联网搜索。

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Employees use this skill to ask company-specific questions about policies, benefits, workflows, organization structure, onboarding, and frequently asked procedures. Administrators can synchronize the Feishu knowledge base and manage local cache status for the agent.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can use local Feishu credentials to send messages and upload local files with weak path and account controls.

Mitigation: Use a dedicated least-privilege Feishu app account, restrict who can run sync and messaging scripts, and patch path containment, account fallback, redirect-token handling, and verbose logging before production use.

Risk: Untrusted synchronized wiki content can contain MEDIA markers that influence which local files are uploaded.

Mitigation: Reject untrusted wiki content, validate MEDIA entries against expected cache directories, and review synchronized content before enabling automated Feishu sends.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/beyondbright/skills/walter-baikexia)
- [蜗牛大百科 Feishu wiki](https://campsnail.feishu.cn/wiki/VGRRw7s4BiStank4GnpczxnGn44)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Plain text or Markdown with optional Feishu mention tags, MEDIA references, and inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Responses are intended to be grounded in synchronized knowledge-base content and may be sent through Feishu messaging scripts when mentions or media are present.]

## Skill Version(s):

2.2.1 (source: server release evidence)

## 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 百科虾 and adjacent AI workflows.