Back to Skills

llm-wiki

The foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources → wiki → schema). Also use when discussing knowledge management strategy, wiki structure decisions, or how to organize distilled knowledge. This is the "theory" skill — other skills

1,725stars192forksUpdated 6/5/2026

Security Assessment

Low Risk(80/100)

Detected risks:

Sensitive File Access([SKILL.md] .env)
Security Score80/100

About llm-wiki

The llm-wiki skill provides a structured framework for building and maintaining an AI-powered knowledge base within Obsidian. It addresses the challenge of organizing, synthesizing, and preserving knowledge in a way that is persistent and compounding, rather than re-derived on each query. By applying a three-layer architecture, it separates raw source material from distilled, curated content, ensuring that the knowledge base remains authoritative and navigable. This skill is designed as a theoretical foundation, guiding users on best practices for knowledge management and wiki construction without performing direct ingestion or querying operations itself.

The main features of llm-wiki include a three-layer knowledge architecture consisting of raw sources, the LLM-maintained wiki, and the schema that governs wiki structure. Raw sources are immutable documents and images, serving as the original authoritative content. The wiki layer compiles these sources into interconnected markdown files with clear provenance, Obsidian-compatible wikilinks, and structured frontmatter metadata. The schema layer defines categories, templates, and operational rules, ensuring consistency across the knowledge base. Wiki organization is divided into categories for types of knowledge and projects for project-specific content, supporting both global and scoped knowledge management.

This skill is suitable for knowledge workers, researchers, developers, and anyone looking to establish a robust personal or organizational wiki. Typical use cases include setting up a new knowledge base, designing the structure of an Obsidian vault, deciding on knowledge categorization, and creating guidelines for maintaining distilled knowledge over time. Users benefit from guidance on organizing complex information, ensuring traceable provenance, and creating a system that grows and compounds as new knowledge is added.

FAQ

How do I set up a new wiki using this skill?

Use the three-layer architecture guidance: configure your raw sources in OBSIDIAN_SOURCES_DIR, define the vault path in OBSIDIAN_VAULT_PATH, and follow the schema rules to organize categories and projects. This skill provides theoretical guidance on structure but does not perform ingestion.

Can I include images as sources in the wiki?

Yes, images such as screenshots, diagrams, and slide captures are treated as first-class sources. A vision-capable model is required to interpret image content; models without vision support will skip images and report which files were skipped.

Is this skill compatible with models that cannot process vision inputs?

Yes, but image sources will be skipped, and the skill will only process textual sources. The remaining guidance on wiki structure and schema still applies.

What are the main categories for organizing knowledge?

Default categories include concepts, entities, skills, references, synthesis, and journal entries. Knowledge can also be project-specific, organized under projects/<project-name>/<category> directories.

Does this skill handle querying or updating the wiki content?

No, llm-wiki provides the theoretical framework and organizational guidance. Other specialized skills handle ingestion, querying, and linting operations.

All Files

2 files
SKILL.md25.2 KB
View
references/karpathy-pattern.md2.3 KB
View

Install llm-wiki

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill