← Back to Skills Marketplace
zhbgyj

Knowledge

by zhbgyj · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1178
Downloads
0
Stars
20
Active Installs
1
Versions
Install in OpenClaw
/install knowledge
Description
本地知识库集成 - 文档检索、投喂、双轨模式切换
README (SKILL.md)

本地知识库

使用方法

命令 说明
"查一下 xxx" 搜索知识库
"切换到本地知识库" 使用本地检索
"切换到 AnythingLLM" 使用对话模式
"知识库统计" 查看文档数量

文件位置

  • 知识库根目录:E:/knowledge-base
  • API服务:http://127.0.0.1:8001
Usage Guidance
This skill appears to implement a local knowledge‑base frontend, which is reasonable. Before installing or enabling it, check the following: 1) The skill's openclaw_skill.py imports handle_request from scripts/openclaw_integration that is not included—find and review that module's source (E:/knowledge-base/scripts/openclaw_integration.py) to ensure it does not execute unwanted actions or exfiltrate data. 2) Confirm you trust the local API at http://127.0.0.1:8001 and the configured KB root (E:/knowledge-base); those endpoints/files could be read or written by the skill. 3) Because the skill executes local Python code, consider running it in an isolated environment (VM/container) or obtaining the complete source from a trusted origin. If you cannot inspect the missing module or verify the local service, treat the skill as potentially unsafe.
Capability Analysis
Type: OpenClaw Skill Name: knowledge Version: 1.0.0 The `openclaw_skill.py` file directly passes user-controlled input (extracted as `query`) to the `handle_request` function without explicit sanitization. This `handle_request` function is expected to interact with a local API service (`http://127.0.0.1:8001` as indicated in `SKILL.md`). This pattern creates a significant risk of injection vulnerabilities (e.g., shell injection, API parameter injection) if the `handle_request` implementation or the local API does not properly sanitize or escape the `query` before processing, potentially leading to unauthorized command execution or data manipulation on the local system.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md (E:/knowledge-base root and localhost API) and the code all point to a local KB integration; this is coherent. However the runtime code depends on an external local module scripts/openclaw_integration (imported via sys.path modification) which is not bundled or documented in SKILL.md. The hard-coded Windows path (E:/knowledge-base) is also a platform assumption.
Instruction Scope
SKILL.md instructs use of a local API and KB path and does not disclose that the skill's Python file will import and execute a local module. That imported module (handle_request) is responsible for network/file operations and is absent from the package—its behavior is unknown and could access arbitrary local files or external endpoints.
Install Mechanism
No install spec and no external downloads; the skill is instruction+code only, so nothing extra is pulled from the network by the skill bundle itself.
Credentials
The skill declares no required environment variables or credentials, which is proportionate to a local KB integration. Note: it relies on local filesystem paths and a localhost API endpoint, which are reasonable but sensitive resources.
Persistence & Privilege
The skill does not request always:true or elevated platform privileges and does not modify other skills. The main risk is that it will import/execute code from a local scripts directory which may persist or behave beyond the skill's apparent scope.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install knowledge
  3. After installation, invoke the skill by name or use /knowledge
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- 初始版本发布,集成本地知识库功能 - 支持文档检索、知识投喂、双轨(本地/AnythingLLM)模式切换 - 提供常用命令,包括切换模式与知识库统计 - 明确知识库文件位置和API服务地址
Metadata
Slug knowledge
Version 1.0.0
License
All-time Installs 22
Active Installs 20
Total Versions 1
Frequently Asked Questions

What is Knowledge?

本地知识库集成 - 文档检索、投喂、双轨模式切换. It is an AI Agent Skill for Claude Code / OpenClaw, with 1178 downloads so far.

How do I install Knowledge?

Run "/install knowledge" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Knowledge free?

Yes, Knowledge is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Knowledge support?

Knowledge is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Knowledge?

It is built and maintained by zhbgyj (@zhbgyj); the current version is v1.0.0.

💬 Comments