← Back to Skills Marketplace
toughspider

本地知识库

by toughspider · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
450
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install knowledge-spider
Description
本地知识库支持存储、查询、删除和统计用户偏好、事实及其他信息,确保数据本地安全管理并优先使用。
README (SKILL.md)

name: knowledge-spider\r description: "本地知识库,支持存储、查询、删除和统计用户偏好、事实等信息。当用户提及「本地知识库」「我的知识库」或要求保存/查询/统计信息时使用。"\r ---\r \r

本地知识库技能\r

\r

When to use (必须使用本技能的场景)\r

  • 存储信息:当用户说“保存到本地知识库”、“记到我的知识库里”、“把这条信息加入知识库”等包含「本地知识库」「我的知识库」关键词的指令时,必须使用本技能。\r
  • 查询信息:当用户问“我的知识库里有什么?”、“从本地知识库查找...”、“我的知识库中有关于...的记录吗?”时,必须使用本技能。\r
  • 删除信息:当用户说“从知识库中删除...”、“忘掉这条记录”时,必须使用本技能。\r
  • 统计信息:当用户问“我的知识库里有多少条记录?”、“统计一下我的知识库”、“知识库的状态如何”时,必须使用本技能进行统计并返回记录总数。\r \r

使用原则\r

  • 优先使用知识库内容:当回答用户问题时,如果知识库中已有相关信息(如用户偏好、历史事实),应优先采用知识库中的内容进行回答,使回复更个性化和准确。\r
  • 自然语言存储:当用户要求保存信息时,自动提取核心内容存入知识库。\r \r

触发词示例\r

  • 保存到本地知识库\r
  • 记到我的知识库里\r
  • 从知识库查找...\r
  • 我的知识库中有...吗?\r
  • 统计我的知识库\r
  • 知识库有多少记录\r \r \r

执行流程\r

\r

  1. 识别意图:判断是存储、查询、删除还是统计\r
  2. 提取内容:清理"记录一下"等指令词,保留纯内容\r
  3. 执行操作:\r
    • 存储:写入 SQLite,自动分类(preference/fact/task/important)\r
    • 查询:语义搜索,按优先级排序返回\r
    • 删除:确认后移除记录\r
    • 统计:显示知识库状态\r
  4. 返回结果:用自然语言回复用户\r \r

分类标记\r

\r 自动检测内容类型:\r | 分类 | 检测关键词 | 说明 |\r |-----|----------|------|\r | preference | 喜欢、偏好、习惯、讨厌 | 用户偏好设置 |\r | important | 重要、关键、密码、密钥 | 关键信息 |\r | task | 任务、待办、截止、期限 | 待办事项 |\r | fact | 事实是、数据、研究表明 | 客观事实 |\r | general | 其他 | 一般信息 |\r \r

约束\r

\r

  • 存储前自动去重检测\r
  • 查询结果按时效性、频率、类型优先级排序\r
  • 删除前必须确认\r
  • 所有数据本地存储,不上传云端
Usage Guidance
What to check before installing: - Review the full src/index.py for any network or external-API usage (search for imports like requests, httpx, urllib, socket, http.client, openai, boto3, subprocess, os.environ access). If the code calls external services, that should be justified and declared. - Confirm provenance: ask the publisher for a homepage/repository or review history/author to establish trust. - Be cautious about storing sensitive items: the skill's classifier marks '密码/密钥' as 'important' — do not store unencrypted secrets or credentials in the DB; request encryption-at-rest or avoid storing such items. - Check file permissions and DB path (~/.openclaw/...): ensure only your user can read the DB (restrict filesystem permissions) and consider backups or export/import features. - If you lack ability to audit the code, run the skill in a sandboxed environment or deny autonomous invocation until audited. - If the skill is intended to replace the platform memory provider, test it in a controlled environment to ensure compatibility and no data exfiltration. If you want, I can scan the remainder of the source for network calls or suspicious patterns (provide the rest of src/index.py) and re-evaluate with higher confidence.
Capability Analysis
Type: OpenClaw Skill Name: knowledge-spider Version: 2.0.0 The 'knowledge-spider' skill is a legitimate local knowledge base implementation for OpenClaw. It uses SQLite to store and manage user-provided information such as preferences and facts, with all data operations restricted to a local directory (~/.openclaw/workspace/skills/knowledge-spider/data). The code in src/index.py uses parameterized queries to prevent SQL injection and contains no network calls, obfuscation, or evidence of data exfiltration.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md and skill.json describe a local knowledge base; the Python code shown creates a local data directory under the user's home and a SQLite DB and exposes store/search/delete/stats interfaces—this is coherent with the stated purpose.
Instruction Scope
SKILL.md confines operations to storing/querying/deleting/statistics and instructs local-only storage. It also marks certain content like '密码/密钥' as 'important' for storage — this is a functional/design choice but raises a sensitive-data consideration (should not store secrets unencrypted). No instructions in SKILL.md direct the agent to read unrelated system files or send data externally, but full code review is needed to ensure the implementation matches the doc.
Install Mechanism
No install spec (instruction-only) and no external installers are declared; the skill is shipped with a Python implementation and does not request downloading third-party packages at install time, which is low installation risk.
Credentials
The skill declares no required environment variables, binaries, or config paths. The code writes data under ~/.openclaw/... which is proportional to a local knowledge base. Verify the code does not silently read other env vars or files at runtime (e.g., API keys).
Persistence & Privilege
always:false and no special OS restrictions. The skill creates persistent files (SQLite DB) in the user's home directory which is expected for a memory provider. It also claims to '完全替代 memory-core' — replacing core memory behavior increases impact if the skill performs unexpected actions, so validate that behavior before granting broad use.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install knowledge-spider
  3. After installation, invoke the skill by name or use /knowledge-spider
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.0
knowledge-spider 1.0.1 - No file changes detected in this version. - Documentation and functionality remain the same as previous version.
v1.0.0
knowledge-spider 1.0.0 - 初始版本提供了一个本地知识库,用于存储、查询、删除和统计用户偏好和事实。 - 支持自然语言触发词,如“保存到本地知识库”和“我的知识库”。 - 根据内容自动对条目进行分类(偏好、事实、任务、重要、一般)。 - 执行约束条件:去重、排序检索、删除前确认以及仅本地数据存储。 - 旨在在回复中优先考虑并利用知识库中的个性化信息。
Metadata
Slug knowledge-spider
Version 2.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is 本地知识库?

本地知识库支持存储、查询、删除和统计用户偏好、事实及其他信息,确保数据本地安全管理并优先使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 450 downloads so far.

How do I install 本地知识库?

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

Is 本地知识库 free?

Yes, 本地知识库 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 本地知识库 support?

本地知识库 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 本地知识库?

It is built and maintained by toughspider (@toughspider); the current version is v2.0.0.

💬 Comments