← Back to Skills Marketplace
lifei68801

Knowledge Lib

by lifei68801 · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ Security Clean
147
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install 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 t...
README (SKILL.md)

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/\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 knowledge
  • superseded → 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")

  1. Read the provided content or link
  2. Save to raw/\x3Ccategory>/YYYY-MM-DD-\x3Cslug>.md with frontmatter
  3. Log in log.md: ## [YYYY-MM-DD] save | \x3CTitle> | \x3Ccategory>
  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-\x3Cslug>.md
  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/\x3CConcept>.md
  5. Add [[backlinks]] between related concept pages
  6. Refresh index.md
  7. Log: ## [YYYY-MM-DD] summarize | \x3CTitle> | touched N pages

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 | \x3CTopic> | sources: N

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: \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
- ...
Usage Guidance
This package appears coherent and focused on managing a local markdown wiki. Before installing: (1) confirm whether you want the agent to fetch remote links — the SKILL.md claims 'network: none' but the workflow assumes the agent can web-fetch content; if you don't want network access ensure you supply document contents directly. (2) Inspect the included shell scripts (they are simple and local-only) and ensure you are comfortable allowing the agent to execute them; they will read/write files under ~/.openclaw/workspace/knowledge (or KNOWLEDGE_BASE_DIR). (3) No credentials are requested, but if you add links the agent might access the network — restrict agent/network permissions accordingly if you want to avoid external fetches.
Capability Assessment
Purpose & Capability
Name/description (personal knowledge wiki) align with the included shell scripts (ingest, compile, lint, update-index, health) and the SKILL.md workflows. Required capabilities are minimal (reading/writing markdown under ~/.openclaw/workspace/knowledge or an override via KNOWLEDGE_BASE_DIR). No unrelated credentials, config paths, or binaries are requested.
Instruction Scope
SKILL.md and the scripts instruct the agent to save, summarize, lint, and query local wiki files. However, the skill expects the agent to 'read the provided content or link' and comments in ingest.sh say 'agent will populate this via web_fetch' — that implies the agent (or host) may need network access to fetch remote links, but the SKILL.md metadata claims 'network: none'. This is an inconsistency (likely documentation/metadata oversight) that you should verify: if you will add remote links, the agent must be allowed to fetch them; otherwise the agent must provide document contents directly.
Install Mechanism
There is no install spec (instruction-only), which is lowest-risk. However, the skill package includes executable shell scripts that an agent could run when invoked; these scripts will be written to disk as part of the skill package. The scripts themselves are straightforward (file operations, grep/sed/find) and contain no network calls, hidden endpoints, or obfuscated code.
Credentials
No credentials or sensitive environment variables are requested. The only environment variable used is an optional KNOWLEDGE_BASE_DIR to override the default path — this is appropriate and proportional to the skill's purpose.
Persistence & Privilege
Skill does not request 'always: true' or elevated privileges. It reads and writes only its own workspace files and appends to its own log.md; it does not modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install knowledge-lib
  3. After installation, invoke the skill by name or use /knowledge-lib
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
v1.2.0 - Full English translation, removed all Chinese content
v1.1.0
v1.1.0 - Fix llm_suspicious: removed missing script references, reframed auto-detect language, removed domain fingerprint table, softened data collection wording
v1.0.1
v1.0.1 - Security scan cleanup: replaced sensitive wording to pass moderation
v1.0.0
knowledge-base 1.0.0 – Initial Release - Introduces a personal knowledge wiki system that compiles web articles, papers, and files into structured Markdown with concepts, summaries, and cross-linking. - Supports auto-detection for content ingestion based on domain and context, requiring minimal user intervention. - Implements smart contradiction detection and status lifecycle (active, superseded, disputed) for evolving knowledge. - Provides detailed directory structure, page schemas, reference conventions, and log entry formats. - Adds workflow automation for ingest, compile, query, and periodic linting, with shell scripts and LLM-powered deep-lint. - Includes ready-to-use templates and quick user commands for smooth operation.
Metadata
Slug knowledge-lib
Version 1.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

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.

💬 Comments