Plain markdown · Lives in git · No database

Let your AI assistant write the wiki you never had time for

A template for starting your own LLM wiki. Add files, links or pasted text. Your assistant reads them with its wiki skills and writes linked markdown pages in wiki/, then answers your questions from those pages and cites them.

New here? Read the five parts in order, or jump to the one you need.

In short

A wiki your assistant writes and keeps current

LLM Wiki Template is a starting point for your own LLM wiki. Clone it, add your sources, and your assistant turns them into linked markdown pages, so you ask the wiki instead of digging through files.

What it can do

It reads the files, links and pasted text you give it. It writes a page for each source, plus pages for the people, ideas and comparisons inside them, and answers your questions from those pages with citations.

What it solves

Tools that answer from documents rebuild the answer from fragments on every question, so nothing builds up. Here the summarizing, linking and spotting of contradictions happens once and stays on the page.

What it is for

Any subject you keep reading about: a course, a research topic, client files, a team's decisions. It suits you if you want answers you can check and notes that stay current without you maintaining them.

The five parts below go into each point in order: the idea, a live graph, how to use it, why it pays off and how to start.

1Understand the idea

Asking your documents a question, today

Most tools that answer from documents work like the first picture.

This part paraphrases the gist, using the names this template gives things.

Retrieval, the usual way

  1. You upload files.
  2. When you ask, the tool pulls out the pieces that look relevant.
  3. The model writes a fresh answer from those pieces.
  4. The next question starts again at step 2. Nothing is kept.

An LLM wiki

  1. You add a source.
  2. The assistant reads it once and writes or updates linked pages.
  3. Later questions start from those pages, with links and flagged contradictions already there.
  4. The pages stay, and every new source or answer adds to them.

The gist puts NotebookLM, ChatGPT file uploads and most RAG setups in the first group.

Example: you save five papers about sleep. Ask how they disagree and a retrieval tool digs through fragments of all five again, every time. In a wiki, the page on sleep and memory already says where paper 2 and paper 4 disagree, and cites both.

Who does what

You decide what goes in and what to ask. The assistant does the upkeep.

You

  • Pick the sources.
  • Ask the questions.
  • Read the pages and decide what it all means.

The assistant

  • Summarizes each source.
  • Links related pages.
  • Files everything in the right place.
  • Keeps summaries current and flags contradictions.

Karpathy compares it to programming: Obsidian is the editor, the assistant is the programmer and the wiki is the codebase. Obsidian is optional here. Any markdown editor, or just your file browser, works.

Three layers

Each layer has one owner. That keeps the sources trustworthy and the pages consistent.

AGENTS.mdwiki/raw/
The schema
A short instruction file (here, AGENTS.md plus the skills) that says how the wiki is laid out and what to do for each kind of request. You and the assistant refine it as you learn what works.
The wiki
Markdown pages the assistant writes: summaries, entity and concept pages, comparisons, syntheses. You read them. The assistant owns them and keeps them consistent.
Raw sources
Your articles, papers, images and data files. They never change. This is the source of truth.

Example: reading a novel. The chapters you save are the raw layer. The wiki gets a page for each character and theme. The schema can say that every character page lists the chapters where that person appears.

Three operations

Everything you do with the wiki is one of these.

Ingest

sourceentityconceptsynthesisindexlog

You add a source and ask the assistant to process it. It reads the source, talks through the main points with you if you like, writes a summary page, updates the index, updates the entity and concept pages the source touches, and adds a line to the log.

One source can change 10 to 15 pages. The gist prefers ingesting one source at a time and staying involved: reading the summaries and steering what to emphasize. You can also ingest many at once with less supervision. Whichever you pick, write the workflow into the schema so the next session follows it.

Example: you add a transcript of a podcast about sleep. The assistant writes a page for the episode, adds a paragraph to the page on melatonin, creates a page for the guest and links the three.

In this template that is the wiki-ingest skill.

Query

You ask a question. The assistant searches the wiki, reads the relevant pages and answers with citations. The answer can be a page, a table, a slide deck or a chart, whatever fits the question.

A good answer can also be filed back into the wiki as a new page. A comparison you asked for or a connection you found should not vanish into chat history.

Example: you ask for a comparison of two note apps and like it, so the assistant saves it as a synthesis page. A month later you ask a follow-up and it starts from that page.

In this template that is the wiki-query skill, or wiki when nothing may be written.

Lint

From time to time, ask the assistant to check the wiki's health. It looks for:

  • pages that contradict each other
  • claims that newer sources have replaced
  • orphan pages that nothing links to
  • ideas mentioned often but without a page of their own
  • missing cross-references between related pages
  • gaps that a web search could fill

It is also good at suggesting what to read or ask next.

In this template, lint and refresh live in the wiki-maintenance skill.

The vocabulary

Source page

One page per raw file. It summarizes what the source says and numbers its claims so other pages can cite them, like [[slug]] C1.

Entity page

A person, company, product or place that shows up in more than one source. Gathers what the wiki knows about it in one spot.

Concept page

An idea, method or theme. It explains the thing and links to the sources behind it.

Synthesis page

The saved answer to a question that needed several pages. Next time, you start from it.

Wikilink

Links like [[slug]] take you from one page to another. They are what the graph above draws, and Obsidian reads them too.

Frontmatter

A small block of YAML at the top of each page with title, type, sources and dates. The lint script checks it.

Ingest

The assistant reads a raw source, writes or updates the wiki pages it touches, and records it in the index and log.

Query

Ask a question. The assistant answers from the wiki first and can save a useful answer as a synthesis page.

Lint

A health check for broken links, missing fields, stale claims and pages nothing links to.

Skill

A markdown file in .agents/skills/ that tells the assistant how to do one job, such as ingest, query or lint.

2See it working

What a grown wiki looks like

This is the LLM Wiki Brain, a plugin that draws your wiki inside Obsidian, here running on made-up data about sleep and memory. Each cell is a page in wiki/, each line is a [[wikilink]], and pages with more links grow bigger.

Loading the graph…

Try it. Flow sends information from the index to the newest page, which is what an ingest does. Type in the search box and press Enter to ask the wiki, which is a query. Lint rings the orphan pages and the broken links. Filters narrow the picture by type, folder, tag, links and dates, and Replay grows the wiki back in the order it was written.

Want it on your own wiki? The plugin LLM Wiki Brain runs inside Obsidian on your real wiki/ folder.

Most connected pages

    3Use it

    Give it almost anything

    Start with what you already have. You choose the sources, and the assistant never edits them.

    Files on your computer

    Notes, markdown, text, PDFs, images and data files such as CSV. Give the path to wiki-ingest. It asks before saving a copy in raw/, then ingests it.

    Links from the web

    Hand wiki-ingest a link and it asks whether to save the page into raw/ first. If you say yes, it keeps a clean copy and notes the date it was fetched.

    Text you paste

    Paste an email, a chat thread or a transcript into wiki-ingest. It asks before saving it as a file in raw/, then ingests it like any other source.

    Screenshots and scans

    Images count as sources too. The assistant separates what it can read in the image from what it is guessing, and says so when it can't read one reliably.

    Whatever the format, the assistant needs a tool that can read it. If it can't, it tells you instead of guessing.

    Every request goes through a skill

    When you ask the assistant to ingest, answer or remove something, AGENTS.md tells it to load the matching skill first. That is why every answer is built the same way: it starts from the index, uses your pages, cites them and logs any change it makes.

    You saySkillWhat happens
    Ingest this file or linkwiki-ingestReads the source, writes or updates the pages it affects, then updates the index and log. A link or pasted text is saved to raw/ first, and only after you say yes.
    What does the wiki say about X?wiki-queryStarts from the index, reads the relevant pages, opens raw files only to verify, and cites what it used. It can save a useful answer as a synthesis page.
    Just tell me, don't change anythingwikiThe same lookup, but it cannot write, create or delete a file.
    Check the wikiwiki-maintenanceLint looks for broken links, missing fields and orphan pages. Refresh reports raw files that changed after their page was written.
    Remove everything about Xwiki-deleteLists every mention, shows what would change and waits for your confirmation. It never touches raw files.
    Write or fix a pagewiki-writingSets the page type, headings, frontmatter and citation style before any wiki prose is written.
    Update this notebook from the templatewiki-updateShows what the template changed, applies it on a branch, merges the files you customized and records the new base. It never touches raw files or wiki pages.
    Not sure what to askwiki-routerPicks exactly one of the skills above, or asks you one question.

    These are instructions the assistant follows, not a lock. The lint script checks the result.

    Shortcut commands, where your assistant supports them:

    /wiki-ingest/wiki-query/wiki/wiki-lint/wiki-refresh

    Index and log

    Two plain files help both of you find your way as the wiki grows.

    index.md

    A catalog of every page: a link, a one-line summary, grouped by category. The assistant updates it on every ingest and reads it first when you ask something. The gist says this works well up to roughly a hundred sources and a few hundred pages, with no search infrastructure.

    ## Concepts - [[wikilink]]: a link from one page to another - [[lint]]: a health check for the wiki ## Sources - [[sleep-podcast]]: transcript, ingested 2026-04-02

    log.md

    A record of what happened and when: ingests, questions, lint passes. It only ever grows. Start every entry with the same prefix and simple tools can read it. This command prints the last five entries:

    ## [2026-04-02] ingest | Sleep podcast transcript ## [2026-04-03] query | How do the sleep papers disagree? ## [2026-04-09] lint | 3 orphan pages found # the last five entries grep "^## \[" wiki/log.md | tail -5

    Examples from an ordinary week

    Made-up situations, but the steps are the real ones.

    Studying for an exam

    You keep lecture PDFs, your class notes and two articles you found online. You run wiki-ingest on all of it, and it saves the links into raw/ after you approve.

    Before the exam you ask: "What did the course say about Keynes, and where does the article disagree?" The answer cites the lecture page and the article page.

    Running a small business

    You drop in proposals, signed contracts, meeting notes and emails exported as text. Each one is ingested the same way.

    Months later: "What did I promise this client about delivery, and did the scope change?" The assistant points to the proposal and to the later email, and says where they differ.

    Planning a trip

    You save a few blog posts as links, the booking confirmation as a PDF and screenshots of the map.

    You ask: "We land on Sunday night and the museum closes on Mondays. Which day works?" The answer comes from your saved sources, and each claim links to the page it came from.

    Keeping a team's decisions

    You add meeting notes, design docs and issue threads over a few months.

    A new teammate asks: "Why did we pick Postgres?" The assistant answers from the decision pages and can save the answer as a synthesis page, so the next person finds it already written.

    In each case, wiki-query handles the questions and wiki-ingest handles every source you add.

    4Why it pays off

    What it does for you

    Plain files, a few scripts and instructions your assistant follows. Nothing runs in the background.

    Answers you can check

    Claims in wiki pages carry a footnote that points at the raw file. When the assistant answers, it names the pages it used, so you can open them.

    Your sources stay untouched

    The assistant reads raw/ but never edits it. Everything it writes goes into wiki/, and git keeps the history.

    A record of every change

    wiki/index.md lists every page. wiki/log.md records what the assistant did and when.

    Good answers get reused

    A useful answer can be saved as a synthesis page. The next similar question starts from that page instead of the raw files.

    Problems show up early

    Lint catches broken links and missing fields. Refresh tells you when a raw file changed after its page was written.

    Removing things is safe

    Removing a subject lists every mention first and waits for your yes. The raw files stay where they are.

    Why this works

    Keeping a knowledge base up to date is mostly bookkeeping: fixing cross-references, rewriting summaries, noticing when new data contradicts old claims. People give up on wikis because that work grows faster than the value they get back. An assistant does not get bored, does not forget a link and can touch 15 files in one pass.

    The gist ties this to the Memex, an idea Vannevar Bush described in 1945: a private, curated store of documents with trails of associations between them. What Bush could not solve was who would do the upkeep. That is the part the assistant takes on.

    Who this is for

    If one of these sounds like you, it's worth an afternoon.

    Readers and researchers

    You save more papers and articles than you can keep in your head, and want to ask questions across them.

    Builders and founders

    You keep notes on competitors, customer calls and past decisions, and can never find the one you need.

    Students and writers

    You want to start writing with the citations and cross-references already lined up.

    Teams

    You want one shared notebook in git that stays up to date without someone owning it full time.

    Skip it if you need search over millions of documents or a hosted service. This is a folder of markdown on your own machine.

    LLM wiki vs. RAG vs. note apps

    The same question, answered three ways. Read the rows as rough generalizations.

    CapabilityLLM WikiRAGNote apps
    Answers get written downYesNo, rebuilt each timeOnly if you write them
    Links between ideas exist before you askYesNoManual
    Conflicting claims get flaggedOn ingest and lintRarelyNo
    SetupClone the repoEmbeddings and a vector storeInstall an app
    Where the data livesLocal filesUsually a hosted indexLocal or the app's cloud
    Who writes the notesThe assistantNobody, it indexes raw textYou

    5Start

    Quick start

    You need an AI coding assistant that can read your files. After the clone, every source and every question goes through its wiki skills. No API keys, no database.

    # Create your own copy and open it with your assistant git clone https://github.com/jonyfs/llm-wiki-template my-wiki cd my-wiki

    Then type these in your assistant's prompt. Each one loads the skill named next to it.

    # 1. Add a source: a file path or a link (loads wiki-ingest) /wiki-ingest ~/Downloads/lecture.pdf /wiki-ingest https://example.com/article # 2. Ask a question (loads wiki-query) /wiki-query What does the wiki say about X? # 3. Check the wiki now and then (loads wiki-maintenance) /wiki-lint

    No slash commands in your assistant? Name the skill in a sentence: "Use wiki-ingest on ~/Downloads/lecture.pdf." The file can live anywhere. wiki-ingest asks before it saves a copy in raw/. Lint and search are scripts those skills run for you, so you never call them yourself.

    Works with Claude Code, Cursor, GitHub Copilot, OpenCode, and Codex. See README.md for the full walkthrough.

    No terminal experience? Use an installer

    Download the template as a ZIP, unzip it, and run the file for your system. It asks for a name and creates your wiki in your Documents folder.

    Or paste one command. It checks for git, installs what is missing, downloads the template from GitHub and starts the installer.

    bash -c "$(curl -fsSL https://raw.githubusercontent.com/jonyfs/llm-wiki-template/main/scripts/bootstrap.sh)"
    irm https://raw.githubusercontent.com/jonyfs/llm-wiki-template/main/scripts/bootstrap.ps1 | iex

    macOS

    Double-click the installer in the scripts folder. If Apple's developer tools are missing, macOS installs them first, and you run the file again.

    See the macOS installer

    Windows

    Double-click the installer in the scripts folder. It uses PowerShell, which Windows already has, and installs git if it is missing.

    See the Windows installer

    Linux

    Run the installer with bash. It installs git and python3 with your package manager and asks for your password once.

    See the Linux installer

    Prefer one command? The starter script creates a clean local notebook without the template's site.

    Compatible agents

    The instructions live in AGENTS.md and .agents/skills/. Any agent that reads markdown can follow them.

    Claude Code Cursor GitHub Copilot OpenCode Codex Windsurf Cline

    Make it yours

    The gist is deliberately abstract. Everything in it is optional, so take what helps.

    Search for a big wiki

    Past a few hundred pages the index stops being enough. The gist suggests a local search engine for markdown, such as qmd. This template ships a small script, scripts/wiki_search.py, which wiki-query runs when the wiki is large.

    Clip web pages

    The gist uses the Obsidian Web Clipper, a browser extension that turns articles into markdown. Hand the clipped file to wiki-ingest, or give it the link. It asks before saving anything in raw/.

    Keep images local

    Download an article's images next to it, so the assistant can look at them without relying on links that may break. It reads the text first, then views the images it needs.

    See the shape

    Obsidian's graph view shows what connects to what, which pages are hubs and which are orphans. The graph on the home page imitates it.

    Slides and tables

    Marp turns markdown into slide decks, and Dataview builds tables from page frontmatter. Both are Obsidian plugins from the gist's tips. Every page here has frontmatter, so Dataview has something to read.

    History for free

    The wiki is a git repository of markdown files, so you get history, branches and collaboration without extra tools.

    The gist ends by saying its only job is to pass on the pattern. Share it with your assistant and shape the details together.

    Common questions

    Do I need an API key or database?

    No. The wiki is plain markdown files in git. You only need an AI coding assistant that can read and write them.

    How is this different from RAG?

    RAG finds the relevant chunks and writes a fresh answer every time you ask. Here the assistant writes the pages ahead of time, so links between ideas and conflicting claims are already on the page when you ask.

    What can I add to it?

    Files, links and pasted text, all through wiki-ingest: notes, markdown, PDFs, images and data files. It asks before saving a copy in raw/. The assistant still needs a tool that can read the format.

    Do I have to use the skills?

    They are how the template works. AGENTS.md tells the assistant to load the matching skill before it ingests, answers or removes anything. It's an instruction, not a lock, so if an answer looks like it skipped the wiki, ask it to use the wiki skill and cite its pages.

    How do I get the template's newer features?

    Ask your assistant to run /wiki-update. It shows what changed, applies it on a branch and never touches your sources or your wiki pages.

    Does it work offline?

    The files do. The wiki is local and needs no server. Whether the assistant works offline depends on which assistant you use.

    Who maintains the wiki?

    The assistant does, following the instructions in .agents/skills/. You choose the sources and ask the questions.

    When something looks wrong

    Empty wiki after ingest

    Check that you ran wiki-ingest (for example /wiki-ingest <file>) and that the source ended up in raw/. Nothing fills the wiki by itself.

    Broken wikilinks

    Run /wiki-lint. It lists links that point nowhere so you can fix or remove them.

    Stale claims

    Run /wiki-refresh. It shows which raw files changed since their source pages were written.

    Too many pages

    That's normal. Read wiki/index.md, or ask wiki-query, which searches for you.

    The answer ignored the wiki

    Ask it to answer with wiki-query and cite the pages it read. If the pages are not there yet, run wiki-ingest on the source first.

    Start with one source

    Clone the template, open it with your assistant and run /wiki-ingest on one article. You'll quickly see whether it fits how you work.

    Project metrics

    Live numbers from the repository.

    Stars: … Forks: … Open issues: … Last updated: …