Ingest content into your local LLM-WikiMind knowledge base — a production implementation of Karpathy's LLM Wiki pattern.
wiki-kb MCP server registered in CatDesk/OpenClawqmd installed: pip3 install qmdwiki_ingestcat "$WIKIMIND_ROOT/CLAUDE.md"
| Type | Directory | When to use |
|---|---|---|
| ------ | ----------- | ------------- |
concept | concepts/ | Explaining a concept, pattern, or mechanism |
entity | entities/ | Describing an API object or class |
comparison | comparisons/ | Comparing two approaches |
source-summary | sources/ | Summarizing an article or doc |
CLAUDE.md for the list)DOMAIN.md with keywords frontmatterPreferred — use the MCP tool (if wiki-kb server is loaded):
wiki_ingest_note(
title="Page Title",
content="# Page Title\n\nContent here...",
domain="my-domain",
page_type="concept",
source="https://example.com",
summary="One-line summary",
tags=["tag1", "tag2"]
)
Fallback — write the file directly:
---
title: "Page Title"
type: concept
domain: my-domain
source: "https://example.com"
summary: "One-line summary (<=150 chars)"
tags: ["tag1"]
related: []
created: YYYY-MM-DD
updated: YYYY-MM-DD
confidence: medium
---
# Page Title
Content here.
Save to: $WIKIMIND_ROOT/
cd "$WIKIMIND_ROOT" && qmd update
echo "## [$(date +%Y-%m-%d)] ingest | Page Title | domain" >> "$WIKIMIND_ROOT/<domain>/log.md"
concept pages must include: definition, motivation, code example, common pitfalls, related links
entity pages must include: description, key properties with types, key methods with signatures, usage example, gotchas
comparison pages must include: comparison table, when to use each, migration notes
source-summary pages must include: original URL, key takeaways (3-7 points), what this adds vs existing knowledge
refs/ — that's for bulk-imported raw docsconfidence: high for official docs, medium for your summaries, low for speculation共 1 个版本