The LLM Wiki workflow organizes raw sources into a structured Markdown wiki, updating summaries, entity and concept pages, cross-references, and an operation log as new material is ingested. It also defines processes for querying the wiki, checking for content and link issues, and reporting its status. Optional qmd commands provide local search for larger wikis.
The canonical home for this skill is llm-wiki in jellydn/my-ai-tools
Build and maintain a persistent, compounding knowledge wiki from raw sources.
Based on Karpathy's LLM Wiki pattern: the LLM incrementally integrates each new source into a structured wiki of markdown files — updating entity pages, flagging contradictions, strengthening cross-references. Synthesis is compiled once and kept current, not re-derived on every query.
/llm-wiki <ACTION> [ARGUMENTS]
wiki/)your-wiki/
├── raw/ # Immutable source documents — you add, LLM never modifies
│ └── assets/ # Downloaded images referenced by sources
├── wiki/ # LLM-generated and maintained pages
│ ├── index.md # Catalog of all pages with one-line summaries
│ ├── log.md # Append-only record of all operations
│ ├── overview.md
│ ├── entities/ # People, places, organizations
│ ├── concepts/ # Ideas, topics, themes
│ └── sources/ # One summary page per source
└── CLAUDE.md # Schema: wiki conventions and per-operation workflowsTemplates for all three layers are in $SKILL_PATH/templates/.
raw/, wiki/, wiki/entities/, wiki/concepts/, wiki/sources/$SKILL_PATH/templates/schema.md to CLAUDE.md (or AGENTS.md)wiki/index.md from $SKILL_PATH/templates/index.mdwiki/log.md from $SKILL_PATH/templates/log.mdwiki/overview.md stating the wiki's domain and purposeraw/ and run /llm-wiki ingest <file> nextDone when: all five files and directories exist and the user has been told the next step.
wiki/sources/<slug>.md with a structured summarywiki/overview.md if the source shifts the big picturewiki/entities/ for key people, places, organizationswiki/concepts/ for key ideas and themeswiki/index.md — every new or modified page must appear with a one-line summarywiki/log.md: ## [YYYY-MM-DD] ingest | <Source Title>Done when: every affected page is updated, every new or changed page appears in index.md, and the log entry is appended. A single ingest typically touches 5–15 pages.
wiki/index.md to identify the most relevant pageswiki/index.md and append to wiki/log.mdDone when: the question is answered with citations, and any filing decision (page created or skipped) is resolved.
Scan the entire wiki and report on each of the following:
[[Page Name]] links pointing to non-existent pagesSuggest new questions and sources. Ask before making any fixes.
Append to wiki/log.md: ## [YYYY-MM-DD] lint | health check
Done when: all six issue types are checked and reported, suggestions are given, and the log entry is appended.
Report: source count in raw/, wiki page count, last 10 entries in wiki/log.md, and any obvious health issues (orphan pages, missing index entries).
Done when: all four items are reported.
wiki/index.md — content catalog, updated on every ingest. Every page with a link and one-line summary, organized by category. The LLM reads this first when answering queries.
wiki/log.md — append-only operation log. Entry format: ## [YYYY-MM-DD] <operation> | <title>. Grep-parseable:
grep "^## \[" wiki/log.md | tail -5 # last 5 operations
grep "^## \[.*\] ingest" wiki/log.md # all ingests
grep "^## \[.*\] query" wiki/log.md # all queriesFor larger wikis, add qmd — local hybrid BM25/vector search with an MCP server:
bun install -g @tobilu/qmd
qmd collection add ./wiki --name my-wiki
qmd embed
qmd query "how does X relate to Y" -c my-wikiraw/.jellydn/my-ai-tools
1524f4a
greptailbunbun installqmdqmd collectionqmd collection addqmd embedqmd queryCanonical home
since Nov 30, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.