← 返回 Skills 市场
82
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install unified-kb
功能描述
统一知识库入口技能(#kb)。当用户发送内容并标记 #kb 时触发。 自动完成:素材下载 → IMA 知识库存储 → workspace/kb 归档 → memory 记录。 支持:微信公众号文章、网页链接、YouTube 视频(字幕提取)、纯文本、文件路径。
安全使用建议
This skill is plausibly doing what it says (ingesting links/text into a KB), but it has several red flags you should clear up before installing or giving it access to your environment:
- Credentials and secrets: The script expects IMA credentials but reads them from /home/xdl/.openclaw/workspace/.secrets/ima.env (not the declared env vars). Ask the author to (a) clearly declare required env vars or config paths in the registry metadata, and (b) prefer standard environment variables or an explicit config prompt instead of silently reading a file in a fixed path.
- Hard-coded destination: It contains a hard-coded IMA_KB_ID and will store uploads to that KB by default without asking. Confirm who owns that KB ID and change the code to require user confirmation or configuration before uploading.
- Cookie and local file access: YouTube subtitle download uses a fixed cookie file (/tmp/youtube_cookies.txt). That file may contain sensitive cookies. Only provide such a cookie file in a controlled/sandboxed environment and prefer a per-run prompt instead of a fixed path.
- Undeclared runtime dependencies: yt-dlp, node, and (optionally) Whisper/other transcription tools are required at runtime but not listed. Ensure those binaries are installed from trusted sources or run the skill in an isolated environment.
- Third-party scripts: The skill invokes a local wechat-article-reader script at a fixed path. Verify the origin and contents of that script before running.
- Recommended actions before use: (1) Request the skill author to update metadata to list required env vars and paths; (2) remove or make configurable the hard-coded IMA_KB_ID and fixed cookie path; (3) prefer explicit credential prompts or documented env var names; (4) audit network endpoints (ima.qq.com) and the wechat script; (5) run first in a sandboxed account or container and inspect what files it reads/writes. If the author cannot or will not make these changes, treat the skill as untrusted and do not provide real credentials or cookies.
功能分析
Type: OpenClaw Skill
Name: unified-kb
Version: 1.1.0
The skill provides a unified knowledge base entry system but contains a significant security vulnerability: it allows reading arbitrary local files via the 'file' content type without any path sanitization or validation in `scripts/store_kb.py`. An attacker or a malicious prompt could trick the agent into reading sensitive files (e.g., SSH keys, `/etc/passwd`, or the `.secrets/ima.env` file itself) and uploading them to the IMA cloud or local storage. Additionally, the script relies on hardcoded absolute paths and executes a local rebuild script, which increases the risk of unauthorized file access or execution in non-standard environments.
能力标签
能力评估
Purpose & Capability
The skill claims no required env vars/config paths in registry metadata, yet the runtime instructions and scripts require IMA credentials and specific filesystem paths. The script hard-codes a target IMA knowledge-base ID (IMA_KB_ID) and writes into local workspace paths (/home/xdl/.openclaw/workspace/kb, memory). These behaviors are consistent with a KB-ingest skill, but they are not declared in metadata and the hard-coded default destination (writing without user confirmation) is surprising.
Instruction Scope
SKILL.md and store_kb.py instruct the agent to read local files (workspace .secrets/ima.env), a fixed cookies file (/tmp/youtube_cookies.txt), call an external wechat-article-reader script, invoke yt-dlp/node for subtitle download, and write files into workspace/kb and memory. Those actions are within the stated ingestion purpose, but they expand scope to access local secrets and cookies and to perform network calls and binary execution — all of which were not declared in the registry metadata.
Install Mechanism
This is an instruction-only skill (no install spec), which reduces install-time risk. However, runtime depends on external binaries and libraries (yt-dlp, node, python3, possibly Whisper and yt-dlp JS runtime) and on a local wechat-article-reader script. Those runtime dependencies are not declared in metadata and could fail or cause unexpected behavior if missing.
Credentials
Registry lists no required env vars, but SKILL.md states IMA credentials come from environment variables and the script actually loads credentials from /home/xdl/.openclaw/workspace/.secrets/ima.env. The script will attempt to use IMA credentials (to call https://ima.qq.com) and a fixed cookie file for YouTube. Access to these secrets and cookies is plausible for the task but is not proportional to what was declared and is not opt-in: it defaults to a hard-coded KB ID and silent uploads to that KB.
Persistence & Privilege
The skill does write files into its own workspace (kb/ and memory/) and contacts external services (IMA, YouTube), but it does not request always:true or other elevated platform privileges. It does not appear to modify other skills or global agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install unified-kb - 安装完成后,直接呼叫该 Skill 的名称或使用
/unified-kb触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
新增:KB索引自动重建机制(步骤⑥);修复:store_kb.py自动触发rebuild_kb_index.py
元数据
常见问题
统一知识库(#kb) 是什么?
统一知识库入口技能(#kb)。当用户发送内容并标记 #kb 时触发。 自动完成:素材下载 → IMA 知识库存储 → workspace/kb 归档 → memory 记录。 支持:微信公众号文章、网页链接、YouTube 视频(字幕提取)、纯文本、文件路径。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。
如何安装 统一知识库(#kb)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install unified-kb」即可一键安装,无需额外配置。
统一知识库(#kb) 是免费的吗?
是的,统一知识库(#kb) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
统一知识库(#kb) 支持哪些平台?
统一知识库(#kb) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 统一知识库(#kb)?
由 sundmop(@sundmop)开发并维护,当前版本 v1.1.0。
推荐 Skills