6Your own wiki that Claude keeps up to date

Start

  1. 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.

  2. 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.

    1. 1This computer
    2. 2my-wiki folder
    This computer and the my-wiki folder in the row under the prompt box
  3. 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 session
    Create 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.
  4. Step 4 of 13

    Open CLAUDE.md from 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>`.
    
    1. 1Files icon
    2. 2CLAUDE.md tab
    CLAUDE.md open in the Files pane with the pasted rules (the sample article in raw/ comes in the next step)
  5. 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.

  6. Step 6 of 13

    Click + New and open my-wiki again.

    Claude reads CLAUDE.md only when a new session starts. Shortcut: Cmd+N or Ctrl+N.

  7. 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 session
    Ingest raw/<file>. Follow CLAUDE.md: write the source summary, create or update entity and concept pages, update index.md, append to log.md.
    1. 1Takeaways
    2. 2Files Claude made
    3. 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
  8. Step 8 of 13

    In Files, open the new page inside wiki/sources.

    Then peek at index.md and log.md; the log shows a heading with today's date and the word ingest.

  9. 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 session
    Using 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.
  10. 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>.

  11. 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 session
    Lint 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.
  12. 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.

    1. 1my-wiki
    2. 2weekly-meeting link
    3. 3Open graph view
    Obsidian with the my-wiki vault open, a source page shown, and links to other pages
  13. 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.

    1. 1Files and links
    2. 2Attachment folder path
    3. 3Automatically update internal links
    4. 4Use [[Wikilinks]]
    Obsidian Settings, Files and links, with the attachment folder set to raw/assets and both link options on
  14. 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.

    1. You

      Add a document

      Put it in raw/, then send the add-document prompt with your file's exact name in it.

    2. Claude

      Claude writes wiki pages

      It lists the key points first, then writes a summary and linked pages, and updates index.md and log.md.

    3. You

      Ask a question

      Send the question prompt with a question your documents can answer.

    4. Claude

      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?

    Read more: Andrej Karpathy, LLM Wiki (gist)

Built by Saiaf. Questions and corrections: hello@saiaf.me