llm-wiki
LLM wiki kit
Created by Mehmet Goekce
Published in MehmetGoekce/llm-wiki. Publisher page
168 GitHub stars
What it is
Build Karpathy's LLM Wiki with Claude Code. L1/L2 cache architecture. Logseq + Obsidian support.
Summary from the brain’s metadata
Build Karpathy's LLM Wiki with Claude Code. L1/L2 cache architecture. Logseq + Obsidian support. Build Karpathy's LLM Wiki with Claude Code. Two-layer cache architecture (L1/L2). Supports Logseq and Obsidian.
How it works
Memory model: LLM wiki
AutoGineer overview, from the brain’s own files
Memory model: LLM wiki. Folders: .github (agent config, 5 files); docs (docs, 7 files); examples (examples, 2 files); templates (templates, 8 files).
| Folder | Role | Files |
|---|---|---|
| .github | agent-config | 5 |
| docs | docs | 7 |
| examples | examples | 2 |
| templates | templates | 8 |
| .claude-plugin | folder | 3 |
| openspec | folder | 23 |
Requirements
Works with: Claude Code
Set it up
Clone the repository at the commit AutoGineer scanned:
git clone https://github.com/MehmetGoekce/llm-wiki.git && cd llm-wiki && git checkout 5fa5ee7d49a4346eeb1d92c1de7bf649e7654e91Point Claude Code at .claude-plugin/icon.png: it does not read that file on its own.
cd llm-wiki && claude
AutoGineer scanned these files at commit 5fa5ee7.
- Not scanned by AutoGineerThe author’s README also describes installing it as a Claude Code plugin marketplace. Read its install section: AutoGineer did not scan that path. https://github.com/MehmetGoekce/llm-wiki/blob/5fa5ee7d49a4346eeb1d92c1de7bf649e7654e91/README.md#quick-start
- Not scanned by AutoGineerThe author’s README also describes installing it from a clone of its repository. Read its install section: AutoGineer did not scan that path. https://github.com/MehmetGoekce/llm-wiki/blob/5fa5ee7d49a4346eeb1d92c1de7bf649e7654e91/README.md#quick-start
Created by Mehmet Goekce. Published in MehmetGoekce/llm-wiki. Licence: MIT License.
Usage
From the brain’s own files
- ${user_config.wiki_path} (the "Wiki root:" line): your Logseq graph or Obsidian vault
- ${CLAUDE_PLUGIN_ROOT} (the setup workflow): the clone, so that setup finds templates/
Documentation by Mehmet Goekce
llm-wiki
Image: License: MIT Image: Release Image: Stars Image: Top Language Image: Last Commit
Build Karpathy's LLM Wiki with Claude Code. Two-layer cache architecture (L1/L2). Supports Logseq and Obsidian.
graph TB
subgraph "Every Session — Auto-loaded"
L1[L1: Claude Memory]
L1R[Rules & Gotchas]
L1I[Identity & Preferences]
L1C[Credentials]
L1 --> L1R
L1 --> L1I
L1 --> L1C
end
subgraph "On Demand — /llm-wiki query"
L2[L2: Wiki]
L2P[Projects & History]
L2W[Workflows & Processes]
L2K[Research & Learning]
L2 --> L2P
L2 --> L2W
L2 --> L2K
end
NEW[New Knowledge] --> ROUTE{Quick rule?}
ROUTE -->|Yes| L1
ROUTE -->|No| L2
USER[User Query] --> CLAUDE[Claude Code]
CLAUDE --> L1
CLAUDE -->|Deep question| L2What is this?
Image: Wiki graph view after setup Your wiki after a few ingests — interconnected knowledge pages in Logseq's graph view.
In April 2026, Andrej Karpathy published a gist called "LLM Wiki" that got 5,000+ stars in days. The idea: let an LLM maintain a structured, cross-referenced wiki for you. Feed it raw sources, it extracts facts, links them together, and keeps everything consistent. The wiki becomes a persistent, compounding artifact instead of a graveyard of stale notes.
Everyone loved the concept. Almost nobody built one. The gist describes what to build, not how to wire it up with real tools, real files, and real workflows. llm-wiki is the implementation. It uses Claude Code as the LLM brain and either Logseq or Obsidian as the wiki UI, with a two-layer cache architecture that turned out to be the key insight Karpathy's gist does not mention.
Why use this?
5-minute setup. Install the plugin, run
/llm-wiki setup, and you have a schema, namespaces, and git tracking. No manual design needed.Claude becomes your wiki maintainer.
/llm-wiki ingestupdates 5-15 pages with cross-references from a single source.L1/L2 architecture. Auto-loaded rules in memory (L1) + deep knowledge in the wiki (L2). No other tool has this.
Built-in quality checks.
/llm-wiki lintfinds orphan pages, stale content, broken refs, and credential leaks.Logseq + Obsidian. Use whichever you already have. No tool switch required.
Quick Start
As a Claude Code plugin (recommended)
claude plugin marketplace add MehmetGoekce/llm-wiki
claude plugin install llm-wiki@mehmetgoekceOn Claude Code 2.1.275 or later, one line inside a session does the same:
/plugin install llm-wiki --marketplace MehmetGoekce/llm-wikiClaude Code asks for one value, the Wiki root: your Logseq graph or Obsidian vault. The directory may be empty or not exist yet. Then, in any project:
/llm-wiki setup
/llm-wiki ingest "your first source"
/llm-wiki query "what do I know about X?"
/llm-wiki lint/llm-wiki setup asks which tool you use and which namespaces you want, then creates the Schema,
Dashboard, hub pages, Access-Log and llm-wiki.yml. The wiki starts sparse and gets denser with
every ingest. New releases reach you through the plugin; nothing to copy.
Tested with Claude Code 2.1.296.
Without the plugin
Clone the repository and copy the skill into the project that should use it:
git clone https://github.com/MehmetGoekce/llm-wiki.git ~/llm-wiki
mkdir -p ~/myproject/.claude/commands
cp ~/llm-wiki/SKILL.md ~/myproject/.claude/commands/wiki.mdIn the copy, replace two placeholders with absolute paths:
${user_config.wiki_path}(the "Wiki root:" line): your Logseq graph or Obsidian vault${CLAUDE_PLUGIN_ROOT}(the setup workflow): the clone, so that setup findstemplates/
On Linux (on macOS, write sed -i '' instead of sed -i):
sed -i -e 's|\${user_config.wiki_path}|/home/you/notes/wiki|g' \
-e 's|\${CLAUDE_PLUGIN_ROOT}|/home/you/llm-wiki|g' \
~/myproject/.claude/commands/wiki.mdThen run /wiki setup in that project. The copy is invoked as /wiki <command>, stays at the
version you copied, and needs the clone to stay where it is. The plugin is the recommended path.
The rest of this README writes /llm-wiki <command>. With a copied skill, type /wiki <command>.
Moving from a copied skill to the plugin
Install the plugin, enter your existing wiki directory as Wiki root, and delete the copied
.claude/commands/wiki.md from your project. The wiki itself needs no change.
Coming from v1.6.0
The plugin's commands lost their second part: /llm-wiki:wiki ingest is now /llm-wiki ingest, and
/llm-wiki:setup is now /llm-wiki setup. Update the plugin and use the new names.
The L1/L2 Architecture
This is the part not in Karpathy's gist, and it turned out to be the most important design decision.
When you start building a wiki, the instinct is to put everything in one place. That is wrong. Some knowledge must be available in every session, before you even ask a question -- things like "max 2-3 SSH calls to the VPS, never 10+" or "always use ISO 8601 dates." If the LLM has to query the wiki to learn these rules, it has already made the mistake.
Other knowledge only matters in specific contexts. The full history of a project. A detailed API workflow. Loading all of this into every session wastes the context window.
The solution maps to a concept every engineer knows: CPU cache hierarchy.
| Layer | What | Size | Loading | Contains |
|---|---|---|---|---|
| L1 | Claude Code Memory | ~10-20 files | Auto-loaded every session | Rules, gotchas, identity, credentials |
| L2 | Wiki (Logseq/Obsidian) | ~50-200 pages | On-demand via /llm-wiki query | Projects, workflows, research, deep knowledge |
graph TB
subgraph "Every Session — Auto-loaded"
L1[L1: Claude Memory]
L1R[Rules & Gotchas]
L1I[Identity & Preferences]
L1C[Credentials]
L1 --> L1R
L1 --> L1I
L1 --> L1C
end
subgraph "On Demand — /llm-wiki query"
L2[L2: Wiki]
L2P[Projects & History]
L2W[Workflows & Processes]
L2K[Research & Learning]
L2 --> L2P
L2 --> L2W
L2 --> L2K
end
NEW[New Knowledge] --> ROUTE{Quick rule<br/>or gotcha?}
ROUTE -->|Yes| L1
ROUTE -->|No| L2
USER[User Query] --> CLAUDE[Claude Code]
CLAUDE --> L1
CLAUDE -->|Deep question| L2The routing rule is simple: Would the LLM making a mistake without this knowledge be dangerous or embarrassing? Then it belongs in L1. Would the mistake be merely inconvenient? Then L2.
Credentials are a special case -- they must live in L1 because the wiki is typically git-tracked. The L1 memory directory is excluded from git, making it the only safe place for secrets.
For the full deep-dive, see docs/l1-l2-architecture.md.
Commands
| Command | Description |
|---|---|
/llm-wiki ingest <source> | Process a source (URL, file, text), update 5-15 wiki pages |
/llm-wiki query <question> | Two-stage search via hub index, synthesize answer with source attribution |
/llm-wiki prune [--months N] | LRU-Demote: evict cold pages from the live index (default 6 months) |
/llm-wiki prune --l1 | L1-Verification: classify L1 rules, check due behavior claims against local evidence, re-verify / demote / delete |
/llm-wiki lint [--fix] | Health check: orphans, stale pages, broken refs, index drift, credential leaks, due L1 claims |
/llm-wiki status | Metrics dashboard: page count, health, hot/cold profile, recent changes |
Ingest Flow
Ingest is the core operation. When you run /llm-wiki ingest "deployed v2.0 to production", here is what happens:
graph LR
SRC[Source<br/>URL / File / Text] --> A[Phase 1<br/>Analyze & Extract]
A --> B[Phase 2<br/>Scan Wiki<br/>Find affected pages]
B --> C[Phase 3<br/>Update Pages<br/>Create new / Append]
C --> D[Phase 4<br/>Quality Gate<br/>Properties? Cross-refs?<br/>No credentials?]
D --> E[Phase 5<br/>Report<br/>Pages touched / Warnings]
E --> GIT[git commit]Phase 1 -- Analyze & Extract. Claude reads the source and extracts entities, facts, relationships, and dates. It classifies each piece by domain (business, technical, content, etc.) and checks whether it belongs in L1 (quick rule) or L2 (deep knowledge).
Phase 2 -- Scan Wiki. Claude reads the schema, then scans existing pages to find which ones the new information affects. If you mention a tool that already has an entity page, it knows to update that page too.
Phase 3 -- Update Pages. New pages get all required properties from the schema. Existing pages get new facts appended; when a fact supersedes a stated state (a status, a deadline, a decision), the block is rewritten and the old wording moves into a collapsed History -- nothing is deleted, and the current state stays on top. Target: 5-15 page touches per ingest.
Phase 4 -- Quality Gate. Before committing: Do all pages have required properties? Does every page have at least one cross-reference? Are there credential patterns in the content?
Phase 5 -- Report. Summary of pages created, updated, cross-references added, and any warnings.
Query
Query is two-stage, the way a CPU resolves an address before touching memory. Stage 1 (routing): Claude reads only the hub ### Index pages of the candidate namespaces — a cheap list of routing lines ([[page]] -- description #tags) — and picks the 3 most relevant pages by description. This is the wiki's page table. Stage 2 (read): it opens only those full pages and synthesizes an answer with source attribution. A full-text grep over every page is the L3 fallback, used only when routing finds nothing. Each full-page read is logged to an append-only Access-Log together with the routing reason it was picked (the matched index description or grep term) — so the log records not just what loaded but why, and it feeds prune. If the query reveals a gap, it offers to create a new page.
Prune
Prune is the eviction layer that keeps routing precise as the wiki grows. It reads the Access-Log, finds cold pages (no read in N months, default 6), and evicts them from the live index — the routing line moves from the hub ### Index to ### Archive and the page is marked archived::. This is demotion, not deletion: the file stays in place, every incoming [[link]] stays valid, and the page is still found by the L3 grep fallback (and re-promoted automatically if queried again). Crucially, prune never renames or moves a file — the wiki tool links by page name, so a move would break every backlink. Run it on a schedule (the command does not self-schedule).
--l1 is the L1 counterpart. Access frequency cannot find stale L1 rules — every L1 file loads every session, so a stale rule never looks cold; it shows up as the agent confidently acting on an outdated assumption. So L1 files carry a claim class: asserts-current-behavior: true for claims about a system's current state (a path, flag, version, quirk) and false for decisions and preferences, which never go stale. Behavior claims carry a verified date. /llm-wiki prune --l1 classifies unclassified files (it proposes, you confirm), checks due claims against read-only local evidence, and lets you re-verify, demote the rule to L2 as history, or delete it. It does not warn mid-session when a stale rule is about to justify an action — Claude Code loads L1, so there is no hook for that; it is on the roadmap.
Lint
Lint is the automated health check. It scans every wiki page and checks 13 rules: orphan pages (no incoming links), stale content (last updated 90+ days ago but still marked high-confidence), missing required properties, broken references, hub completeness, index drift (an active page with no routing line, or a routing line with no page), archived-in-live-index (a demoted page still routed), empty pages, weak cross-referencing, credential patterns, L1/L2 duplicates, due L1 claims (behavior claims whose verified date is missing or older than l1_verify_days), and block bloat (a block grown past 600 characters of prose, or an updated:: value used as a change log). Run with --fix and Claude auto-repairs what it can — including backfilling missing routing lines into hub indexes.
The Schema
The schema is the contract between you and the LLM. Without it, the LLM creates inconsistent pages -- one uses status: active, another state:: running, a third has no status field at all. With a schema, every page follows the same structure and automated quality checks become possible.
The schema defines:
8 namespaces (Business, Tech, Content, Projects, People, Learning, Reference, Careers)
5 page types (Entity, Project, Knowledge, Feedback, Hub) with required properties
Lint rules for automated health checks
L1/L2 boundary so the system knows where new knowledge should be routed
For the complete schema reference, see docs/schema-reference.md.
Logseq vs. Obsidian
Both wiki apps are supported. Choose based on your preference:
| Logseq | Obsidian | |
|---|---|---|
| Properties | property:: value (inline) | YAML frontmatter |
| Format | Outliner (- prefix on every line) | Flat markdown |
| File names | Wiki___Tech___Strapi.md | Wiki/Tech/Strapi.md |
| Links | [[Wiki/Tech/Strapi]] | [[Wiki/Tech/Strapi]] |
| Backlinks | Automatic (graph-native) | Via plugin or core feature |
| Block addressing | Every line is a block | Paragraph-level |
| License | AGPL-3.0 (open source) | Proprietary (free for personal use) |
Logseq shines when the LLM is doing the writing -- its outliner format means every block is independently addressable, so appending new content never disrupts existing structure.
Obsidian is better if you do a lot of manual editing -- flat markdown is more natural to write by hand, and the plugin ecosystem is massive.
For a detailed comparison with migration paths, see docs/logseq-vs-obsidian.md.
Before & After
The difference between a dead wiki and a living one is page quality.
Before -- a placeholder created when the page was first made:
- type:: knowledge
- domain:: content
- ## Newsletter
- To be filled via /llm-wiki ingest.After -- synthesized from multiple sources over several ingest operations:
- type:: knowledge
- domain:: content
- confidence:: high
- created:: 2026-03-15
- updated:: 2026-04-07
- ## Company Newsletter
- Monthly newsletter targeting existing clients and prospects.
- ### Metrics
- | Metric | Value | As of |
|--------|-------|-------|
| Subscribers | ~240 | 2026-04-01 |
| Open rate | 38% | 2026-04-01 |
| Cadence | monthly | -- |
- ### Content Strategy
- 1 technical deep-dive + 1 business insight per issue
- Always include a CTA to the latest blog post
- Subject lines: question format performs 2x better
- ### Open Questions
- Segment list by industry vertical?
- A/B test send time (Tuesday AM vs Thursday AM)?
- ### Cross-References
- [[Wiki/Content/Blog]] -- Source content
- [[Wiki/Content/LinkedIn]] -- Promotion channel
- [[Wiki/Reference/Workflows]] -- Publishing workflowEvery number has a date. Decisions have rationale. Open questions are explicit. Cross-references connect to related pages.
Configuration
Setup creates llm-wiki.yml in your wiki root. You can also create it manually:
# llm-wiki.yml
tool: logseq # or "obsidian"
wiki_path: ~/Documents/MyWiki/
pages_dir: pages # relative to wiki_path
memory_path: ~/.claude/projects/my-project/memory/
l1_verify_days: 90 # optional: re-verify L1 behavior claims after N days
namespaces:
- Business
- Tech
- Content
- Projects
- People
- Learning
- Reference
- Careers
# Lint settings
lint:
stale_threshold_days: 90
min_cross_refs: 1
credential_patterns:
- "token::"
- "password::"
- "secret::"
- "api.key::"
# Ingest settings
ingest:
target_page_touches: [5, 15] # min, max pages per ingest
append_only: true # never delete content; superseded state moves to a collapsed History
# Language (for multilingual wikis)
language:
business: en # Language for business content
tech: en # Language for technical contentTrade-offs
No system is perfect. Some things to know:
The schema feels overengineered at first. With 10 pages, defining 5 page types and 8 lint rules seems like overkill. Past 50 pages, you will be grateful for the consistency. Define the schema early -- it is much harder to retrofit one later.
Two systems means you need a clear boundary. Having both L1 and L2 means you could accidentally put the same information in both places. The lint rule for L1/L2 duplicates exists precisely for this reason.
Parallel agents can conflict. If you have multiple Claude sessions writing to wiki files simultaneously, concurrent edits can cause conflicts. Treat wiki files as a shared resource.
Start with fewer hub pages. Let them emerge organically from ingest operations rather than creating empty hubs upfront.
Documentation
FAQ — Common questions before you install
Troubleshooting — Setup, integration, and runtime issues
L1/L2 Architecture — Why two layers, how to route knowledge
Schema Reference — Page types, properties, lint rules
Logseq vs. Obsidian — Detailed comparison and migration notes
Privacy
llm-wiki has no backend and collects nothing. It is a skill and a few shell scripts that run inside your own Claude Code session.
Wiki pages, the access log and
llm-wiki.ymlare written to your local Logseq graph or Obsidian vault and stay there. Whatever you ingest ends up in those files, including names or contact details if the source contains them.If you set
memory_path, the skill also reads your local Claude Code memory directory:querymay consult it,lintreports rules that are due for a check, andprune --l1classifies, updates, moves or deletes memory files, each one only after you confirm it.lintnever prints the content of a memory file. Withoutmemory_paththe skill does not touch that directory.The skill and the scripts send nothing to the author or to any third party. There is no telemetry.
The only network access is the page fetch that
ingestmakes when you pass a URL as the source.Commits are local. Nothing is pushed unless you push your wiki yourself.
Claude reads the content you work with in order to do the work. That processing is covered by your own Claude plan and Anthropic's terms, not by this plugin.
Credits
Inspired by Andrej Karpathy's LLM Wiki gist
Built with Claude Code
License
MIT -- see LICENSE for details.
openspec/specs/setup.md
Spec: Setup — Wiki Skeleton Creation
Description
/llm-wiki setup (or /wiki setup in a copied skill) creates the initial pages (Schema,
Dashboard, one hub page per namespace, Access-Log), the config file llm-wiki.yml and, on request,
a git repository with a first commit. Claude asks the questions in the conversation, renders the
bundled templates and writes the files itself. No script is involved.
Requirements
Prerequisites
REQ-700: Setup MUST need nothing but Claude Code with the Read, Write and Bash tools.
REQ-702: git is needed only for git initialization and the first commit. If git is not available, both steps SHALL be skipped with a warning; setup continues.
REQ-703: Setup MUST NOT require any package manager (npm, pip, etc.) or installed library.
Step 1: Tool Selection
REQ-710: Setup SHALL ask whether the wiki is a Logseq graph or an Obsidian vault. If the wiki root contains
logseq/it SHALL suggest Logseq; if it contains.obsidian/it SHALL suggest Obsidian.REQ-711: On any other answer setup SHALL say which values are valid and ask again. Nothing is written before a valid answer.
REQ-712: The tool choice determines ALL downstream behavior: file naming, property syntax, directory structure, template selection.
Step 2: Wiki Root
REQ-720: The wiki root is the configured one (config.md REQ-670). Setup MUST NOT ask for it and MUST NOT use another directory.
REQ-721: A leading
~SHALL be expanded to the user's home directory.REQ-722: If the wiki root does not exist, setup SHALL create it (
mkdir -p) after all answers are valid. If the path exists and is not a directory, setup SHALL stop with an error naming the path and write nothing.
Step 3: Pages Directory
REQ-730: For Logseq,
pages_dirSHALL bepages. For Obsidian,pages_dirSHALL be the empty string.REQ-731: A missing pages directory SHALL be created.
Step 4: Namespaces
REQ-740: Setup SHALL offer the default namespace list: Business, Tech, Content, Projects, People, Learning, Reference.
REQ-741: The user MAY give a space-separated list of their own or accept the default.
REQ-742: Namespace names MUST match
^[A-Za-z][A-Za-z0-9-]*$. On any other name setup SHALL name the invalid entries and ask again. Title Case is recommended, not validated.REQ-745: Setup MUST validate every answer (tool, namespaces, wiki root, readable templates) before its first write. "Write" includes creating the wiki root,
git initand every file.
Step 5: Memory Path
REQ-750: Setup SHALL ask for the Claude Code memory directory (L1), marked optional, with
~/.claude/projects/<project>/memory/as the usual form.REQ-751: The user MAY skip it. If skipped,
memory_pathis empty in the config.REQ-752: A leading
~SHALL be expanded.REQ-753: Setup does NOT check that the memory path exists.
Step 6: Git Init
REQ-760: If the wiki root has no
.gitdirectory, setup SHALL ask whether to initialize git there.REQ-761: On yes: run
git -C <root> init, then write the tool-specific.gitignoreunless a.gitignorealready exists. A.gitignorewritten here counts as a created file (REQ-810).REQ-762: Logseq
.gitignore, one entry per line in this order:logseq/bak/,logseq/.recycle/,.DS_Store,.logseq/.REQ-763: Obsidian
.gitignore, in this order:.obsidian/workspace.json,.obsidian/workspace-mobile.json,.DS_Store,.trash/.REQ-764: On no: skip git initialization entirely.
REQ-765: If
.gitalready exists, skip this step without asking.
Step 7: Templates
REQ-770: Templates SHALL be read from
${CLAUDE_PLUGIN_ROOT}/templates/<tool>/(Schema.md,Dashboard.md,Hub.md,Access-Log.md). In a copied skill the placeholder is replaced by the path of the repository clone (REQ-807).REQ-771: If a template cannot be read, setup SHALL stop with an error naming the path it tried and write nothing. If the path still contains the literal
${CLAUDE_PLUGIN_ROOT}, the message SHALL say that a copied skill needs the clone path substituted (README).
Step 8: Page Creation
REQ-780: Setup SHALL render each template by literal replacement of its placeholders and write the result with the Write tool.
REQ-780a: Apart from the placeholders, the written file MUST be identical to the template: same characters, line breaks, indentation (including tab characters) and trailing newline. Setup MUST NOT reformat, translate, shorten or complete template text.
REQ-781: Placeholder values:
{{DATE}}: today asYYYY-MM-DD, taken once fromdate +%Y-%m-%dand used for every file.{{NAMESPACES}}:Wiki/<ns>for each namespace in the given order, joined by,.{{NAMESPACE}}: the namespace name of the hub page being written.{{NAMESPACE_LINKS}}: one line per namespace,<prefix>[[Wiki/<ns>]], joined by a single newline with no newline after the last line. The prefix is a tab followed by-for Logseq and-for Obsidian.
REQ-782: Setup SHALL create, in this order: the Schema page, the Dashboard page, one hub page per namespace in the given order, and the Access-Log page under the Reference namespace.
REQ-783: Logseq: all pages flat in
pages/, namedWiki___<name>.md, where every/in the page name becomes___(pages/Wiki___Schema.md,pages/Wiki___Tech.md,pages/Wiki___Reference___Access-Log.md).REQ-784: Obsidian:
Wiki/Schema.md,Wiki/Dashboard.md,Wiki/<ns>/_index.mdper namespace,Wiki/Reference/Access-Log.md.REQ-785: Parent directories SHALL be created as needed.
REQ-786: Setup MUST NOT overwrite an existing file. It SHALL check every target path for existence before writing and skip the ones that exist. Relying on the Write tool to refuse is not sufficient.
REQ-787: Setup SHALL report one line per target:
Created: <label>orSkipped (already exists): <label>. The label isWiki/<name>for Logseq pages, the relative path for Obsidian pages, andllm-wiki.ymlfor the config.
Step 9: Config File
REQ-790: Setup SHALL create
llm-wiki.ymlin the wiki root as the last file. An existingllm-wiki.ymlis never replaced (plugin.md REQ-865 handles a configured wiki).REQ-791: The config SHALL have exactly this form, with a trailing newline. An empty value is written as the key and colon with nothing after it (
pages_dir:). v1.7.1 wrote a trailing space there; both parse as an empty value.# llm-wiki configuration # Generated by llm-wiki on <DATE> tool: <logseq|obsidian> wiki_path: <absolute wiki root, no trailing slash> pages_dir: <pages_dir> memory_path: <memory path or empty> namespaces: - <namespace 1> - <namespace n>REQ-792: The header comment carries the generation date.
Step 10: Install without the plugin
REQ-807: The README SHALL describe the install without the plugin: copy
SKILL.mdto<project>/.claude/commands/wiki.md; replace every${user_config.wiki_path}with the absolute wiki root and every${CLAUDE_PLUGIN_ROOT}with the absolute path of the clone; run/wiki setup. It SHALL say that the copy does not update itself and that the plugin is the recommended path.
Step 11: First Commit
REQ-810: If the wiki root is a git repository (initialized in Step 6 or before) and this run created at least one file, setup SHALL stage exactly the created files by path (
git -C <root> add -- <paths>) and commit them. It MUST NOT stage anything else.REQ-811: The commit message SHALL be:
wiki: initial setup via llm-wiki Schema, Dashboard, and hub pages for <N> namespaces. Tool: <tool> Generated by https://github.com/MehmetGoekce/llm-wikiREQ-812: A failed commit SHALL NOT abort setup; it SHALL warn and leave the files uncommitted.
Report
REQ-820: Setup SHALL end with the created and skipped files, the path of
llm-wiki.yml, and the next steps: open the wiki in the chosen tool, run/llm-wiki ingest "<a first source>", run/llm-wiki status.
Scenarios
Scenario 1: Logseq, new directory, defaults
GIVEN the plugin is installed with wiki root ~/Documents/TestWiki, which does not exist
WHEN the user runs /llm-wiki setup and answers Logseq, default namespaces,
memory path ~/.claude/projects/test/memory/, git init yes
THEN ~/Documents/TestWiki/pages/ SHALL contain 10 pages: Schema, Dashboard, Access-Log
and 7 hub pages
AND llm-wiki.yml SHALL contain tool: logseq, pages_dir: pages and the memory path
AND .gitignore SHALL have the four Logseq entries
AND git log SHALL show one commit with the 12 created filesScenario 2: Obsidian, existing vault with git
GIVEN ~/Documents/ObsidianVault/ exists with .obsidian/ and .git/
AND the vault has an uncommitted change in Notes/todo.md
WHEN the user runs /llm-wiki setup, accepts the suggested Obsidian, default namespaces,
no memory path
THEN setup SHALL NOT ask about git
AND create Wiki/Schema.md, Wiki/Dashboard.md, Wiki/Reference/Access-Log.md,
7 Wiki/<ns>/_index.md files and llm-wiki.yml with an empty memory_path
AND commit exactly those 11 files
AND Notes/todo.md SHALL still be uncommittedScenario 3: Wiki root is a file
GIVEN the configured wiki root ~/wiki.txt is a regular file
WHEN the user runs /llm-wiki setup and answers all questions
THEN setup SHALL stop with an error naming ~/wiki.txt
AND nothing SHALL be writtenScenario 4: Invalid tool answer
WHEN the user answers "Notion" to the tool question
THEN setup SHALL name Logseq and Obsidian as the valid answers and ask again
AND nothing SHALL be writtenScenario 5: git not installed
GIVEN git is not on PATH
WHEN the user runs /llm-wiki setup on a new directory
THEN setup SHALL warn that git steps are skipped
AND create all pages and llm-wiki.yml
AND create no .gitignoreScenario 6: Templates missing in a copied skill
GIVEN a copied skill in which ${CLAUDE_PLUGIN_ROOT} was not replaced
WHEN the user runs /wiki setup
THEN setup SHALL stop before writing
AND say that the clone path has to be substituted, pointing to the READMEScenario 7: Second run adds nothing
GIVEN setup completed for a Logseq wiki, and the user deleted llm-wiki.yml afterwards
WHEN the user runs /llm-wiki setup again with the same answers
THEN every page SHALL be reported as "Skipped (already exists)"
AND llm-wiki.yml SHALL be reported as created
AND no page SHALL changeScenario 8: Custom namespaces
WHEN the user enters "Engineering Sales Support" for namespaces
THEN setup SHALL create 3 hub pages:
- Wiki___Engineering.md (Logseq) or Wiki/Engineering/_index.md (Obsidian)
- Wiki___Sales.md or Wiki/Sales/_index.md
- Wiki___Support.md or Wiki/Support/_index.md
AND the Schema page SHALL list "Wiki/Engineering, Wiki/Sales, Wiki/Support"
AND llm-wiki.yml SHALL list these 3 namespaces
AND the Access-Log page SHALL still be created under Wiki/Reference, although Reference is not
in the listScenario 9: Git init declined
GIVEN the wiki root has no .git/
WHEN the user declines git initialization
THEN no .git directory and no .gitignore SHALL be created
AND no commit SHALL be attemptedScenario 10: Invalid namespace
WHEN the user enters "Tech 2024-Archive my_notes" for namespaces
THEN setup SHALL name "2024-Archive" and "my_notes" as invalid and ask again
AND nothing SHALL be writtenScenario 11: Same output as init-wiki.sh v1.7.1
GIVEN two empty directories A and B
WHEN scripts/init-wiki.sh from a checkout of tag v1.7.1 is run for A with --tool <t> and namespaces N
AND /llm-wiki setup is run for B with tool <t>, namespaces N, no memory path, no git, on the same day
THEN the file lists of A and B SHALL be identical
AND every file SHALL be byte-identical, except in llm-wiki.yml the wiki_path line and the
trailing space after an empty value (REQ-791)
(run for t = logseq and t = obsidian, N = default and N = "Engineering Sales Support")Acceptance Criteria
[ ] Needs only Claude Code; git optional, no python3, no package manager
[ ] Tool choice determines all downstream behavior; Logseq/Obsidian suggested from the directory
[ ] No write before all answers are valid; invalid answers are asked again
[ ] Created files byte-identical to init-wiki.sh v1.7.1 (Scenario 11, both tools)
[ ] Logseq: flat files with triple-underscore naming; Obsidian:
Wiki/<ns>/_index.mdhubs[ ] Existing files never overwritten; one created/skipped line per target
[ ] Config has the exact form of REQ-791
[ ] Git init optional, tool-specific .gitignore, commit holds only created files
[ ] README documents the install without the plugin
Dependencies
Templates:
templates/logseq/{Schema,Hub,Dashboard,Access-Log}.mdandtemplates/obsidian/{Schema,Hub,Dashboard,Access-Log}.mdspecs/plugin.md defines the
setupsubcommand (REQ-863-866)specs/config.md defines the wiki root resolution and the format of
llm-wiki.ymlspecs/schema.md defines what the generated Schema page contains
58 files · 2 not served here
- .claude-plugin/icon.png (not served here)
- .claude-plugin/marketplace.json
- .claude-plugin/plugin.json
- .github/ISSUE_TEMPLATE/bug_report.md
- .github/ISSUE_TEMPLATE/config.yml
- .github/ISSUE_TEMPLATE/feature_request.md
- .github/PULL_REQUEST_TEMPLATE.md
- .github/SECURITY.md
- .gitignore
- ATTRIBUTION.md
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE
- README.md
- SECURITY.md
- SKILL.md
- config.example.yml
- docs/diagrams.md
- docs/faq.md
- docs/graph-view.png (not served here)
- docs/l1-l2-architecture.md
- docs/logseq-vs-obsidian.md
- docs/schema-reference.md
- docs/troubleshooting.md
- examples/before-after.md
- examples/l1-memory-examples.md
- openspec/AGENTS.md
- openspec/changes/archive/2026-10-11-add-plugin-packaging/design.md
- openspec/changes/archive/2026-10-11-add-plugin-packaging/proposal.md
- openspec/changes/archive/2026-10-11-add-plugin-packaging/specs/config.md
- openspec/changes/archive/2026-10-11-add-plugin-packaging/specs/plugin.md
- openspec/changes/archive/2026-10-11-add-plugin-packaging/specs/setup.md
- openspec/changes/archive/2026-10-11-add-plugin-packaging/tasks.md
- openspec/changes/remove-shell-scripts/design.md
- openspec/changes/remove-shell-scripts/proposal.md
- openspec/changes/remove-shell-scripts/specs/config.md
- openspec/changes/remove-shell-scripts/specs/plugin.md
- openspec/changes/remove-shell-scripts/specs/setup.md
- openspec/changes/remove-shell-scripts/tasks.md
- openspec/project.md
- openspec/specs/config.md
- openspec/specs/ingest.md
- openspec/specs/l1-l2-routing.md
- openspec/specs/lint.md
- openspec/specs/plugin.md
- openspec/specs/prune.md
- openspec/specs/query.md
- openspec/specs/schema.md
- openspec/specs/setup.md
- templates/logseq/Access-Log.md
- templates/logseq/Dashboard.md
- templates/logseq/Hub.md
- templates/logseq/Schema.md
- templates/obsidian/Access-Log.md
- templates/obsidian/Dashboard.md
- templates/obsidian/Hub.md
- templates/obsidian/Schema.md
- wiki.md
Advantages
- 5-minute setup. Install the plugin, run /llm-wiki setup, and you have a schema, namespaces, and git tracking. No manual design needed. evidence: README.md
- Claude becomes your wiki maintainer. /llm-wiki ingest updates 5-15 pages with cross-references from a single source. evidence: README.md
- L1/L2 architecture. Auto-loaded rules in memory (L1) + deep knowledge in the wiki (L2). No other tool has this. evidence: README.md
- Built-in quality checks. /llm-wiki lint finds orphan pages, stale content, broken refs, and credential leaks. evidence: README.md
- Logseq + Obsidian. Use whichever you already have. No tool switch required. evidence: README.md
Limitations
- The schema feels overengineered at first. With 10 pages, defining 5 page types and 8 lint rules seems like overkill. Past 50 pages, you will be grateful for the consistency. Define the schema early -- it is much harder to retrofit one later. evidence: README.md
- Two systems means you need a clear boundary. Having both L1 and L2 means you could accidentally put the same information in both places. The lint rule for L1/L2 duplicates exists precisely for this reason. evidence: README.md
- Parallel agents can conflict. If you have multiple Claude sessions writing to wiki files simultaneously, concurrent edits can cause conflicts. Treat wiki files as a shared resource. evidence: README.md
- Start with fewer hub pages. Let them emerge organically from ingest operations rather than creating empty hubs upfront. evidence: README.md
Security
Risk level: No risk found
This brain runs
Agent instructions that run or fetch something (18)
SKILL.md:Run /llm-wiki setup to create one." If its `wiki_path` names a different directory than the wiki root above, warn once, naming both paths, and continue with the wiki root above.SKILL.md:Meant as a periodic run (default cadence N = 6 months) — wire it via your scheduler;SKILL.md:READ-ONLY and LOCAL: check existence, read files, search contents, read dependency manifests, run commands only with `--version` / `--help`.SKILL.md:Evidence basis per claim: `executed` (read-only command), `source` (read the implementing code, not run), or `file` (existence/content).SKILL.md:Skip -> file untouched, stays due for the next runSKILL.md:Timestamp the lint runSKILL.md:Last prune run (newest archived:: date) + a recommendation when the cold-page count is highSKILL.md:Comparison to last status run (if Dashboard page exists)SKILL.md:git: if the user wants git init or the root is a repository, check `git --version`.SKILL.md:Run `date +%Y-%m-%d` once.SKILL.md:Git init, only if the user agreed and the root has no `.git`: `git -C "<root>" init`.SKILL.md:Commit, only if the root is a git repository and this run created at least one file.SKILL.md:Run lint on imported pagesSKILL.md:decision:: run benchmark B1 first, then delete (2026-09-12)SKILL.md:- **Next step:** run B1, otherwise default A (check volumes, delete)SKILL.md:status: open · ticket: OPS-195 · decision: run benchmark B1 first, then delete (2026-09-12)SKILL.md:**Next step:** run B1, otherwise default A (check volumes, delete)openspec/AGENTS.md:git is optional.
Attribution and licence
- Created by
- Mehmet Goekce
- Declared authors
- Mehmet Goekce (declared in .claude-plugin/plugin.json)
- Publisher
- Mehmet Gökçe (Community)
- Source
- MehmetGoekce/llm-wiki · commit 5fa5ee7
- Licence
- MIT License (files served here)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Mehmet Goekce.
Install from source
2 of its files are not served here, so there is no ZIP. MehmetGoekce/llm-wiki at 5fa5ee7