Astro-Han/karpathy-llm-wiki

Python

Agent Skills-compatible LLM wiki for Claude Code, Cursor, and Codex. Build a Karpathy-style knowledge base from raw sources, citations, and linting.

agent-skillclaude-codecodexcursorknowledge-basellmkarpathyknowledge-managementllm-wikipersonal-knowledge-baseproductivitymarkdown
スター成長
スター
2.2k
フォーク
255
週間成長
+73
Issue
2
1.5k2k
26年4月26年5月26年7月26年9月
成果物PyPI
README

karpathy-llm-wiki

A reusable skill for building Karpathy-style LLM wikis with Claude Code, Cursor, Codex, and other Agent Skills tools.

License: MIT GitHub stars GitHub forks Agent Skills Install

Karpathy's tweet about LLM Wiki

karpathy-llm-wiki packages Karpathy's LLM Wiki idea into one installable Agent Skills skill. Your coding agent ingests sources into raw/, compiles durable knowledge pages into wiki/, answers questions with citations, and lints the wiki for consistency.

What Is an LLM Wiki?

An LLM wiki is a knowledge system where the LLM maintains structured wiki pages instead of re-searching raw documents on every question. New sources are compiled into durable markdown pages, cross-references are updated over time, and answers cite the wiki pages that already contain the synthesized knowledge.

This skill gives you three operations:

Operation What it does Output
Ingest Collects a source into raw/, triages it, then creates or updates wiki articles — or just logs it when nothing is new New or updated wiki pages
Query Searches the wiki and answers with citations Grounded answers linking to markdown pages
Lint Checks index integrity, links, and wiki health Auto-fixes plus reported issues

See SKILL.md for the full skill specification.

LLM Wiki vs RAG

Approach Knowledge lives in When synthesis happens Good for
RAG Raw chunks and embeddings At query time Broad retrieval across large corpora
LLM Wiki Curated markdown pages During ingest and maintenance Compounding knowledge, summaries, and durable cross-links

This skill is optimized for the wiki model: knowledge that improves over time instead of re-deriving relationships on every query.

Usage Stats

Based on a production knowledge base maintained daily since April 2026:

  • 94 wiki articles across 13 topic directories
  • 99 source materials ingested
  • 87 operation log entries in the last 7 days

See examples/ for sample wiki pages, source files, and operation logs.

Install

npx add-skill Astro-Han/karpathy-llm-wiki

Works with any tool that supports the Agent Skills standard.

Quick Start

1. Ingest your first source

Give the skill a URL, a file, or pasted text:

"Ingest this article: https://example.com/attention-is-all-you-need"

The skill stores the source in raw/, then compiles or updates the right knowledge pages in wiki/.

2. Ask your wiki a question

"What do I know about attention mechanisms?"

The skill searches the wiki and answers with citations linking back to your markdown pages.

3. Keep the wiki healthy

"Lint my wiki"

Checks for broken links, missing index entries, stale cross-references, and related issues.

How the Workflow Works

The core idea from Karpathy: the LLM maintains the wiki while the human focuses on choosing sources and asking good questions.

your-project/
├── raw/            ← Immutable source material
│   └── topic/
│       └── 2026-04-03-source-article.md
├── wiki/           ← Compiled knowledge pages maintained by the LLM
│   ├── topic/
│   │   └── concept-name.md
│   ├── index.md    ← Global table of contents
│   └── log.md      ← Append-only operation log

Each new source can update multiple pages, strengthen cross-references, and record contradictions. That is what makes the wiki compound over time.

Tool Compatibility

This skill follows the agentskills.io open standard:

Tool Install method
Claude Code npx add-skill Astro-Han/karpathy-llm-wiki
Cursor npx add-skill Astro-Han/karpathy-llm-wiki
Codex CLI Copy to .agents/skills/karpathy-llm-wiki/
OpenCode npx add-skill Astro-Han/karpathy-llm-wiki
Other tools Copy SKILL.md, references/, and scripts/ into the tool's skill directory

FAQ

What is the difference between an LLM wiki and a personal wiki?

An LLM wiki is maintained by the model. It updates summaries, cross-links, index entries, and contradictions as new material arrives. A normal personal wiki depends on manual editing.

What sources can I ingest?

Web pages, papers, blog posts, PDFs, markdown files, text files, and pasted text. The skill converts everything into markdown under raw/ and compiles it into wiki/.

Is this production-ready?

The workflow is based on a real knowledge base with 94 articles and 99 sources maintained daily since April 2026. The repo includes examples, templates, and a design spec.

Design Boundaries

Deliberately not built, after three months of production logs and a survey of the ecosystem (LLM Wiki v2, llm-wiki-compiler, OKF, agent-memory literature):

  • Source-hash freshness tracking — raw/ is immutable, so hashes guard against events that cannot happen. Genuinely new information arrives as new sources through normal ingest.
  • Persisted line-number citations — every observed fidelity error was "value absent from the source", which a whole-file grep catches. Anchors only disambiguate a failure mode that has not occurred, and the annotation friction makes agents skip the rule.
  • Numeric confidence or quality scores — false precision with no calibration behind it. Evidence strength belongs in the prose.
  • Per-article review dates — nobody can predict at compile time how fast a domain moves. Maintenance is driven by whole-wiki lint, not per-page timers.
  • Access-based decay — frequently asked is not the same as true.
  • Retract / bad-source machinery — has not happened yet. Handle it manually until it does.
  • Automatic hooks and scheduled runs — those belong to the agent harness, not a tool-agnostic skill.
  • Vector or graph search — at 50K–100K tokens of curated wiki, grep and read are more reliable. Add search tooling only when recall measurably degrades.
  • Typed relationship ontologies — link semantics live in the prose around the link.
  • OKF conformance — the spec is a v0.1 draft with a minimal tooling ecosystem. Tracked; will be revisited.
  • MCP servers, UIs, output subsystems — outside the boundary of a tool-agnostic skill.

Inspired By

Unofficial community implementation of the workflow from Karpathy's LLM Wiki idea. The value here is the reusable workflow, prompt structure, and battle-tested knowledge-compilation rules.

See also: lucasastorian/llmwiki, atomicmemory/llm-wiki-compiler. We are tracking Google's Open Knowledge Format draft and will evaluate compatibility once the spec and tooling mature.

License

MIT

関連リポジトリ
guillaumemeyer/watermarks-remover

A privacy-first app that strips AI watermarks from content you own.

PythonPyPIMIT Licenseagent-skillai
github.com/guillaumemeyer/watermarks-remover
21.3k2.5k
chuspeeism/dashi-ppt-skill

An AI-agent skill that generates browser-editable presentations from multiple visual themes, exportable to HTML, PDF, and PPTX.

JavaScriptnpmskillGNU Affero General Public License v3.0agent-skillai-agent
7.7k720
op7418/guizang-social-card-skill

🪧 Claude Code / Codex skill — generate Xiaohongshu carousels & WeChat 21:9+1:1 cover pairs. Editorial × Swiss visual systems, 28 layouts, 10 themes, single-file HTML → PNG. 小红书图文 + 公众号封面对

HTMLskillGNU Affero General Public License v3.0agent-skillai-agent
github.com/op7418/guizang-social-card-skill
6.9k544
0xNyk/council-of-high-intelligence

Structured multi-perspective deliberation for hard decisions. Run full councils, focused triads, or duo debates across Claude Code, Codex, Gemini CLI, and OpenCode.

ShellskillMIT Licenseai-agentsclaude-code
nyk.dev/oss/council-of-high-intelligence
4.2k402
Manavarya09/design-extract

Extract any website's complete design system with one command. DTCG tokens, semantic+primitive+composite, MCP server for Claude Code/Cursor/Windsurf, multi-platform emitters (iOS SwiftUI, Android Compose, Flutter, WordPress), Tailwind v4, Figma variables, shadcn/ui, CSS health audit, WCAG remediation, Chrome extension. MIT, Playwright, Node 20+.

HTMLskillMIT Licenseaiclaude-code-plugin
designlang.app
4.1k348
isjiamu/gzh-design-skill

把 Markdown 一键排成可直接粘进公众号编辑器的精致 HTML —— 6 套精选主题 + 主题生成器 + 双关卡校验。An AI-agent skill that turns Markdown into paste-ready WeChat article HTML.

HTMLskillOtheragent-skillai-agent
github.com/AlephMuYe
3.6k410
yanliudesign/mono-color-skill

One-ink editorial print image skill — warm paper, halftone photography, active negative space, and restrained typography.

PythonPyPIskillMIT Licenseagent-skillai-agent
2.9k73
jangviktor-web/nihaixia

倪海厦视角的中医Agent Skill,基于倪海厦教学资料开发,蒸馏倪师伤寒论、金匮要略、黄帝内经、神农本草经、针灸篇等,人纪/医案/经方思维,六经辨证,八纲辨证,天机道,天纪,紫微斗数,易经,阴阳,八卦,五行,风水,地纪等,总结8个诊断公式+快速诊断流程图+脉舌速查+七步走思维模式,蒸馏129条伤寒论 · 23篇金匮 · 72篇黄帝内经 · 神农本草经374种本草(上137/中110/下127) · 1257 例结构化案例 + 243 例叙事医案 · 2,452页讲义。

HTMLagent-skillchinese-medicine
jangviktor-web.github.io/nihaixia/
2.9k515
DenisSergeevitch/agents-best-practices

Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.

skillMIT Licenseagent-skillsagentic-workflows
2.3k205
can4hou6joeng4/boss-agent-cli

🤖 Local-assist BOSS Zhipin CLI for AI agents — search, welfare filtering, shortlist, JSON-envelope output; low-risk & compliant by default.

PythonPyPIcliMIT Licenseai-agentboss-zhipin
can4hou6joeng4.github.io/boss-agent-cli/
1.9k155
oil-oil/beautify-github-readme

Design clear, theme-specific GitHub README homepages with SVG titles, real proof, and maintainable Markdown

PythonPyPIskillMIT Licenseagent-skillcodex-skill
1.7k124
Agents365-ai/video-podcast-maker

Topic → 4K narrated video for coding agents. v5.3.0: local TTS (edge free + azure, no external engine), manifest-based Asset Engine, Remotion composition, cost-gated AI generation, Bilibili/YouTube/Xiaohongshu/Douyin/WeChat Channels

PythonPyPIskillMIT Licenseagent-skillvideo-generation
1.6k166