Knowledge Lib
/install knowledge-lib
Knowledge Lib
Personal knowledge wiki at ~/.openclaw/workspace/knowledge/.
Quick Start
- User says "add to wiki" with a link or file → agent saves + summarizes it
- User says "look up X" → agent searches wiki pages and answers with citations
- User says "wiki status" → agent reports wiki health stats
Directory Structure
knowledge/
├── raw/\x3Ccategory>/ # 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
- Concepts: PascalCase →
Self-Distillation.md,RAG.md - Summaries:
YYYY-MM-DD-\x3Cslug>.md - Analyses:
YYYY-MM-DD-query-\x3Cslug>.md
Cross-references
- Wiki-links:
[[ConceptName]](Obsidian compatible) - Source citation:
[[YYYY-MM-DD-summary-slug]] - Dispute mark:
⚠️ [[ConceptName#disputed]]when new data challenges old claims
Status Lifecycle
active→ current knowledgesuperseded→ newer source proved this wrong (keep with link to replacement)disputed→ conflicting evidence, needs resolution
Content 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/\x3Ccategory>/, then summarize and link concepts.
Workflow
Save (trigger: user command "add to wiki")
- Read the provided content or link
- Save to
raw/\x3Ccategory>/YYYY-MM-DD-\x3Cslug>.mdwith frontmatter - Log in
log.md:## [YYYY-MM-DD] save | \x3CTitle> | \x3Ccategory> - Proceed to Summarize step
Summarize (trigger: after save)
- Read the raw document, identify key points
- Write summary to
wiki/summaries/YYYY-MM-DD-\x3Cslug>.md - Contradiction check: Compare new claims against existing
activeconcepts- If conflict: mark old as
disputed, link both pages - If reinforcement: update existing page, increment
sources
- If conflict: mark old as
- Create or update
wiki/concepts/\x3CConcept>.md - Add
[[backlinks]]between related concept pages - Refresh
index.md - Log:
## [YYYY-MM-DD] summarize | \x3CTitle> | touched N pages
Query (trigger: user asks "look up X")
- Search
wiki/concepts/andwiki/summaries/for matches - Answer with source citations
- If the answer is substantial → write to
wiki/analyses/and update links - Log:
## [YYYY-MM-DD] query | \x3CTopic> | sources: N
Health Check (trigger: user says "wiki status")
- Count unprocessed raw docs, orphan pages, missing frontmatter
- Report stats summary
- 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: \x3Cbrief>
## Sources
- [[YYYY-MM-DD-summary-slug]]
Summary Page
---
source: \x3CURL>
category: \x3Ccategory>
concepts: [[Concept-A]], [[Concept-B]]
imported: YYYY-MM-DD
---
# Title
## Core Points
- ...
## Key Data
- ...
Analysis Page
---
created: YYYY-MM-DD
query: \x3COriginal question>
concepts: [[Concept-A]], [[Concept-B]]
sources: N
---
# \x3CQuestion Summary>
## Answer
...
## Key Insights
- ...
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install knowledge-lib - After installation, invoke the skill by name or use
/knowledge-lib - Provide required inputs per the skill's parameter spec and get structured output
What is Knowledge Lib?
Personal knowledge wiki manager. Organizes notes into structured .md wiki with concept pages, summaries, and cross-references. Activate when user says "add t... It is an AI Agent Skill for Claude Code / OpenClaw, with 147 downloads so far.
How do I install Knowledge Lib?
Run "/install knowledge-lib" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Knowledge Lib free?
Yes, Knowledge Lib is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Knowledge Lib support?
Knowledge Lib is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Knowledge Lib?
It is built and maintained by lifei68801 (@lifei68801); the current version is v1.2.0.