llm-wiki
What it does
This skill has your AI maintain a knowledge base made of connected Markdown files, based on a pattern from Andrej Karpathy. It is for people who research a topic over time and want their notes to build on each other.
When to use it
- βWhen you want to start a new wiki or knowledge base on a topic.
- βWhen you want to add a source, such as an article, to your existing wiki.
- βWhen you want to check your wiki for contradictions or missing links.
Skill link
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/research/llm-wiki/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAdd this article about battery recycling to my wiki and link it to the notes I already have on lithium.β
5 new skills a week. 1 minute to read.
How it works
The wiki is just a folder of Markdown files. Your AI reads the sources, writes summaries, adds cross-links and flags contradictions, so knowledge is compiled once and kept up to date.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Karpathy's LLM Wiki
Build and maintain a persistent, compounding knowledge base as interlinked markdown files. Based on Andrej Karpathy's LLM Wiki pattern.
Unlike traditional RAG (which rediscovers knowledge from scratch per query), the wiki compiles knowledge once and keeps it current. Cross-references are already there. Contradictions have already been flagged. Synthesis reflects everything ingested.
Division of labor: The human curates sources and directs analysis. The agent summarizes, cross-references, files, and maintains consistency.
When This Skill Activates
Use this skill when the user:
- Asks to create, build, or start a wiki or knowledge base
- Asks to ingest, add, or process a source into their wiki
- Asks a question and an existing wiki is present at the configured path
- Asks to lint, audit, or health-check their wiki
- References their wiki, knowledge base, or "notes" in a research context
Wiki Location
Location: Set via WIKI_PATH environment variable (e.g. in ${HERMES_HOME:-~/.hermes}/.env).
If unset, defaults to ~/wiki.
WIKI="${WIKI_PATH:-$HOME/wiki}"
The wiki is just a directory of markdown files β open it in Obsidian, VS Code, or any editor. No database, no special tooling required.
Architecture: Three Layers
wiki/
βββ SCHEMA.md # Conventions, structure rules, domain config
βββ index.md # Sectioned content catalog with one-line summaries
βββ log.md # Chronological action log (append-only, rotated yearly)
βββ raw/ # Layer 1: Immutable source material
β βββ articles/ # Web articles, clippings
β βββ papers/ # PDFs, arxiv papers
β βββ transcripts/ # Meeting notes, interviews
β βββ assets/ # Images, diagrams referenced by sources
βββ entities/ # Layer 2: Entity pages (people, orgs, products, models)
βββ concepts/ # Layer 2: Concept/topic pages
βββ comparisons/ # Layer 2: Side-by-side analyses
βββ queries/ # Layer 2: Filed query results worth keeping
Layer 1 β Raw Sources: Immutable. The agent reads but never modifies these.
Layer 2 β The Wiki: Agent-owned markdown files. Created, updated, and
cross-referenced by the agent.
Layer 3 β The Schema: SCHEMA.md defines structure, conventions, and tag taxonomy.
Resuming an Existing Wiki (CRITICAL β do this every session)
When the user has an existing wiki, always orient yourself before doing anything:
β Read SCHEMA.md β understand the domain, conventions, and tag taxonomy.
β‘ Read index.md β learn what pages exist and their summaries.
β’ Scan recent log.md β read the last 20-30 entries to understand recent activity.
WIKI="${WIKI_PATH:-$HOME/wiki}"
# Orientation reads at session start
read_file "$WIKI/SCHEMA.md"
read_file "$WIKI/index.md"
read_file "$WIKI/log.md" offset=<last 30 lines>
Only after orientation should you ingest, query, or lint. This prevents:
- Creating duplicate pages for entities that already exist
- Missing cross-references to existing content
- Contradicting the schema's conventions
- Repeating work already logged
For large wikis (100+ pages), also run a quick search_files for the topic
at hand before creating anything new.
Initializing a New Wiki
When the user asks to create or start a wiki:
- Determine the wiki path (from
$WIKI_PATHenv var, or ask the user; default~/wiki) - Create the directory structure above
- Ask the user what domain the wiki covers β be specific
- Write
SCHEMA.mdcustomized to the domain (see template below) - Write initial
index.mdwith sectioned header - Write initial
log.mdwith creation entry - Confirm the wiki is ready and suggest first sources to ingest
SCHEMA.md Template
Adapt to the user's domain. The schema constrains agent behavior and ensures consistency:
# Wiki Schema
## Domain
[What this wiki covers β e.g., "AI/ML research", "personal health", "startup intelligence"]
## Conventions
- File names: lowercase, hyphens, no spaces (e.g., `transformer-architecture.md`)
- Every wiki page starts with YAML frontmatter (see below)
- Use `[[wikilinks]]` to link between pages (minimum 2 outbound links per page)
- When updating a page, always bump the `updated` date
- Every new page must be added to `index.md` under the correct section
- Every action must be appended to `log.md`
FAQ
Where is the wiki stored?
It is stored in the folder set by WIKI_PATH, or in a folder named wiki in your home directory by default.
Do I need special software?
No. The skill says the wiki works in Obsidian, VS Code or any editor, with no database.
Who decides what goes in the wiki?
The human chooses sources and directs the analysis, and the AI summarizes and keeps the notes consistent.
Details
Original description by the author
Karpathy's LLM Wiki: build/query interlinked markdown KB.
Popularity
- GitHub stars
- 260k
- Ranking position
- #554
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-merge-conflict-arbiter
260kSettles a git merge conflict between two agents' branches as a neutral third party, producing one merged result for the repo.
antigravity-cli
260kGuides you through installing, updating, and troubleshooting the Antigravity command line tool, including its plugins, sign-in, and sandbox.
blackbox
260kLets your agent hand a coding task to the Blackbox AI command line tool, which runs several AI models and picks the best result.
dynamic-workflow
260kTeaches your agent to run large batches of similar work as a saved script, so only verified results return to the main conversation.
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.