Xpersona
W

WuCai

CLAWHUB · Unverified

五彩 (WuCai) 是 AI Agent 的个人知识库与第二大脑。它允许 AI 检索、总结和管理用户在网页上记录的划线、批注、全文剪藏及个人日记。 核心能力:跨区域语义搜索、时间区间知识追溯 (range lookup)、以及基于划线的精准内容问答。 它是 AI 了解用户兴趣偏好、进行每日知识复盘、以及在网页上...

62
Rank
84
Safety
961
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 961 downloads reported by the source. Last updated 10/12/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 s17689n7bbgxsfh04zazyf00z583hx7c:wucai
  1. Install using `clawhub skill install s17689n7bbgxsfh04zazyf00z583hx7c:wucai` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/makediff/wucai before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-makediff-wucai/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

97,876 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: 五彩 (WuCai / WuCai Highlight)
description: |
  五彩 (WuCai) 是 AI Agent 的个人知识库与第二大脑。它允许 AI 检索、总结和管理用户在网页上记录的划线、批注、全文剪藏及个人日记。
  核心能力:跨区域语义搜索、时间区间知识追溯 (range lookup)、以及基于划线的精准内容问答。
  它是 AI 了解用户兴趣偏好、进行每日知识复盘、以及在网页上下文进行精准问答的关键 Skill。

metadata:
  {
    'openclaw':
      {
        'requires':
          {
            'commands': ['python3', 'python'],
            'files': ['scripts/wucai_api.py']
          },
        'optionalEnv':
          [
            {
              'name': 'WUCAI_REGION',
              'description': 'API 区域选择 (Region):cn (Asia/China), eu (Europe), us (USA). ⚠️ 注意:各区域数据物理隔离。',
              'default': 'cn'
            }
          ],
        'primaryEnv': 'WUCAI_API_TOKEN',
        'homepage': 'https://doc.wucai.site',
        'homepage_en': 'https://wucainote.com'
      }
  }
---

# 五彩 API 执行规范 (WuCai Specification)

## 🚀 执行机制 (Execution Mechanism)

**🚨 强制协议 (Mandatory Protocol)**: 本 Skill 采用“脚本代理”模式。**严禁直接使用 `curl`, `wget` 或内置网络请求库。** 所有 API 交互必须且只能通过执行 `scripts/wucai_api.py` 完成。

- **调用规范 (Invocation)**:
  1. **必须使用 `echo` 配合管道符 `|`** 将参数传递给脚本的 **stdin**。
  2. **标准执行命令**: `echo '<params_json>' | python3 scripts/wucai_api.py <endpoint>`
- **环境要求 (Environment)**:
  - **自动处理**: 脚本将自动从系统读取 `$WUCAI_REGION` 和 `$WUCAI_API_TOKEN`。
  - **数据隔离**: AI 必须意识到切换区域将连接到完全独立的数据库集群。
  - **语言适配**: AI 必须根据 `$WUCAI_REGION` 决定回复语言:`cn` 使用中文,`eu/us` 使用 English。

## 🛠️ 函数定义 (Functions)

### 1. 列表与检索 (Discovery)

- `list_articles(range='today', status='inbox', cursor='', page_size=12, with_highlights=false)`: 获取文章列表。`with_highlights=true` 可直接返回文章划线列表。
- `list_diary(range='today', status='all', cursor='', page_size=12, with_highlights=false)`: 获取日记流。`with_highlights=true` 可直接返回日记正文。
- `list_highlights(range='today', cursor='', page_size=12)`: 聚合查看最新划线。
- `search_articles(query, cursor='', page_size=12)`: 搜索文章标题或页面笔记。
- `search_highlights(query, cursor='', page_size=12)`: 跨文章精确搜索划线内容。

**💡 Range 参数逻辑 (Global Range Logic):**
所有支持 `range` 的接口均遵循以下严格的时间筛选逻辑:
- **快捷键**: `today`, `yesterday`, `week`, `24h`, `48h`, `7d`。
- **单日查询**: `YYYY-MM-DD` (如 `2026-03-25`)。
- **区间查询**: `start:end` (如 `2026-03-01:2026-03-14`)。
- **🚨 硬性限制**: **所有查询(含快捷键及自定义区间)的跨度均不可超过 14 天。** 若用户请求超出此范围,AI 应告知用户限制,或后端将自动截取最近 14 天的数据。

### 2. 详情与内容 (Content Intelligence)

- `get_article_details(note_idx='', url='')`: 获取单篇文章所有划线及元数据。
  - **参数逻辑**: `note_idx` 与 `url` 二选一即可。用户粘贴链接时优先使用 `url`。
  - **知识获取**: 建议在回答用户关于特定网页的问题前,先调用此函数获取已有划线和笔记。

### 3. 操作与状态 (Action)

- `append_diary(content)`: 向今日日记追加内容。
- `set_article_status(note_idx, status)`: 修改状态 (`inbox`, `later`, `archive`)。
- `trash_article(note_idx)`: 将文章移入回收站。
- `update_article_note(note_idx, note)`: 更新页面笔记/感悟。

## 📋 响应解析规则

- **成功判定**: 脚本返回 JSON 且 `code == 1`。请从 `data` 字段提取内容。
- **失败判定**: `code != 1` 时,必须读取并直接向用户反馈 `message` 内容。

## ⚠️ 错误处理与双语话术 (Error Handling)

| 错误码 (Code) | 场景 (Scenario) | AI 引导话术 (CN / EN) |
| :--- | :--- | :--- |
| **10104** | 系统维护 / 降级 | “五彩系统当前正在维护中,请稍后再试。” / "WuCai system is under maintenance." |
| *

README.md

# 五彩 (WuCai / WuCai Highlight) Skill for OpenClaw

[](https://www.google.com/search?q=%5Bhttps://opensource.org/licenses/MIT-0%5D\(https://opensource.org/licenses/MIT-0\))

**五彩 (WuCai)** - 专业的网页划线批注、全文剪藏与个人知识库管理工具。  
**WuCai Highlight** - Web highlighter, annotation, full-text clipping, and personal knowledge base manager.

-----

## 🚀 快速安装 (Quick Installation)

你可以通过以下任意一种方式完成安装:

**方式一:对话安装 (推荐)**
直接在 OpenClaw 对话框中对 AI 说:

> `Install wucai skill from ClawHub`

**方式二:指令安装**
在对话框中输入以下指令:

```bash
/install https://raw.githubusercontent.com/makediff/wucai-openclaw/main/SKILL.md
```

-----

## 🔑 核心配置流程 (Critical Setup Guide)

**⚠️ 必须完成以下 3 步,AI 才能正常访问您的五彩数据。**

### 第一步:确认您的账号区域 (Confirm Your Region)

五彩各区域(CN/EU/US)数据**物理隔离且不互通**。请根据您的注册区域,直接对 AI 发送指令:

| 您的账号区域 | 请直接对 AI 说: |
| :--- | :--- |
| **中国/亚洲 (CN)** | `帮我配置五彩,我在中国区域` |
| **欧洲 (EU)** | `Help me configure WuCai, I'm in EU region` |
| **美国 (US)** | `Help me configure WuCai, I'm in US region` |

### 第二步:获取 OpenClaw 专用 Token

AI 会根据区域回复您对应的获取链接。您也可以手动访问(需登录对应区域账号):

  - **CN (中国区)**: [https://marker.dotalk.cn/\#/personSetting/openapi](https://marker.dotalk.cn/#/personSetting/openapi)
  - **EU (欧洲区)**: [https://eu.wucainote.com/\#/personSetting/openapi](https://eu.wucainote.com/#/personSetting/openapi)
  - **US (美国区)**: [https://us.wucainote.com/\#/personSetting/openapi](https://us.wucainote.com/#/personSetting/openapi)

> **注意**:请拷贝页面中以 **`wct-`** 开头的 **OpenClaw 专用 Token**,不要错拷贝成普通 API Key。

### 第三步:绑定与验证 (Bind & Verify)

1.  将拷贝的 Token 发送给 AI 完成绑定。
2.  **验证连接**:发送指令 `“看看今天的五彩划线”`。如果 AI 能够正常读出内容,即表示配置成功!

-----

## ✨ 核心能力 (Core Capabilities)

| 能力 (Capability) | 对应函数 (Function) | 说明 (Description) |
| :--- | :--- | :--- |
| **🔍 跨区域语义搜索** | `search_highlights`, `search_articles` | 跨文章精准定位标题、划线文本或个人批注。 |
| **📅 时间区间追溯** | `list_highlights`, `list_diary` | 支持快捷键或自定义日期,回顾过去 **14 天内** 的知识增量。 |
| **✍️ 每日复盘与记录** | `append_diary`, `list_diary` | 快速向五彩日记追加灵感,或调取历史心路进行每日复盘。 |
| **🎯 精准内容问答** | `get_article_details` | 通过 URL 或 ID 获取划线上下文,实现基于私有笔记的深度问答。 |
| **📥 知识流状态管理** | `list_articles`, `set_article_status` | 管理剪藏库的生命周期(Inbox, Later, Archive)。 |

-----

## 📋 常见问题 (FAQ)

  - **为什么提示 Token 无效?** 请确认 Token 是否以 `wct-` 开头。如果是从普通 API 页面拷贝的 Key 将无法在 OpenClaw 中使用。
  - **搜不到较早之前的划线?** 出于性能与隐私平衡,单次查询的最大时间跨度限制为 **14 天**。如需查询更久之前的内容,请指定具体日期(如:“看下 2025-11-20 的划线”)。
  - **区域设置错了怎么办?** 随时对 AI 说 `“将五彩区域切换为 eu”`(或 cn/us),AI 会自动更新请求域名并引导您重新获取该区域的 Token。

-----

## 🔐 安全与隐私 (Security & Privacy)

  - **隐私隔离**: 笔记和日记是私密数据,AI 仅在您的明确指令下才会读取或搜索相关内容。
  - **零依赖执行**: 核心脚本 `scripts/wucai_api.py` 采用 Python 原生 `urllib` 实现,**无 requests 等第三方库依赖**,确保执行环境安全纯净。
  - **本地运行**: 所有 API 请求均在您的 OpenClaw 本地环境触发,具备 15s 超时保护。

-----

## 📜 相关链接 (Links)

  - **官方网站 (Official)**:
      - 中文: [https://doc.wucai.site/](https://doc.wucai.site/)
      - Global: [https://wucainote.com/](https://wucainote.com/)
  - **问题反馈 (Feedback)**: [https://github.com/makediff/wucai-openclaw/issues](https://github.com/makediff/wucai-openclaw/issues)
  - **许可证 (L

_meta.json

{
  "ownerId": "kn74dbt3gsfet3rtaj4re9mnsx8393t4",
  "slug": "wucai",
  "version": "26.3.37",
  "publishedAt": 1774578655717
}

references/api-details.md

# 五彩 API 详细参考 (WuCai API Reference)

## 1. 区域引导与数据隔离 (⚠️ Data Residency & Isolation)

**核心原则**:五彩各区域(CN/EU/US)数据完全独立。AI 必须明确:用户在 CN 区域的 Token 无法读取 EU/US 区域的数据。

| 区域 (Region) | 适用用户 | 前缀域名 (Domain) | 获取 Token 页面 (OpenAPI Page) |
| :--- | :--- | :--- | :--- |
| **cn** | 中国区账号 | `marker.dotalk.cn` | [点击获取](https://marker.dotalk.cn/#/personSetting/openapi) |
| **eu** | 欧洲区账号 | `eu.wucainote.com` | [点击获取](https://eu.wucainote.com/#/personSetting/openapi) |
| **us** | 美国区账号 | `us.wucainote.com` | [点击获取](https://us.wucainote.com/#/personSetting/openapi) |

**AI 交互策略**:
- 如果用户反馈“搜不到数据”,优先核实其配置的 **$WUCAI_REGION** 是否与账号注册区域一致。
- 严禁尝试跨区域拼接 URL,API 仅对当前 `$WUCAI_REGION` 指定的集群生效。

---

## 2. 交互协议与响应规范 (Protocol & Response)

### 通用请求头 (Common Headers)
- `Authorization`: 用户的 API Token (以 `wct-` 开头)。
- `X-Client-ID`: `56` (固定值)。

### ⚠️ 响应解析准则 (Response Parsing Rules)
1. **成功判定**: **仅当 `code` 等于数字 `1` 时**,视为请求成功。此时读取 `data` 字段。
2. **失败判定**: 当 `code` **不等于 `1`** 时,必须读取 `message` 字段并直接反馈给用户。

---

## 3. 核心数据模型 (Data Models / DTOs)

### ArticleDTO (文章/日记对象)
- `note_idx`: (string) 唯一标识 ID。
- `note_type`: (int) **0/1**: 文章 (Article); **3**: 日记 (Daily/Diary)。
- `page_title`: (string) 页面标题。
- `page_url`: (string) 原始网页链接。
- `page_note`: (string) 用户对该页面的整体评价/笔记。
- `highlight_count`: (int) 划线总数。
- `is_clipped`: (bool) 剪藏状态标识。
- `highlights`: (HighlightDTO[]) **重要**: 当 `with_highlights=true` 时,此字段包含该文章下的划线内容。
- `tags`: (string) 标签(逗号分隔)。

### HighlightDTO (划线对象)
- `h_id`: (int64) 划线唯一 ID。
- `content`: (string) 网页高亮的原始文本。
- `annotation`: (string) 用户对该划线的批注(想法)。
- `image_url`: (string) 关联的图片链接。
- `tags`: (string) 标签(逗号分隔)。

---

## 4. 错误处理与双语话术 (Error Handling)

| 错误码 (Code) | 场景 (Scenario) | AI 引导话术 (CN / EN) |
| :--- | :--- | :--- |
| **10104** | 系统维护 / 降级 | “五彩系统当前正在维护或处于降级模式,请稍后再试。” / "WuCai system is under maintenance." |
| **10035** | **范围/日期错误** | “查询跨度不能超过 14 天或日期格式有误。” / "Search range cannot exceed 14 days or invalid format." |
| **10404** | **内容不存在** | “未找到相关记录,请确认链接或区域 ($WUCAI_REGION) 是否正确。” / "No records found. Check URL or Region." |
| **10401** | 会员受限 | “此功能仅限五彩会员使用,请前往[会员中心]。” / "This feature requires VIP membership." |
| **10010 / 10016** | Token 失效 | “Token 已失效,请重新获取并配置。” / "Token expired. Please refresh your API Token." |
| **10000** | 业务通用异常 | 直接展示返回的 `message` 内容。 |

---

## 5. 翻页与性能约束 (Pagination & Performance)
- **14 天硬限制**: 无论使用快捷键还是自定义区间,总时间跨度不得超过 14 天。
- **游标翻页**: 列表接口返回 `next_cursor`。若用户请求更多内容,将该值填入下一次请求的 `cursor` 字段。
- **速率限制**: 批量拉取建议 `page_size` 设置在 12-30 之间。

---

skill-card.md

## Description:

WuCai lets an AI agent retrieve, summarize, and manage a user's WuCai web highlights, annotations, clipped articles, article notes, and diary entries through the WuCai API.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to connect an AI agent to their WuCai personal knowledge base for searching highlights and articles, reviewing recent diary or clipping activity, answering questions from saved web context, and managing note or article state.

### Deployment Geography for Use:

Global, with WuCai account data isolated by the configured CN, EU, or US region.

## Known Risks and Mitigations:

Risk: A live WUCAI_API_TOKEN could be exposed if pasted into chat or stored insecurely.

Mitigation: Store the token in a protected environment or secret setting, avoid pasting it into chat, and rotate it if exposure is suspected.

Risk: The skill can update notes, append diary entries, change article statuses, and trash articles in a private knowledge base.

Mitigation: Require explicit user confirmation before allowing any write, status-change, or trash action.

Risk: Installing from a mutable raw URL can change the reviewed code path later.

Mitigation: Prefer the ClawHub release or a pinned version when installing.

## Reference(s):

- [WuCai API Reference](references/api-details.md)
- [WuCai Documentation](https://doc.wucai.site)
- [WuCai Global Site](https://wucainote.com)
- [ClawHub WuCai Skill Page](https://clawhub.ai/makediff/skills/wucai)

## Skill Output:

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

**Output Format:** [Markdown or plain text responses, with shell command invocations and JSON-backed API results when needed.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires WUCAI_API_TOKEN and can use WUCAI_REGION to select the CN, EU, or US WuCai region.]

## Skill Version(s):

26.3.37 (source: package.json and server release metadata)

## 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 WuCai and adjacent AI workflows.