← 返回 Skills 市场
toughspider

本地知识库

作者 toughspider · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
450
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install knowledge-spider
功能描述
本地知识库支持存储、查询、删除和统计用户偏好、事实及其他信息,确保数据本地安全管理并优先使用。
使用说明 (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
  • 所有数据本地存储,不上传云端
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install knowledge-spider
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /knowledge-spider 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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 - 初始版本提供了一个本地知识库,用于存储、查询、删除和统计用户偏好和事实。 - 支持自然语言触发词,如“保存到本地知识库”和“我的知识库”。 - 根据内容自动对条目进行分类(偏好、事实、任务、重要、一般)。 - 执行约束条件:去重、排序检索、删除前确认以及仅本地数据存储。 - 旨在在回复中优先考虑并利用知识库中的个性化信息。
元数据
Slug knowledge-spider
版本 2.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

本地知识库 是什么?

本地知识库支持存储、查询、删除和统计用户偏好、事实及其他信息,确保数据本地安全管理并优先使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 450 次。

如何安装 本地知识库?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install knowledge-spider」即可一键安装,无需额外配置。

本地知识库 是免费的吗?

是的,本地知识库 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

本地知识库 支持哪些平台?

本地知识库 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 本地知识库?

由 toughspider(@toughspider)开发并维护,当前版本 v2.0.0。

💬 留言讨论