Knowledge Base
by @lifei68801
Personal knowledge wiki compiler. Ingests raw data (URLs, papers, articles, files), compiles into structured .md wiki with concept pages, summaries, and back...
clawhub install knowledge-wikiπ About This Skill
name: knowledge-lib displayName: Knowledge Lib description: > Personal knowledge wiki manager. Organizes notes into structured .md wiki with concept pages, summaries, and cross-references. Activate when user says "add to wiki", asks to query knowledge base, or mentions "knowledge base". version: 1.2.0 metadata: permissions: - file:read - file:write behavior: network: none telemetry: none credentials: none
Knowledge Lib
Personal knowledge wiki at ~/.openclaw/workspace/knowledge/.
Quick Start
1. User says "add to wiki" with a link or file β agent saves + summarizes it 2. User says "look up X" β agent searches wiki pages and answers with citations 3. User says "wiki status" β agent reports wiki health stats
Directory Structure
knowledge/
βββ raw// # Source documents (read-only)
βββ wiki/
β βββ index.md # Content catalog (refreshed on every write)
β βββ log.md # Chronological operation log (append-only)
β βββ concepts/ # Concept pages (PascalCase: Self-Distillation.md)
β βββ summaries/ # Document summaries (date-slug.md)
β βββ analyses/ # Query writeback results (date-query-slug.md)
βββ output/ # Generated outputs (slides, charts)
Categories: ai-llm, engineering, products, startups
Schema Conventions
Frontmatter (all wiki pages)
---
created: YYYY-MM-DD
updated: YYYY-MM-DD
related: [[Concept-A]], [[Concept-B]]
sources: N
tags: [tag1, tag2]
status: active # active | superseded | disputed
Naming Rules
Self-Distillation.md, RAG.mdYYYY-MM-DD-.md YYYY-MM-DD-query-.md Cross-references
[[ConceptName]] (Obsidian compatible)[[YYYY-MM-DD-summary-slug]]β οΈ [[ConceptName#disputed]] when new data challenges old claimsStatus Lifecycle
active β current knowledgesuperseded β newer source proved this wrong (keep with link to replacement)disputed β conflicting evidence, needs resolutionContent Type Guide
When user sends a link or document, classify by content type:
| Type | Indicators | |------|-----------| | Paper | arxiv.org, paperswithcode.com, huggingface.co/papers | | Project | github.com repos | | Blog | medium.com, substack.com, tech blogs | | Company post | openai.com/blog, anthropic.com/news, deepmind.google | | Product | producthunt.com, techcrunch.com |
Action: save to raw/, then summarize and link concepts.
Workflow
Save (trigger: user command "add to wiki")
1. Read the provided content or link
2. Save to raw/ with frontmatter
3. Log in log.md: ## [YYYY-MM-DD] save |
4. Proceed to Summarize step
Summarize (trigger: after save)
1. Read the raw document, identify key points
2. Write summary to wiki/summaries/YYYY-MM-DD-
3. Contradiction check: Compare new claims against existing active concepts
- If conflict: mark old as disputed, link both pages
- If reinforcement: update existing page, increment sources
4. Create or update wiki/concepts/
5. Add [[backlinks]] between related concept pages
6. Refresh index.md
7. Log: ## [YYYY-MM-DD] summarize |
Query (trigger: user asks "look up X")
1. Search wiki/concepts/ and wiki/summaries/ for matches
2. Answer with source citations
3. If the answer is substantial β write to wiki/analyses/ and update links
4. Log: ## [YYYY-MM-DD] query |
Health Check (trigger: user says "wiki status")
1. Count unprocessed raw docs, orphan pages, missing frontmatter 2. Report stats summary 3. Optionally do deep-lint: contradiction scan, stale claims, missing concepts
Quick Commands
| User says | Action | |-----------|--------| | "add to wiki" + link/file | save β summarize | | "look up X" | query wiki | | "wiki status" | health check | | "deep check" | full lint |
Templates
Concept Page
---
created: YYYY-MM-DD
updated: YYYY-MM-DD
related: [[Concept-A]], [[Concept-B]]
sources: N
tags: [category]
status: active
Concept Name
Definition
One sentence.Key Points
... Contradictions
β οΈ [[YYYY-MM-DD-summary-slug]] challenges: Sources
[[YYYY-MM-DD-summary-slug]]
Summary Page
---
source:
category:
concepts: [[Concept-A]], [[Concept-B]]
imported: YYYY-MM-DD
Title
Core Points
... Key Data
...
Analysis Page
---
created: YYYY-MM-DD
query:
concepts: [[Concept-A]], [[Concept-B]]
sources: N
Answer
...Key Insights
...
π‘ Examples
1. User says "add to wiki" with a link or file β agent saves + summarizes it 2. User says "look up X" β agent searches wiki pages and answers with citations 3. User says "wiki status" β agent reports wiki health stats