PlugWiki

karpathy-llm-wiki Skill for Claude Code: What It Does and How to Install It

Makes Claude collect sources into a raw/ folder and compile them into a linked wiki/ you can query with citations.

Installs
8.3K
on skills.sh
Stars
2.7K
on GitHub
Updated
Jul 2026
last commit

The skill has three operations. Ingest saves a source to raw/ and then creates or updates wiki articles, or only logs it when it adds nothing new. Query answers from the wiki with links to the articles it used and writes no files unless you ask to archive an answer. Lint fixes index and link problems and reports contradictions and gaps.

Its main rule is that every number, date and direct quote in wiki/ must appear word for word in the linked raw file. It bundles one Python script, scripts/check_evidence.py, for that check. The project uses a raw/ and wiki/ layout under your project root and creates what is missing on the first ingest.

Good for

  • People building a personal knowledge base from articles, papers and notes
  • Researchers who want answers that cite wiki pages instead of fresh web searches
  • Anyone who wants a wiki checked for broken links, stale claims and unsupported numbers

Install karpathy-llm-wiki

Claude Code

  1. 1

    Copy this prompt.

    Install the karpathy-llm-wiki skill in Claude Code. Run this command:
    
    npx add-skill Astro-Han/karpathy-llm-wiki
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

The README gives the skills command for Claude Code, Cursor and OpenCode, and a manual copy for Codex CLI. The skill writes raw/ and wiki/ folders in your project and runs a Python script for the evidence check, so there is no Claude app tab. For other tools the README says to copy SKILL.md, references/ and scripts/ into the skill directory.

From the project README. Source.

What's in the skill

When it loads

Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.

Sections in SKILL.md

  1. Architecture
  2. Initialization
  3. The Grounding Invariant
  4. Ingest
  5. Fetch (raw/)
  6. Triage
  7. Compile (wiki/)
  8. Cascade Updates
  9. Post-Ingest
  10. [YYYY-MM-DD] ingest | <primary article title>
  11. [YYYY-MM-DD] ingest | no material: <project-root-relative raw file path>
  12. Research (multi-source ingest)
  13. Query
  14. Steps
  15. Archiving
  16. Lint

Key facts

Installs on skills.sh
8,318 (Nov 2, 2026)
Last repo commit
Jul 23, 2026

What it includes

  • Saves a source to raw/, triages it, then creates or updates wiki articles

    Triage ends as New, Update, Disputed or No material. It also updates wiki/index.md and appends to wiki/log.md. Fetching uses whatever web or file tools your environment has.

    Try: “Add this article to my wiki: https://example.com/post”

    Write · Ingest

  • Creates raw/, wiki/, wiki/index.md and wiki/log.md on the first ingest if missing

    It never overwrites existing files. Query and lint do not auto-create the structure.

    Write · Initialization

  • Gathers several sources on a topic, only when you explicitly ask

    Searches from several angles, including opposing views, then compiles one source at a time.

    Write · Research

  • Searches the index and wiki, then answers with links to the articles used

    Writes no files unless you ask to archive the answer.

    Try: “What do I know about transformer architectures?”

    Read · Query

  • Writes a query answer as a new wiki page, marked [Archived] in the index

    Only when you ask. It always creates a new page and logs it.

    Write · Archive an answer

  • Fixes index entries, internal links, Raw references and See Also links

    Ambiguous cases are reported instead of fixed. Missing index targets are marked [MISSING], not deleted.

    Write · Lint: safe fixes

  • Greps numbers, dates and quotes in wiki articles against their linked raw files

    Run as python3 <skill-dir>/scripts/check_evidence.py <project-root>. It reports suspects and never fixes facts.

    Runs code · scripts/check_evidence.py

  • Reports contradictions, outdated claims, orphan pages and missing cross-references

    Reported only, never auto-fixed.

    Read · Lint: judgment reports

From the official docs

Permissions

Medium risk

What it can do

Watch out for

  • It writes and edits many files

    Ingest can touch several articles, the index and the log through cascade updates. Lint auto-fixes index entries and links. Use version control and review the diff. github.com

  • It fetches web content into your project

    SKILL.md says to get sources using whatever web or file tools your environment provides, and to preserve the original text. Check what was saved to raw/. github.com

  • Lint can remove dead See Also links

    When a See Also target has no match anywhere in wiki/, lint removes the link. Index entries to missing files are marked [MISSING] instead of deleted. github.com

Security advisories

No published security advisories as of Nov 2, 2026.

Technical details
Turning on read-onlyQuery is described as writing no files unless you ask to archive an answer.
Scopes
  • Creates raw/ and wiki/ folders and files under your project root

  • Edits wiki articles, wiki/index.md and wiki/log.md

  • Fetches sources with the web tools your assistant has

  • Runs scripts/check_evidence.py with python3 during lint

Questions

What does karpathy-llm-wiki do?

It makes Claude keep a personal knowledge base in two folders: raw/ for untouched source material and wiki/ for compiled articles. It can ingest sources, answer questions from the wiki and lint it.

Does it change my raw sources?

SKILL.md says raw/ is immutable: Claude reads it and never modifies it, apart from saving new sources into it. The wiki/ folder is the part Claude owns and edits.

How do I install it?

Use the install box above. The README gives npx add-skill Astro-Han/karpathy-llm-wiki for Claude Code, Cursor and OpenCode, and says to copy the folder to .agents/skills/karpathy-llm-wiki/ for Codex CLI.

How does it stop made-up numbers?

SKILL.md requires every number, date and direct quote to be found in the raw file before it is written, exactly as written there. The lint step runs a script that greps those values in the linked raw files and reports suspects.

Does it need Python?

Only for the evidence check. SKILL.md runs scripts/check_evidence.py with python3. The script imports re, sys, dataclasses and pathlib from the standard library.

Does it work in the Claude app?

The README does not document a Claude app route. The skill writes raw/ and wiki/ folders in a project and uses a Python script, so the install box has no Claude app tab.

Does it delete anything?

Only dead cross-references. SKILL.md says lint removes a See Also link when its target has zero matches anywhere in wiki/. An index entry that points to a missing file is marked [MISSING] and kept, and SKILL.md says not to delete it. Our advice: keep the wiki in git so you can review every change.

Is it safe?

It creates, edits and appends files in your project, and fetches web sources with whatever tools your assistant has. Our advice: run it in a folder under version control and read the diff after each ingest.

Information

updated Nov 2, 2026

astro-han/karpathy-llm-wikiskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 4
  1. README.md · github.com
  2. SKILL.md · github.com
  3. check_evidence.py · github.com
  4. LICENSE · github.com

Updated Nov 2, 2026.