llm-wiki
Skill727 starsChanged 4 months agoMITView on GitHub
Build and maintain a structured LLM-generated wiki for any codebase. Use when the user asks to analyze/understand/document a codebase, build a code wiki, create project documentation from source, or update an existing .llm-wiki. Triggers on phrases like "build wiki", "analyze this codebase", "document this project", "update wiki", "llm-wiki", or when entering an unfamiliar project that has no .llm-wiki yet.
73 other projects use a version of this.
Adopted by
Most recently taken up by
- rakaarwaky/agents-arwakytheir own version, first seen Oct 6, 2026
- sqrDAO/sqrSKILLStheir own version, first seen Oct 5, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- 4e6/skillstheir own version, first seen Sep 30, 2026
- jellydn/my-ai-toolstheir own version, first seen Sep 28, 2026
Used with
Projects with it also use heartmula, touchdesigner-mcp and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
braxtonROSE4Skillheartmula
Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.
Also in 8 projects that use this
kevinnftSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 8 projects that use this
kevinnftSkillpython-debugpy
Debug Python: pdb REPL + debugpy remote (DAP).
Also in 11 projects that use this
braxtonROSE4Skillgithub-repo-management
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
Also in 10 projects that use this
john-data-chenSkillteams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
Also in 8 projects that use this
aivrarSkillweekly-review-planning
Weekly reset: commitments, stalled work, next-week plan.
Also in 5 projects that use this
- +6 more from braxtonROSE4
Other versions73 projects use a version of this.
Word for word · 1
- vibe-coding-era/skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 72
- lewislulu/llm-wiki-skill★ 655same name
- tudoumashu/ai-memory-skillpack★ 373same name
- YurunChen/GUI-Anything★ 287same name
- aivrar/portable-hermes-agent★ 232same name
- luotwo/llm-wiki★ 223same name
- graniet/kheish★ 221same name
- mduongvandinh/llm-wiki★ 213same name
- HybridAIOne/hybridclaw★ 157same name
- jellydn/my-ai-tools★ 122same name
- infranodus/skills★ 119same name
62 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-sales-championSkill
- c-drive-cleanerSkill
- deck-studioSkill
- deep-researchSkill
- keqian-methodSkill
- mineru-pdf-parserSkill
- pair-programmingSkill
- product-managerSkill
- security-auditSkill
- solution-architectSkill
- threejs-performanceSkill
- wechat-article-writerSkill
- xuefeng-methodSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 5 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 59 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Read top-level files: README, package.json/Cargo.toml/go.mod/pyproject.toml/build.gradle etc.
- Very specific: line 24
Run find or Glob to map the directory tree (ignore node_modules, .git, vendor, dist, build, __pycache__, .venv)
- Very specific: line 27
Read CLAUDE.md / AGENTS.md / .cursor/rules if present - they contain valuable architectural context
- Distinctive: line 33
Create the directory structure:
- Very specific: line 49
Write articles in priority order.
- Very specific: line 76
Ensure every article has a ## See Also section linking to related articles
- Distinctive: line 77
Add backlinks: if A references B, B should reference A
- Distinctive: line 81
Run a health check over the wiki:
- Very specific: line 92
When .llm-wiki/ already exists:
- Very specific: line 105
Update
_index.md: if new articles added or old ones removed - Distinctive: line 113
Link aggressively: every mention of another module/concept should be a markdown link to its article.
- Distinctive: line 115
Frontmatter: every article starts with a YAML frontmatter block:
- Very specific: line 137
Add .llm-wiki/ to .gitignore only if the user prefers it.
“Common” is measured: kept by at least 6 in 10 of the 59 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LLM Wiki for Codebases
Build a persistent, interlinked markdown wiki that captures the architecture, modules, patterns, and APIs of a codebase. The wiki lives in .llm-wiki/ at the project root. Humans curate and direct; the LLM handles all bookkeeping.
Based on Andrej Karpathy's LLM Wiki pattern: raw sources are "compiled" into a structured wiki that compounds over time.
Mode Detection
Determine the mode based on current state:
- No
.llm-wiki/directory exists -> Full Build mode .llm-wiki/exists -> Update mode (diff and refresh)
Full Build Workflow
Phase 1: Reconnaissance
- Read top-level files: README, package.json/Cargo.toml/go.mod/pyproject.toml/build.gradle etc.
- Run
findor Glob to map the directory tree (ignore node_modules, .git, vendor, dist, build, pycache, .venv) - Identify: language(s), framework(s), build system, entry point(s), test framework
- Count files per directory to gauge module boundaries
- Read CLAUDE.md / AGENTS.md / .cursor/rules if present - they contain valuable architectural context
Record findings in .llm-wiki/_schema.md (see references/wiki-schema.md for format).
Phase 2: Skeleton
Create the directory structure:
.llm-wiki/
_schema.md # Wiki conventions and project metadata
_index.md # Content-oriented catalog by category
_log.md # Chronological build/update log
architecture/ # High-level design docs
modules/ # Per-module deep dives
concepts/ # Cross-cutting concepts (auth, caching, error handling...)
apis/ # API surface docs (REST endpoints, CLI commands, exported functions)
guides/ # How-to guides (setup, deployment, testing)Phase 3: Core Articles
Write articles in priority order. See references/article-templates.md for templates.
Priority 1 - Architecture:
architecture/overview.md- System architecture, component diagram (ASCII), tech stackarchitecture/data-flow.md- How data flows through the systemarchitecture/directory-structure.md- Annotated directory tree
Priority 2 - Modules:
- One
modules/<name>.mdper major module/package/directory - Cover: purpose, key files, public interface, internal patterns, dependencies
Priority 3 - Concepts:
- Cross-cutting concerns that span modules (auth, logging, error handling, state management, config)
- One
concepts/<name>.mdper concept
Priority 4 - APIs:
- External-facing API surfaces (REST routes, CLI commands, SDK exports)
- One
apis/<name>.mdper API group
Priority 5 - Guides:
guides/setup.md- Dev environment setupguides/testing.md- How to run and write tests- Other guides as relevant
Phase 4: Index and Cross-link
- Build
_index.md- organized by category with one-line descriptions and links - Ensure every article has a
## See Alsosection linking to related articles - Add backlinks: if A references B, B should reference A
Phase 5: Lint
Run a health check over the wiki:
- Broken internal links (references to non-existent
.mdfiles) - Orphan pages (not linked from
_index.mdor any other page) - Missing coverage (directories/modules with no corresponding article)
- Stale references (mentions of files/functions that don't exist in codebase)
- Inconsistent terminology
Fix issues found. Log the lint run in _log.md.
Update Workflow
When .llm-wiki/ already exists:
- Read
_schema.mdto understand project metadata and conventions - Read
_log.mdto see last update timestamp - Detect changes since last wiki build:
git log --since="<last_update>" --name-statusif git available- Otherwise, compare directory tree against
architecture/directory-structure.md
- Triage changes:
- New files/directories -> create new articles or update existing ones
- Modified files -> re-read and update affected articles
- Deleted files -> remove references, mark articles for cleanup
- Renamed/moved files -> update paths in all referencing articles
- Update affected articles - re-read source, rewrite sections as needed
- Update
_index.mdif new articles added or old ones removed - Run lint (same as Phase 5 above)
- Append to
_log.mdwith timestamp, summary of changes
Writing Guidelines
- Be factual: describe what the code does, not what it should do. Cite file paths and line ranges.
- Use code snippets: short inline examples from actual source, not invented ones.
- Link aggressively: every mention of another module/concept should be a markdown link to its article.
- Keep articles focused: one topic per article, 100-500 lines. Split if longer.
- Frontmatter: every article starts with a YAML frontmatter block:
--- title: Module Name updated: 2026-04-09 sources: - src/module/index.ts - src/module/utils.ts --- - ASCII diagrams over external images - they live in version control and render anywhere.
- Language: match the project's primary language. If the codebase comments are in English, write in English. If Chinese, write in Chinese.
Agent Coordination
For large codebases (>500 source files), consider dispatching parallel agents:
- Agent per top-level module to write module articles concurrently
- One agent for architecture overview after modules are documented
- One agent for cross-linking and lint
Gitignore
Add .llm-wiki/ to .gitignore only if the user prefers it. By default, the wiki is intended to be committed alongside the code so the team benefits.
Key Principles (from Karpathy)
- The wiki is the LLM's domain - humans rarely edit it directly
- Knowledge compounds - each query and exploration enriches the wiki
- Index files are critical -
_index.mdenables the LLM to navigate efficiently - Lint regularly - catch rot before it spreads
- Log everything -
_log.mdprovides temporal context for future updates
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

