بنقرة واحدة
llm-wiki
Build a persistent compounding wiki from raw sources using the LLM Wiki pattern
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build a persistent compounding wiki from raw sources using the LLM Wiki pattern
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Verify understanding after implementation with targeted quizzes
Clarify requirements through targeted questions — uncovers unknown unknowns in specs
Remove AI-generated code patterns that don't match codebase style
Review code for quality, security, and best practices — read-only analysis
Create clear documentation for code and APIs
Audit code for security vulnerabilities — read-only analysis
| name | llm-wiki |
| description | Build a persistent compounding wiki from raw sources using the LLM Wiki pattern |
| license | MIT |
| compatibility | cline, claude, opencode, amp, codex, gemini, cursor, pi |
| hint | Use when building a personal knowledge base, researching a topic over time, or maintaining a structured wiki from raw documents |
| user-invocable | true |
| metadata | {"audience":"all","workflow":"knowledge-management"} |
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 workflows
Templates 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 queries
For 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-wiki
raw/.