MCPInstall

karpathy-llm-wiki

Build and maintain an LLM-powered personal knowledge base or wiki. Use this skill when the user wants to organize research notes, build a second brain, set up an Obsidian vault with LLM compilation, ingest papers or articles automatically, or mentions "personal knowledge base", "LLM wiki", "second brain", "knowledge management", "ingest papers", "obsidian + LLM". Based on Karpathy Gist and 59k-like post.

Installs
127
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/learnprompt/andrej-karpathy-skills --skill karpathy-llm-wiki
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads karpathy-llm-wiki automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Skill 2: LLM Wiki / Personal Knowledge Base(LLM知识库)

Source: https://x.com/karpathy/status/2039805659525644595 | https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f "59k likes — LLM Knowledge Bases" — top-2 most-liked post

Core Principle

You explore. The LLM maintains.

You read the world, capture raw signals. The LLM compiles, cross-links, deduplicates, lint-checks, and surfaces contradictions. Your Obsidian vault is the output, not the input.

Architecture

RAW INPUTS                 LLM LAYER                  OUTPUT
──────────                 ─────────                  ──────
Papers (PDF/arXiv)  ──→   ingest.py              ──→  entities/*.md
Articles (URL)      ──→   compile_wiki.py        ──→  index.md
Chat logs           ──→   lint_wiki.py           ──→  contradiction_log.md
Notes (voice/text)  ──→   query_wiki.py          ──→  slides/
                          update_entity.py       ──→  weekly_digest.md

The 5 Core Prompts

1. Ingest Prompt

You are a knowledge compiler. Given this raw source:

[PASTE RAW CONTENT]

Source URL/title: [SOURCE]
Date: [DATE]

Extract and output:
1. Key entities (people, concepts, tools, papers) — one per line with a 2-sentence description
2. Key claims with confidence level (high/medium/speculative)
3. Connections to existing topics: [LIST YOUR KNOWN TOPICS]
4. Contradictions with anything you know: [WHAT YOU ALREADY BELIEVE]
5. Suggested entity page updates (format: ENTITY_NAME | UPDATE_TEXT)

2. Compile Wiki Entry Prompt

You are maintaining a personal knowledge wiki. Update the entity page for [ENTITY_NAME].

Existing page content:
[CURRENT_PAGE_CONTENT]

New information to integrate:
[NEW_INFO]

Rules:
- Preserve all existing information; only add or correct
- Flag contradictions with: ⚠️ CONFLICT: [old claim] vs [new claim]
- Keep the page under 500 words
- End with: "Last updated: [DATE] | Sources: [LINKS]"

3. Weekly Ingest Prompt (run every week)

Process this week's reading list:
[PASTE 5-10 ITEMS: title + URL + 1-sentence summary]

For each item:
1. Extract top 3 entities to update
2. List 2-3 key claims worth adding to wiki
3. Note any contradictions with existing knowledge
4. Suggest connections to other entities in my wiki

Output as structured markdown, one section per item.

4. Lint / Contradiction Check Prompt

Review these wiki entries for consistency:

[PASTE 3-5 RELATED ENTITY PAGES]

Find and report:
1. Factual contradictions between pages
2. Duplicate information that should be merged
3. Outdated claims that should be flagged
4. Missing cross-links between related entities

Format: ISSUE | PAGE | LINE | SUGGESTED FIX

5. Query Prompt

Search my personal knowledge wiki to answer this question:

Question: [QUESTION]

Wiki context:
[PASTE RELEVANT PAGES]

Answer with:
1. Direct answer (2-3 sentences)
2. Supporting evidence from wiki (with page citations)
3. Gaps: what I don't know yet
4. Suggested reading to fill gaps

Memory / Context Hygiene (Anti-Pollution Rules)

Karpathy noted LLM memory "trying too hard" — a question from 2 months ago poisons every future conversation. Prevent this:

  • Never rely on LLM built-in memory for knowledge — use your wiki instead
  • Start fresh sessions for new topics; don't let old context bleed in
  • Explicit resets: If continuing a long session, open with "Ignore all prior context about X"
  • Version your wiki: Commit wiki changes with git so you can diff what changed

Folder Structure (Obsidian-Compatible)

wiki/
├── entities/
│   ├── people/
│   │   └── andrej-karpathy.md
│   ├── concepts/
│   │   ├── agentic-engineering.md
│   │   └── llm-simulator.md
│   └── tools/
│       └── claude.md
├── index.md              ← master entity list, auto-updated
├── contradiction_log.md  ← conflicts to resolve
├── weekly_digest/
│   └── 2026-W21.md
└── raw/                  ← source dumps before compilation

Weekly Cadence

Monday:    Dump week's reads into raw/
Tuesday:   Run ingest prompt on each item
Wednesday: Run lint/contradiction check
Thursday:  Update entity pages
Friday:    Generate weekly_digest.md with LLM

Workflow

属于工作流:研究到发布(内容创作者/研究者)

位置上游下游
第2步karpathy-autoresearch(研究产出原始素材)karpathy-output-evolution(将知识转化为可发布形式)

完整链路:autoresearch → llm-wiki → output-evolution → education-first

也在月度体检工作流中用于持久化反思结论。

Prompt Contract

Maintain this as an LLM wiki. From the new sources provided, update existing Markdown pages, create only necessary new pages, preserve all citations and source links, flag any contradictions with existing knowledge, and output a structured change log showing: pages updated, new pages created, contradictions found, and open questions.

Verification Checklist

  • 原始来源(raw sources)保持不可变
  • 每个 wiki 页面有来源链接
  • 矛盾之处被明确标记(不是静默覆盖)
  • changelog 记录了本次更新的所有变更
  • 没有创建不必要的新页面(优先更新已有页面)
  • 可以从 index 页面导航到任何实体

FAQ

What does the karpathy-llm-wiki skill do?

Build and maintain an LLM-powered personal knowledge base or wiki. Use this skill when the user wants to organize research notes, build a second brain, set up an Obsidian vault with LLM compilation, ingest papers or articles automatically, or mentions "personal knowledge base", "LLM wiki", "second brain", "knowledge management", "ingest papers", "obsidian + LLM". Based on Karpathy Gist and 59k-like post.

How do I install karpathy-llm-wiki?

Run npx skills add https://github.com/learnprompt/andrej-karpathy-skills --skill karpathy-llm-wiki in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/karpathy-llm-wiki/ (personal) or .claude/skills/karpathy-llm-wiki/ (project).

Which AI agents can use karpathy-llm-wiki?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is karpathy-llm-wiki safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains karpathy-llm-wiki?

It is published by learnprompt in learnprompt/andrej-karpathy-skills. It has 127 recorded installs.

More from learnprompt/andrej-karpathy-skills

View all →

karpathy-agentic-engineering

learnprompt/andrej-karpathy-skills

Open the skill to read its SKILL.md instructions.

AI & Agents144 installs

karpathy-methodology

learnprompt/andrej-karpathy-skills

Open the skill to read its SKILL.md instructions.

136 installs

karpathy-minimalism

learnprompt/andrej-karpathy-skills

Open the skill to read its SKILL.md instructions.

135 installs

karpathy-understanding-first

learnprompt/andrej-karpathy-skills

Open the skill to read its SKILL.md instructions.

128 installs

karpathy-education-first

learnprompt/andrej-karpathy-skills

Apply the education-first mindset — make everything you build teachable, create nano-project explanations, write for beginners. Use this skill when the user wants to explain a project to beginners, create a tutorial from code, write documentation that teaches (not just documents), make a concept accessible, or says "make this teachable", "explain like im a beginner", "nano project version", "teaching version", "explain from scratch", "blog post about this". Based on Karpathy 243-line GPT and Eureka Labs posts.

karpathy-supply-chain-hygiene

learnprompt/andrej-karpathy-skills

Open the skill to read its SKILL.md instructions.

126 installs

Popular ai & agents skills

View category →

google-agents-cli-publish

google/agents-cli

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

AI & Agents513.9K installs

google-agents-cli-eval

google/agents-cli

This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).

AI & Agents513.5K installs

skill-creator

anthropics/skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

OfficialAI & Agents416.4K installs

codex-pet

prime-skills/runcomfy-agent-skills

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

AI & Agents402.1K installs

full-output-enforcement

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

AI & Agents401K installs

executing-plans

obra/superpowers

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

AI & Agents245.7K installs