← Back to Skills Marketplace
82
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install unified-kb
Description
统一知识库入口技能(#kb)。当用户发送内容并标记 #kb 时触发。 自动完成:素材下载 → IMA 知识库存储 → workspace/kb 归档 → memory 记录。 支持:微信公众号文章、网页链接、YouTube 视频(字幕提取)、纯文本、文件路径。
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install unified-kb - After installation, invoke the skill by name or use
/unified-kb - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
新增:KB索引自动重建机制(步骤⑥);修复:store_kb.py自动触发rebuild_kb_index.py
Metadata
Frequently Asked Questions
What is 统一知识库(#kb)?
统一知识库入口技能(#kb)。当用户发送内容并标记 #kb 时触发。 自动完成:素材下载 → IMA 知识库存储 → workspace/kb 归档 → memory 记录。 支持:微信公众号文章、网页链接、YouTube 视频(字幕提取)、纯文本、文件路径。 It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.
How do I install 统一知识库(#kb)?
Run "/install unified-kb" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 统一知识库(#kb) free?
Yes, 统一知识库(#kb) is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 统一知识库(#kb) support?
统一知识库(#kb) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 统一知识库(#kb)?
It is built and maintained by sundmop (@sundmop); the current version is v1.1.0.
More Skills