knowledge-spider

Stores, searches, deletes, and summarizes user memories in a local SQLite knowledge base.

2.5k|134|Updated Jun 6, 2025
One-click install
npx skills add https://github.com/UnicomAI/wanwu --skill knowledge-spider
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: knowledge-spider
Source: https://github.com/UnicomAI/wanwu/tree/main/configs/microservice/bff-service/configs/agent-skills/clawhub/knowledge-spider
Command: npx skills add https://github.com/UnicomAI/wanwu --skill knowledge-spider

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It gives an AI agent persistent local memory, so user preferences, facts, tasks, and important notes survive across conversations instead of being forgotten after each session.

Core Features & Use Cases

  • Memory Storage with Auto-Classification: Saves user-provided content into a local SQLite database and automatically tags it as preference, fact, task, important, or general.
  • Semantic Search and Prioritized Recall: Retrieves relevant entries using keyword similarity ranked by recency, access frequency, and category weight.
  • Statistics and Context Injection: Reports knowledge base status (entry counts, storage size, top-accessed items) and builds a relevant-memory context block for the current conversation.
  • Use Case: A user says "save to my knowledge base: I prefer concise answers in Chinese", and later asks "what do you know about my preferences?" — the agent stores the note, then retrieves and applies it in future replies.

Quick Start

Ask the agent to save a piece of information to your local knowledge base, then later ask it to search or summarize what has been stored.

Frequently Asked Questions about knowledge-spider

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save information to a local knowledge base with an AI agent?

Send a natural language command like "save to my knowledge base" followed by the content. The skill extracts the core text, auto-classifies it as preference, fact, task, or important, and writes it to a local SQLite database.

How does local memory search rank results?

Search uses keyword similarity (Jaccard index) combined with priority scoring based on recency, access frequency, category weight, and recent access time. Results are sorted by this composite score before being returned.

Where is the knowledge base data stored?

All data is stored locally in a SQLite file under the configured data directory, defaulting to ~/.openclaw/workspace/skills/knowledge-spider/data/memory.db. Nothing is uploaded to the cloud.

Can I delete or forget specific memories?

Yes. The memory_forget action deletes entries by exact ID or by fuzzy content match, and also cleans up related usage history. The skill instructions require user confirmation before deletion.

What are the limitations of this local memory approach?

Similarity matching is keyword-based rather than vector embeddings, so paraphrased queries may miss entries. It is also single-machine storage with no sync, and should not be used for passwords, tokens, or highly sensitive data.