← 返回
未分类 中文

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...
个人知识维基管理器。将笔记组织成结构化的 .md 维基,包含概念页面、摘要和交叉引用。当用户说“add t...”时激活。
lifei68801 lifei68801 来源
未分类 clawhub v1.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 490
下载
💾 0
安装
1
版本
#latest

概述

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/<category>/        # 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-.md
  • Analyses: YYYY-MM-DD-query-.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:

TypeIndicators
-----------------
Paperarxiv.org, paperswithcode.com, huggingface.co/papers
Projectgithub.com repos
Blogmedium.com, substack.com, tech blogs
Company postopenai.com/blog, anthropic.com/news, deepmind.google
Productproducthunt.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//YYYY-MM-DD-.md with frontmatter
  3. Log in log.md: ## [YYYY-MM-DD] save | | <category></code></li><li>Proceed to Summarize step</li></ol><h3>Summarize (trigger: after save)</h3><ol><li>Read the raw document, identify key points</li><li>Write summary to <code>wiki/summaries/YYYY-MM-DD-<slug>.md</code></li><li><strong>Contradiction check</strong>: Compare new claims against existing <code>active</code> concepts</li><ul><li>If conflict: mark old as <code>disputed</code>, link both pages</li><li>If reinforcement: update existing page, increment <code>sources</code></li></ul><li>Create or update <code>wiki/concepts/<Concept>.md</code></li><li>Add <code>[[backlinks]]</code> between related concept pages</li><li>Refresh <code>index.md</code></li><li>Log: <code>## [YYYY-MM-DD] summarize | <Title> | touched N pages</code></li></ol><h3>Query (trigger: user asks "look up X")</h3><ol><li>Search <code>wiki/concepts/</code> and <code>wiki/summaries/</code> for matches</li><li>Answer with source citations</li><li>If the answer is substantial → write to <code>wiki/analyses/</code> and update links</li><li>Log: <code>## [YYYY-MM-DD] query | <Topic> | sources: N</code></li></ol><h3>Health Check (trigger: user says "wiki status")</h3><ol><li>Count unprocessed raw docs, orphan pages, missing frontmatter</li><li>Report stats summary</li><li>Optionally do deep-lint: contradiction scan, stale claims, missing concepts</li></ol><h2>Quick Commands</h2><table><thead><tr><th>User says</th><th>Action</th></tr></thead><tbody><tr><td>-----------</td><td>--------</td></tr><tr><td>"add to wiki" + link/file</td><td>save → summarize</td></tr><tr><td>"look up X"</td><td>query wiki</td></tr><tr><td>"wiki status"</td><td>health check</td></tr><tr><td>"deep check"</td><td>full lint</td></tr></tbody></table><h2>Templates</h2><h3>Concept Page</h3><pre><code>--- 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: <brief> ## Sources - [[YYYY-MM-DD-summary-slug]] </code></pre><h3>Summary Page</h3><pre><code>--- source: <URL> category: <category> concepts: [[Concept-A]], [[Concept-B]] imported: YYYY-MM-DD --- # Title ## Core Points - ... ## Key Data - ... </code></pre><h3>Analysis Page</h3><pre><code>--- created: YYYY-MM-DD query: <Original question> concepts: [[Concept-A]], [[Concept-B]] sources: N --- # <Question Summary> ## Answer ... ## Key Insights - ... </code></pre></div> </div> </div> <div id="tab-versions" class="detail-content"> <div class="detail-section"> <h2>版本历史</h2> <p style="margin-bottom:12px;font-size:14px;color:#94a3b8;">共 1 个版本</p> <ul class="version-list"> <li> <div> <span class="version-tag">v1.2.0</span> <span style="font-size:11px;color:#5b6abf;margin-left:8px;background:#eef0ff;padding:1px 8px;border-radius:10px;">当前</span> </div> <div style="font-size:12px;color:#94a3b8;"> 2026-05-03 08:54 安全 安全 </div> </li> </ul> </div> </div> <div id="tab-security" class="detail-content"> <div class="detail-section"> <h2>安全检测</h2> <div class="sec-grid"> <div class="sec-card"> <h4>腾讯云安全 (Keen)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://tix.qq.com/search/skill?keyword=e82a85cef7ec7bc758c5d9599f95372b" target="_blank">查看报告</a> </div> <div class="sec-card"> <h4>腾讯云安全 (Sanbu)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://static.cloudsec.tencent.com/html-report-v2/2026/05/26/431572_201bc567625bb06a1bdbda5ae09a651b.html?q-sign-algorithm=sha1&q-ak=AKID8JMG1bzBC1dz96qNhssfFftujT1NCoFi&q-sign-time=1782278147%3B1813814147&q-key-time=1782278147%3B1813814147&q-header-list=host&q-url-param-list=&q-signature=c9620524baf2c5d5c740990809f0a9bbb73112e1" target="_blank">查看报告</a> </div> </div> </div> </div> <!-- Recommended Skills --> <div style="margin-top:24px;"> <h2 style="font-size:18px;font-weight:600;margin-bottom:16px;">🔗 相关推荐</h2> <div class="rec-grid"> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">knowledge-management</span> <h3><a href="/s/summarize">Summarize</a></h3> <div class="rec-owner">paudyyin</div> <div class="rec-desc">智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 960</span> <span style="color:#5b6abf;">📥 519,626</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">knowledge-management</span> <h3><a href="/s/obsidian">Obsidian</a></h3> <div class="rec-owner">steipete</div> <div class="rec-desc">操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 446</span> <span style="color:#5b6abf;">📥 105,175</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">knowledge-management</span> <h3><a href="/s/web-tools-guide">web-tools-guide</a></h3> <div class="rec-owner">user_ec205dbb</div> <div class="rec-desc">MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 73</span> <span style="color:#5b6abf;">📥 162,849</span> </div> </div> </div> </div> </div> <script> document.addEventListener('DOMContentLoaded',function(){ document.querySelectorAll('.detail-tab').forEach(function(btn){ btn.addEventListener('click',function(e){ var tab = this.getAttribute('data-tab'); document.querySelectorAll('.detail-tab').forEach(function(b){b.classList.remove('active')}); document.querySelectorAll('.detail-content').forEach(function(c){c.classList.remove('active')}); this.classList.add('active'); var el = document.getElementById('tab-'+tab); if(el) el.classList.add('active'); }); }); }); </script> <div class="footer"> <p>Skill工具集 © 2026</p> </div></body> </html>