llm-wiki

Solid

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.

AI & Automation 631 stars 121 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
93
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f): 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 1. Read top-level files: README, package.json/Cargo.toml/go.mod/pyproject.toml/build.gradle etc. 2. Run `find` or Glob to map the directory tree (ignore node_modules, .git, vendor, dist, build, __pycache__, .venv) 3. Identify: language(s), framework(s), build system, entry point(s), test framework 4. Count files per directory to gauge module boundaries 5. 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/ ...

Details

Author
staruhub
Repository
staruhub/ClaudeSkills
Created
9 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category