Build an LLM wiki in Obsidian with Claude Code
Turn 10 to 20 articles and papers into a linked Obsidian wiki that Claude Code writes, answers from and checks, in under 30 minutes.

What you need
Step 1: Make the vault and two folders
3 minKeeping sources apart from the wiki lets Claude rewrite pages without touching your originals.
- Open Obsidian and create a new vault, for example one called Research wiki.
- Add two folders:
rawfor your sources andwikifor the pages Claude writes. - Drop any PDFs or notes you already have into
raw.
You should see an empty
wikifolder and your files insideraw.This is the LLM wiki pattern Andrej Karpathy shared in April 2026: raw sources, a wiki the AI keeps, and a rules file.
Step 2: Clip web articles into raw
6 minWeb Clipper saves a page as clean Markdown, which is easier for Claude to read than a web page.
- Install Web Clipper from obsidian.md/clipper and open an article you want to keep.
- Click the Obsidian icon in the toolbar, or press Cmd+Shift+O on a Mac (Ctrl+Shift+O on Windows).
- At the bottom, pick your vault in Vault and type
rawin Folder. Then click Add to Obsidian.
You should see the article as a new Markdown note inside
raw.The clip landed in the wrong vault or folder?
Check the Vault and Folder fields before you save. To fix a stray note, drag it into
rawin Obsidian's file list.Step 3: Write the wiki's rules
4 minClaude Code reads
CLAUDE.mdat the start of every session, so the same rules apply every time.- In the vault's top folder, create a note named
CLAUDE. Obsidian saves it asCLAUDE.md. - Paste the rules below and fill in your topic.
Your CLAUDE.md# Research wiki rules Topic: [YOUR TOPIC] - `raw/` holds my sources. Read them and never edit them. - `wiki/` is yours. Write one short page per concept, person, tool or claim. - Link related pages with [[wikilinks]]. Cite the raw file behind every fact. - Keep `wiki/index.md`: every page with a one-line summary, grouped by theme. - Add a dated line to `wiki/log.md` for every ingest, question and lint pass. - When sources disagree, say so on the page. Don't pick a side silently.
You should see
CLAUDE.mdat the top of the vault, next to therawandwikifolders.Claude ignores the rules?
Check that the file sits in the vault's top folder and is named exactly
CLAUDE.md. Then start a new Claude Code session there.- In the vault's top folder, create a note named
Step 4: Build the wiki in one pass
8 minThe first pass turns your sources into linked pages, plus the index Claude uses to find them later.
- Open a terminal in the vault folder and run
claude. Or open the Code tab in the Claude desktop app and pick the vault as the project folder. - Paste the prompt below and approve Claude's file edits as they come.
- Watch the pages appear in Obsidian's file list as Claude writes them.
Your promptRead every file in raw/ and build the wiki in wiki/, following CLAUDE.md. Write index.md first, then one page per idea, with links between related pages. At the end, list any source you couldn't read.
You should see new pages in
wiki, anindex.mdwith one line per page, and a first entry inlog.md.Claude asks before every single file?
Switch to Accept edits mode. In the desktop app, it's in the mode selector under the prompt box. In a terminal, press Shift+Tab to cycle modes.
10 to 20 sources on one topic make a good first batch. Add more later, a few at a time.
- Open a terminal in the vault folder and run
Step 5: Explore the graph and ask questions
4 minThe index lets Claude find the right pages without a search database, and good answers become new pages.
- In Obsidian, click Open graph view in the ribbon to see how pages link.
- Under Filters, turn on Orphans to spot pages with no links yet.
- Back in Claude Code, ask a question with the prompt below.
Your promptUsing wiki/index.md, answer this: [YOUR QUESTION]. Cite the wiki pages you used. If the answer adds something new, save it as a wiki page and link it from the index.
You should see an answer that links to wiki pages, and a new page if it added something.
The graph is a tangle of dots?
Use Groups in graph view. Click New group, search for a folder or tag, and pick a colour for it.
Step 6: Check the wiki once a month
3 minA wiki drifts as sources pile up, so a regular check catches contradictions and dead ends.
- Add new sources to
rawas you find them, then ask Claude to ingest only those files. - Once a month, run the prompt below and approve the fixes you agree with.
Your promptLint the wiki. Find contradictions, stale claims, orphan pages, missing links and topics that deserve their own page. List fixes by priority and wait for my OK before you change anything.
You should see a ranked list of fixes, and a lint entry in
log.mdonce Claude applies them.Two pages cover the same idea?
Ask Claude to merge them into one page, update every link that pointed to them and note the merge in
log.md.- Add new sources to
You get
A linked wiki on your topic that Claude Code keeps current and Obsidian shows as a graph
Try next
Did this guide work for you?
Thanks. It helps us fix the steps.


