{📖} Structural LLM Wiki
Your group's knowledge, researched by your coding agent, cited to the exact source, and reviewed like code.
Structural LLM Wiki is an agent skill, packaged as a Claude Code plugin. The skill turns a git repository into a wiki that your coding agent researches and keeps current. You ask a question. The agent saves the sources that answer it: verbatim copies of code, design docs, specifications, papers or web pages. Then the agent writes a narrative: an account, told in order, of what happened or how something works. Every claim in a narrative links to the section of a source that supports it. Each run arrives as one pull request for you to review. The skill builds on Andrej Karpathy's LLM wiki pattern. It adds what a group needs: claims you can check, review before anything lands, and a book at each release.
See one. An unattended run researched and wrote every narrative in the demo wiki, and each arrived as a pull request to review. Three recent runs, one question each:
| Question | Model | Kind | Sources saved | Narrative | Time | Tokens | Pull request |
|---|---|---|---|---|---|---|---|
| How does Raft elect a leader and keep every server's log consistent? | Opus 5.5 | how it works | 3 (99 KB): two dissertation chapters, etcd's README | 1,799 words | 10 min | 6.0M in, 51K out | #22 |
| What are the classic failure modes of large distributed systems, and their mitigations? | Opus 5.5 | survey | 4 (43 KB), and 2 papers as links | 1,937 words | 8 min | 8.7M in, 42K out | #23 |
| How does classic attention compare with paged attention? | Haiku 5.5 | comparison | 4 (290 KB), and 1 paper as a link | 982 words | 7 min | 4.6M in, 57K out | #24 |
Each run reports its own time and tokens in its pull request. The tokens count the main session only. About 98% of the input is cached. Start at the demo's index, or download its book as a PDF, EPUB or HTML file from its latest release.
Why use it
- Builders need to understand a system before they change it. But the why is in a design doc that drifted and a chat thread nobody can find. And an AI's answer can't say which parts it read and which it guessed.
- Tech leads need what the group knows to outlive who knows it. Onboarding runs through the same few seniors. Nobody can say which docs are still true.
- Researchers have more papers than time. LLM summaries cite sections that don't say what they claim.
What the wiki does about it:
- Every claim can be checked. Each one cites the exact section of a saved source, one click away. The narrative marks what no source states, as its own reasoning (
[→]) or as a gap ([?]), and never fills it with a guess. The skill's lint step checks every claim and quotation against the section it cites. - Nothing lands unreviewed. The agent researches on its own and delivers one pull request. The pull request has a checklist on top, the decisions the agent couldn't make, and what the run cost. Your seniors review instead of writing from scratch.
- Knowledge compounds. One narrative per question, kept in git. A new answer builds on what the wiki already explains, and the next person who asks gets the reviewed answer.
- Answers stay true. Each narrative records the source versions it read. When code or a doc changes, exactly the narratives that rest on it are flagged.
- It teaches. Each answer's shape fits its question, and each answer is written for a reader new to the topic. You can describe your own kind of answer, such as a postmortem or a ten-minute primer on a paper.
- It knows who to ask. Each topic lists the people behind its code and docs, ranked by evidence from git history and code owners.
- A book with every release. Each release attaches the whole wiki as a PDF, an EPUB or one HTML file. Its chapters come in teaching order, with diagrams and math drawn as on GitHub. The book is an onboarding pack, current as of that day.
The wiki is plain Markdown and YAML in git. You can browse it on GitHub, open it in Obsidian, or use it from any agent that supports Agent Skills. Scripts do everything mechanical, so your tokens go to judgment.
Setup
You need an agent that runs Agent Skills, such as Claude Code, plus git and Python 3.9 or later. The first run installs the rest. It puts the plugin's code, the sllmwiki package, into the plugin's own folder, and installs anything missing with your package manager. gh, signed in, is recommended, because it opens the pull requests. Without gh, the skill prints a link to open each pull request yourself. The wiki's CI checks and its book need the wiki hosted on GitHub.
-
Create an empty repository (for example
project-foobar-sllmwiki), clone it and start Claude Code in it. -
Install the plugin into it:
claude plugin marketplace add mengjiasun1992/structural-llm-wiki --scope project claude plugin install sllmwiki@structural-llm-wiki --scope project
-
Run
/sllmwiki:init. It asks a few preferences (language, source policy, the book), lays out the wiki, installs its CI checks and makes the first commit. Rerun it after a plugin update. -
Ask your first questions:
/sllmwiki:build "How does our gateway route requests?" "Why does it retry?"
Join a wiki: open the wiki in Claude Code and accept the plugin it offers. The wiki's README, which init writes, says the rest.
Other agents (Codex, Cursor, Copilot): add the skill with the skills CLI, npx skills add mengjiasun1992/structural-llm-wiki -g. Then install the package with pipx install sllmwiki, at the version the skill's SKILL.md names. After that, ask in your own words ("lint the gateway narratives").
Installing git, Python and gh
brew install git python gh # macOS
winget install Git.Git Python.Python.3.13 GitHub.cli # Windows
sudo apt-get install -y git python3 gh # Debian / Ubuntu
gh auth login && gh auth setup-git # then, everywhere
Usage
| I want to… | Run |
|---|---|
| Set up a wiki (start here, in an empty repository) | /sllmwiki:init |
| Ask the wiki: a cited answer in seconds, or a DRAFT and an offer to research it | /sllmwiki:query "How does the gateway retry failed backends?" |
| Research questions unattended: sources saved, a cited answer each, one pull request to review | /sllmwiki:build "How does the gateway route requests?" "Why does it retry?" |
| Publish the wiki as a book (PDF, EPUB, HTML) in a dated release | /sllmwiki:release |
For everything else, ask in your own words: "Lint the gateway narratives", "Who knows the gateway?", "Make a template for postmortems of our incidents", or "What can sllmwiki do?".
The manual has the rest: reviewing a run, what's in your wiki, templates, citations, books, settings, languages, Obsidian, teams, and an FAQ.
Licenses and your data
The skill is open source under the GPL 3.0 or later. The templates it puts in your wiki and book are under MIT-0, with no conditions. Your wiki is yours. Each source stays its authors': the wiki keeps it with its URL and license, quotes it briefly, and never fetches it past a login or paywall.
An LLM writes the narratives. Every claim is cited, but review each pull request before you merge it. The plugin runs on your machine, and its authors collect nothing (Privacy). The details are in the manual, §12.
Design
docs/structural_llm_wiki_design.md has the architecture and the decisions behind it. docs/book_design.md describes the book that a release attaches. docs/skill_execution_plan.md and docs/book_execution_plan.md say how each was built.
Developing
plugin/ the plugin: instructions only
├── skills/sllmwiki/ the skill: SKILL.md, workflows/, steps/
└── commands/ Claude Code commands: init, query, build, release
src/sllmwiki/ the sllmwiki package: every command, lib/, templates/
tests/ unit tests for the package
src/actions/ the GitHub actions a wiki's CI calls
src/tools/ development and CI tools (eval-plugin.sh, check-yaml, check-book)
evals/ behavior evals, run through src/tools/eval-plugin.sh
docs/ the manual, the designs, their plans, and their figures
AGENTS.md has the rules for changing this repository. The rules include tests with every logic change, coverage at 95% or above, instruction word budgets, and evals for behavior changes. To run the tests and try the plugin from a checkout:
python3 -m venv .venv && . .venv/bin/activate
python3 -m pip install -e . "coverage[toml]==7.6.10"
python3 tests/run.py --coverage
claude --plugin-dir plugin # runs the sllmwiki on PATH: this checkout's
License
Copyright 2026 Mengjia Sun. The code is licensed under the GNU General Public License, version 3 or later. The templates in src/sllmwiki/templates/ are licensed under MIT-0. Versions up to 1.2.0 were released under Apache 2.0. See NOTICE.
Metadata
Release files for sllmwiki 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sllmwiki-1.4.0.tar.gz | 328.7 kB | With provenance | Details for sllmwiki-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sllmwiki-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for sllmwiki-1.4.0-py3-none-any.whl |
Total release size: 583.8 kB
Release files / sllmwiki-1.4.0.tar.gz
| Download URL | sllmwiki-1.4.0.tar.gz |
|---|---|
| Size | 328.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bc87892131a85eff61e105e9a99a3e28903037597f78d023548ee44bad0d201
|
|
BLAKE2b-256 checksum How to use checksums |
455aebfd08fd14bbe0a22aaf6d6c2d47e9e57156ac389716a5e4a5ebad246f96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / sllmwiki-1.4.0-py3-none-any.whl
| Download URL | sllmwiki-1.4.0-py3-none-any.whl |
|---|---|
| Size | 255.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f60ca0383f70e8c73304d5e724c6dea73be1e7d320e59411d21006087ff719e2
|
|
BLAKE2b-256 checksum How to use checksums |
7135a75bf8cf90185bf4f80063072234817cfba0ab54afd5d5fe364d0b15a0e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for sllmwiki 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sllmwiki-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.