About llm-wiki
llm-wiki is an agent skill for organizing project knowledge through ingestion, querying, maintenance, and graph generation. It uses linked wiki pages and lifecycle commands to keep sources and synthesized answers structured.
Key features
- 01Ingest sources into wiki pages
- 02Query pages with linked citations
- 03Save synthesized query answers
- 04Lint links and stale summaries
- 05Build a knowledge graph
Use cases
- 01Organize notes and source documents
- 02Find information across wiki pages
- 03Check wiki links and summaries
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ godstale/ llm-wiki --skill llm-wikiAfter installing, type/llm-wikiin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
LICENSECHANGELOG.mdGEMINI.md.gitignoreREADME.mdCLAUDE.mdAGENTS.mdREADME.ko.mdreferences/graph-html.mdfolder-managing.mdingest-advanced.mdontology-commands.mdquery-advanced.mdontology-template.yamlontology-data-template.yamltemplates.mdontology-interview.mdscripts/file_to_markdown.pylint.pyquery_filter.pyontology_validate.pyrequirements.txtbuild_graph.pytest/ontology_test/scala.mdtest/ontology_test/wiki/ontology-registry.mdtest/ontology_test/wiki/ontologies/scala.yamltest/wiki_test/Test_Result.mdtest/wiki_test/raw_test/AI_개발_학습_자료.jsonAI_개인_프로젝트_목표.json베트남_여행_항공권.jsonDetails
From the project READMELLM Wiki: Agent SOP
This is the main "Operating Manual" for the LLM Wiki project. It manages the lifecycle of knowledge: Ingest → Query → Lint → Graph.
🧭 Core Workflow Index
For detailed instructions, refer to the specialized reference files.
| Stage | Action | Reference |
|---|---|---|
| Ingest | /wiki-ingest [<file>|--from <dir>] | references/ingest-advanced.md |
| Query | /wiki-query <question> | references/query-advanced.md |
| Save | /wiki-synthesize [slug] | SKILL.md#wiki-synthesize |
| Maintain | /wiki-lint | /wiki-graph | SKILL.md#maintenance |
| Edit | /wiki-update | /wiki-delete | SKILL.md#lifecycle |
| Ontology | /wiki-ontology-* | references/ontology-commands.md |
🏗️ Project Layout
wiki/
index.md # Catalog of all pages (Update EVERY ingest)
log.md # Chronological record (Append-only)
history.json # Ingest registry (Always use Write tool)
sources/ # Summaries (kebab-case.md)
entities/ # People/Projects (TitleCase.md)
concepts/ # Ideas/Theories (TitleCase.md)
syntheses/ # Saved query answers
originals/ # Read-only archive
ontologies/ # (OPTIONAL) Structured YAML data
Templates & Schema → references/templates.md | Wikilinks: [[PageName]] (Case-Sensitive)
📥 Ingest Process
Main Goal: Transform raw input into structured wiki pages and archive the original.
- Analysis: Read source. Determine title/slug.
- Strategy: Select mode (Full vs. Summary-Only).
- Summary-Only:
.xlsx,.pptx,.pdf> 30p, or--summary-onlyflag.
- Summary-Only:
- Execution:
- Write
wiki/sources/<slug>.md. - Update
wiki/index.mdusing hierarchical categorization (e.g.,Hobby/Cycling) — seereferences/ingest-advanced.mdfor rules and defaults. - Create/Update
wiki/entities/andwiki/concepts/.
- Write
- Registration: Update
wiki/history.jsonand append towiki/log.md.
Advanced flags (--to, --precision, --no-interview, etc.) → references/ingest-advanced.md
🔍 Query & Synthesis
/wiki-query
- Discover relevant pages from
wiki/index.md,wiki/synthesis-map.md, andwiki-hub.md. - Gather context from
sources/,entities/,concepts/, andontologies/. If a file is inwiki-hub.md, cite the external source repo. - Synthesize answer with
[[PageName]]citations. Structural filters (class:, type:, AND/OR) →references/query-advanced.md
/wiki-synthesize
Saves the last query answer to wiki/syntheses/<slug>.md.
- Generate slug from question.
- Update
wiki/synthesis-map.md(append-only) andwiki/log.md.
🛠️ Maintenance & Lifecycle
#maintenance
- /wiki-lint: Check orphans, broken links, stale summaries. (Report:
wiki/lint-report.md). Ifwiki-hub.mdexists, ignore/lower severity of broken links originating from imported external files. - /wiki-graph: Rebuild
graph/graph.jsonandgraph/graph.html.
#lifecycle
- /wiki-sources: List ingested sources from
history.json. - /wiki-update : Refresh a source from its original file.
- /wiki-delete : Soft-delete source (keep in history, remove pages).
🔗 Wiki-Hub Architecture Support
When a wiki-hub.md file exists at the project root, it acts as the authoritative registry for external files.
1. External Source Citation
- During
/wiki-query, the agent MUST checkwiki-hub.mdfor any file used in the answer. - If the file is listed as an imported source, the citation should include the external repository information (e.g.,
[[PageName]] (Source: repo-name)).
2. Linting Exceptions
/wiki-lintshould read the## Imported Sourceslist inwiki-hub.md.- Broken link warnings for files listed in the hub should be suppressed or marked as "External" to avoid unnecessary noise from links pointing to non-imported dependencies.
3. File Integrity
- Do not overwrite, modify, or delete files tracked in
wiki-hub.mdwithout explicit user confirmation. These files are managed externally via the hub.
⚠️ Gotchas & Critical Rules
- READ-ONLY: Never modify
wiki/originals/. - CONSISTENCY:
wiki/index.mdmust be updated on every ingest to keep query discovery working. - HISTORY: Always read-merge-write
wiki/history.json. - CLEANUP: When deleting, check for orphaned entity/concept pages.