6Your own wiki that Claude keeps up to date
Start
-
Lesson 6 · 25 min · 13 steps
Your own wiki that Claude keeps up to date, ready for Obsidian
What you get A small personal wiki on one topic that grows every time you add a document
Before you start
- You can open a folder in the Code tab (Lesson 2).
- 2 or 3 documents on one topic: a PDF, a meeting note, an article.
- Optional: Obsidian, a free app from obsidian.md for reading the pages.
Steps in this lesson
- Make a folder named
my-wiki, on your Desktop or anywhere you like. - Click + New and open
my-wiki(or your folder). - Send this prompt to set up the wiki's folders.
- Open
CLAUDE.mdfrom Files (top right) and paste this in. - In Finder, copy or move one document into
my-wiki/raw/.In File Explorer, copy or move one document intomy-wiki\raw\. - Click + New and open
my-wikiagain. - Replace
<file>with your file's exact name, then send this prompt. - In Files, open the new page inside
wiki/sources. - Replace
<question>with something your document answers, then send this. - Add a second document to
raw, then send the add-document prompt again. - Send this prompt to give the wiki a health check.
- Optional: in Obsidian, choose Open folder as vault, pick
my-wiki. - Optional: in Obsidian Settings > Files and links, set attachments to
raw/assets.
Step 1 of 13
Make a folder named
my-wiki, on your Desktop or anywhere you like.One topic only: a wiki about everything stays empty. A folder you already keep on that topic works too.
Step 2 of 13
Click + New and open
my-wiki(or your folder).Use This computer and Open folder…, then make sure the mode at the right says Auto.
- 1This computer
- 2my-wiki folder
This computer and the my-wiki folder in the row under the prompt box Step 3 of 13
Send this prompt to set up the wiki's folders.
Claude makes them without asking, then lists the result.
Type this into the sessionCreate this structure in this folder: folders raw, raw/assets, wiki/sources, wiki/entities, wiki/concepts, wiki/analysis, and three empty files index.md, log.md and CLAUDE.md. Then list the result.
Step 4 of 13
Open
CLAUDE.mdfrom Files (top right) and paste this in.Replace YOUR TOPIC with your topic; it saves itself. Optional: add your own rules under Rules.
Paste into CLAUDE.md# Knowledge vault This folder is a personal wiki that Claude maintains. Topic: YOUR TOPIC. ## Layout - raw/: source files I drop in. Read them and write your pages in wiki/. raw/assets/ holds images and attachments. - wiki/: pages you write and maintain. - wiki/sources/: one page per raw file (summary and key facts). - wiki/entities/: people, companies, tools, products. - wiki/concepts/: ideas, methods, terms. - wiki/analysis/: answers and comparisons worth keeping. - index.md: catalog of every wiki page, grouped by category, one line each: a link plus a one-line summary. - log.md: a running history. Add each new entry at the end. ## Rules - Write pages in Markdown with Obsidian wikilinks: [[page-name]]. - File names: lowercase-with-dashes.md. - Every fact in a wiki page names the raw file it came from. - When a new fact contradicts an existing page, update the page and keep both versions with their sources. - Write in the language of my prompt (English or Arabic). - Keep each page short, one screen when possible. ## Operations ### Ingest raw/<file> 1. Read the file. Tell me the 3 to 5 key takeaways before writing anything. 2. Create or update wiki/sources/<file-name>.md with a summary. 3. Create or update the entity and concept pages it touches, with wikilinks between them. 4. Update index.md. 5. Append to log.md: `## [YYYY-MM-DD] ingest | <file name>` and one line on what changed. ### Query 1. Read index.md first, then only the relevant pages. Use only this wiki, not outside knowledge. 2. Answer with [[links]] to the pages you used. 3. If the answer is useful, save it as wiki/analysis/<topic>.md, add it to index.md, and append to log.md: `## [YYYY-MM-DD] query | <question>`. ### Lint 1. Check for contradictions, stale claims, orphan pages (no links in or out), missing cross-links, pages missing from index.md, and gaps. 2. Fix the small things yourself: missing links and missing index entries. List everything else for me to decide. 3. Append to log.md: `## [YYYY-MM-DD] lint | <summary>`.
- 1Files icon
- 2CLAUDE.md tab
CLAUDE.md open in the Files pane with the pasted rules (the sample article in raw/ comes in the next step) Step 5 of 13
In Finder, copy or move one document into
my-wiki/raw/.Hold Option while dragging to copy instead. Using your own folder? Copy or move its documents into
raw.In File Explorer, copy or move one document into
my-wiki\raw\.Hold Ctrl while dragging to copy instead. Using your own folder? Copy or move its documents into
raw.Step 6 of 13
Click + New and open
my-wikiagain.Claude reads CLAUDE.md only when a new session starts. Shortcut: Cmd+N or Ctrl+N.
Step 7 of 13
Replace
<file>with your file's exact name, then send this prompt.This is the add-document prompt. Delete the < > too and keep the ending, like raw/notes.pdf.
Type this into the sessionIngest raw/<file>. Follow CLAUDE.md: write the source summary, create or update entity and concept pages, update index.md, append to log.md.
- 1Takeaways
- 2Files Claude made
- 3New wiki pages
Claude's reply after the first ingest: the key points, a Created 8 files, ran a command +95 line, and links to the new pages Step 8 of 13
In Files, open the new page inside
wiki/sources.Then peek at
index.mdandlog.md; the log shows a heading with today's date and the word ingest.Step 9 of 13
Replace
<question>with something your document answers, then send this.This is the question prompt. Delete the < > too.
Type this into the sessionUsing only this wiki, answer: <question>. Cite the pages you used with [[links]]. If the answer is useful, file it as a new page under wiki/analysis/ and add it to index.md.
Step 10 of 13
Add a second document to
raw, then send the add-document prompt again.Use the new file's name in place of
<file>.Step 11 of 13
Send this prompt to give the wiki a health check.
This is the health-check prompt. Claude fixes small things like missing links and lists the rest.
Type this into the sessionLint the wiki: find contradictions, stale claims, orphan pages, missing cross-links and gaps. Fix the small things like missing links, list the rest for me, and append a lint entry to log.md.
Step 12 of 13
Optional: in Obsidian, choose Open folder as vault, pick
my-wiki.Click a
[[link]], then the graph icon at top left to see how pages connect.- 1my-wiki
- 2weekly-meeting link
- 3Open graph view
Obsidian with the my-wiki vault open, a source page shown, and links to other pages Step 13 of 13
Optional: in Obsidian Settings > Files and links, set attachments to
raw/assets.Type it in Attachment folder path. Missing? Set the option above it to In the folder specified below.
- 1Files and links
- 2Attachment folder path
- 3Automatically update internal links
- 4Use [[Wikilinks]]
Obsidian Settings, Files and links, with the attachment folder set to raw/assets and both link options on -
You did it
A small personal wiki on one topic that grows every time you add a document
Take this to any task
- Keep originals apart from Claude's writingPut your source files in one place and Claude's pages in another, so you can always compare a page with what it came from.
- Ask where every fact came fromHave Claude name the file behind each fact and answer only from your documents, so any claim takes seconds to check.
- Save a good answer so it adds upWhen Claude gives an answer you'll want again, ask it to save it as a page in your folder, so your collection grows with every question.
- Have Claude look over its own workNow and then, ask Claude to find gaps and clashes in what it built, fix the small things itself, and list the bigger choices for you.
Your own wiki, one round
After the setup in lesson 6: you add documents and ask questions, and Claude keeps the wiki in order.
- 1You
Add a document
Put it in
raw/, then send the add-document prompt with your file's exact name in it. - 2Claude
Claude writes wiki pages
It lists the key points first, then writes a summary and linked pages, and updates
index.mdandlog.md. - 3You
Ask a question
Send the question prompt with a question your documents can answer.
- 4Claude
Claude answers with links
It cites the pages it used and saves useful answers in
wiki/analysis.
New document? Start again at step 1.
Any time
IfYour wiki needs a tidy-up
Send the health-check prompt (it starts
Lint the wiki). Claude fixes small things like missing links and lists the rest.
Check yourself
1. Which folder holds the documents you add?
2. Which prompt adds a new source to the wiki?
3. After pasting CLAUDE.md, what makes Claude read it?
All three right. Mark the lesson as done.Read more: Andrej Karpathy, LLM Wiki (gist)