Summary

Set up or operate a general-domain LLM Wiki (Karpathy pattern) — a persistent, LLM-maintained markdown knowledge base for research, personal knowledge management, book reading, course notes, competitive analysis, or any non-product domain.

When to use

Use /llm-wiki for any general-domain knowledge management need that is not tied to building a product. It applies the Karpathy wiki pattern with a flat raw/ directory and page categories of wiki/topics/ and wiki/decisions/.

Trigger phrases (from SKILL.md):

Invocation

Invoke as a slash command. The skill routes to Setup, Operate, or Repair automatically based on the state of llm-wiki/:

/llm-wiki

The skill determines which mode to run:

Operations available once the wiki is set up:

Example 1 — Setting up a new wiki for a research project

Illustrative example

Input:

/llm-wiki
Set up an LLM wiki for my machine learning research project.

Output / Result:

No llm-wiki/ directory found. Running Setup (Step 1).

Created:
  llm-wiki/
    karpathy-llm-wiki.md   ← reference copy
    schema.md              ← adapted to project (docs/ and papers/ detected as external roots)
    index.md
    log.md
    raw/
    wiki/
      overview.md
      glossary.md
      topics/
      decisions/
    drafts/

Detected external documentation roots:
  | Path      | Note                                                     |
  |-----------|----------------------------------------------------------|
  | docs/     | Read-only literature corpus — cite as docs/<f>.          |
  | papers/   | Research papers — read for context, never modify.        |

Log entry appended: [2026-06-05] init | wiki created | schema.md, index.md, wiki/overview.md, wiki/glossary.md

Offer: Inject llm-wiki pointer into CLAUDE.md? (yes/no)

Example 2 — Ingesting a source into an existing wiki

Illustrative example

Input:

/llm-wiki
Ingest this paper abstract into the wiki as a topic page on "attention mechanisms":
[paste of paper abstract on transformer attention]

Output / Result:

Running Operation: Ingest

1. Saved raw source to: llm-wiki/raw/attention-mechanisms-vaswani-2017.md
   (Provenance header added: source = "pasted abstract", date = 2026-06-05)

2. Updated wiki page: llm-wiki/wiki/topics/attention-mechanisms.md
   - Added section: "Scaled dot-product attention (Vaswani et al., 2017)"
   - No conflicts detected with existing content.

3. Updated index.md: added entry for "attention mechanisms"

4. Appended to log.md:
   ## [2026-06-05] ingest | attention-mechanisms-vaswani-2017.md | wiki/topics/attention-mechanisms.md

Next recommended operation: query or lint to verify the wiki state.