Skip to content
Agentmart
Submit a tool

llm-wiki

Knowledge management, document synthesis, and concept graph maintenance following Andrej Karpathy's LLM-Wiki pattern.

Skill by mimimaster

IndexedMIT★ 142
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mimimaster-llm-wiki

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Knowledge management, document synthesis, and concept graph maintenance following Andrej Karpathy's LLM-Wiki pattern. Use when ingesting articles/docs/papers, creating or querying wiki concepts, maintaining cross-links, or performing wiki health checks.

Use cases: documents, ml

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/llm-wiki

What's inside

Skill name
llm-wiki
Description
Knowledge management, document synthesis, and concept graph maintenance following Andrej Karpathy's LLM-Wiki pattern. Use when ingesting articles/docs/papers, creating or querying wiki concepts, maintaining cross-links, or performing wiki health checks.
License
MIT
Instructions
132 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Andrej Karpathy LLM-Wiki Pattern

> "The central idea of LLM-Wiki is that the LLM acts as the encyclopedist and curator of a personal, compounding knowledge base formatted in plain Markdown with `[[wikilinks]]`."

A structured knowledge architecture where LLMs ingest raw information, distill it into interconnected concept pages, maintain a master index, record an append-only audit trail, and continuously verify graph health.

---

## Architecture Overview

```
~/.piwin/wiki/
├── INDEX.md          # Master catalog, domain taxonomy, concept lookup table
├── LOG.md            # Append-only chronological audit log of all updates & ingests
├── raw/              # Immutable raw sources (papers, notes, transcripts, clips)
└── concepts/         # Interconnected Markdown notes with YAML frontmatter + [[wikilinks]]
    ├── transformer-architecture.md
    ├── attention-mechanism.md
    └── ...
```

### The Three Layers
1. **Raw Sources (`raw/`)**: Read-only raw documents, articles, transcripts, or web clips.
2. **Distilled Wiki (`concepts/`)**: High-signal, synthesized encyclopedia pages in Markdown.
3. **Control & Audit (`INDEX.md` + `LOG.md`)**: Table of contents and journal of all changes.

---

## The 3 Core Operations

```
┌─────────────────────────────────────────────────────────────┐
│                      LLM-Wiki Lifecycle                     │
├──────────────────────────────┬──────────────────────────────┤
│ 1. Ingest (消化与提炼)       │ 2. Query (检索与概念联想)    │
│    • Read raw source         • Read INDEX.md first          │
│    • Cross-check INDEX.md    • Retrieve target concepts     │
│    • Update 1–5 concept notes│    • Follow [[wikilinks]]    │
│    • Append to LOG.md        • Synthesize cited answer      │
├──────────────────────────────┴──────────────────────────────┤
│ 3. Lint (巡检与维护)                                        │
│    • Scan for broken [[wikilinks]]                          │
│    • Identify orphan concepts with zero in/out links        │
│    • Ensure every concept is registered in INDEX.md         │
└─────────────────────────────────────────────────────────────┘
```

---

## 1. Ingest Workflow (消化提炼)

When given new documents, text, notes, or technical materials:

1. **Read `INDEX.md` First**:
   - Inspect the current catalog to see what concepts already exist.
   - Avoid creating duplicates or conflicting definitions.

2. **Decompose & Synthesize**:
   - Do not simply dump the entire raw file into a page.
   - Break down ideas into atomic, durable concepts (e.g. `[[Direct Preference Optimization]]`, not `Paper Summary March 2024`).
   - Create or update 1 to 5 interconnected concept pages.

3. **Format Each Concept Page**:
   ```markdown
   ---
   title: Concept Name
   aliases: [Acronym, Alt Name]
   tags: [domain, sub-domain]
   summary: One-sentence concise definition.
   updated: YYYY-MM-DD
   ---

   # Concept Name

   ## Definition & Core Intuition
   Clear, concise explanation of the concept.

   ## Key Mechanisms & Components
   Structured breakdown with cross-references like [[Related Concept]].

   ## Relationships & Connections
   - Extends: [[Prior Concept]]
   - Applied in: [[Application Concept]]
   - Contrasted with: [[Alternative Concept]]
   ```

4. **Maintain Cross-links (`[[wikilinks]]`)**:
   - Use `[[Concept Name]]` or `[[Target Slug|Display Label]]`.
   - Every concept page must link to at least 1 parent or related concept.

5. **Update Index & Log**:
   - Use tool `wiki_write` to save concepts, which automatically records entries into `INDEX.md` and `LOG.md`.

---

## 2. Query Workflow (检索与联想)

When answering questions using the knowledge base:

1. **Check `INDEX.md`**:
   - Call `wiki_read(name: "INDEX")` to locate matching concepts.
2. **Read Target Concepts**:
   - Call `wiki_read(name: "...")` for the most relevant concepts.
3. **Traverse Connected Outlinks**:
   - If deeper context is required, read the outlinks discovered in the target concept.
4. **Synthesize & Cite**:
   - Formulate the response incorporating explicit `[[wikilinks]]` so the user can explore the concept network.

---

## 3. Lint Workflow (巡检与健康维护)

Periodically or after bulk ingestions:

1. Run `wiki_lint`:
   - Inspects `~/.piwin/wiki/concepts/`.
   - Identifies broken links (`[[Target]]` pointing to non-existent concept files).
   - Identifies orphan concepts (zero backlinks and omitted from `INDEX.md`).
2. Fix detected issues:

From mimimaster/piwin, MIT.

More from mimimaster/piwin

Compare and alternatives

    Featured in

    Signals

    Stars
    142
    Forks
    6
    Open issues
    0
    Last commit (this folder)
    Sep 12, 2026 (1 month ago)
    Last release
    Oct 8, 2026 (19 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from mimimaster

    Cite this page

    llm-wiki skill. Agent Mart. https://agentmart.dev/skills/mimimaster-llm-wiki (last updated 2026-10-24)