/llm-wiki:llm-wikifrom llm-wiki
Use at the moments knowledge is about to be lost or re-derived: before citing a source you are not keeping, when a research or investigation finding needs to outlive the session, when starting a question you suspect you answered before, and when an answer should come from accumulated notes rather than a fresh search. Also use when maintaining that knowledgebase: adding a page, checking pages, or re-embedding after edits. Covers a project-local `.kb` or the global store driven through the `llmwiki` CLI: immutable source capture with provenance, model-written summary and story pages, agent-written pages, meaning-based search, and the mechanical lint.
Ships in llm-wiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A live model of an environment plus the accumulated reasoning over it, stored as plain files. Three layers, no service, no daemon, no server.
| Layer | Who owns it |
|---|---|
sources/ | The CLI. Immutable raw bytes keyed by sha256, each with a <digest>.toml provenance sidecar. Written once, never edited, never deleted. |
wiki/ | Shared. The CLI writes pages of kind summary and story. Every other page, index.md included, is yours. |
SCHEMA.md | You. The conventions and retrieval paths for this kb. The CLI never parses it. |
Check first, because it is usually already there:
llmwiki --help
If that is not found, install it: references/install.md.
In order:
llmwiki --kb PATH <verb>, used exactly as given..kb directory, searching the working
directory and then each parent.~/.local/share/llm-wiki.llmwiki where prints the one that resolved. Run it first when you are
unsure, and before any verb that writes. When resolution falls all the
way through to the global store from inside a repository, every verb
prints one stderr line naming that repository, because the alternative
is project knowledge landing in the global store with nothing said.
llmwiki --version prints the version and the directory the package
ran from. Use it when a change to a checkout does not show up at the
command line: an installed copy on PATH does not track a checkout, and
the path is the half of that line that tells them apart.
Which one to reach for. Knowledge about one project lives in that
project's kb, one per project, the way .beads/ does. Knowledge that
is not tied to a repo goes to the global store.
When the user's or project's instructions name where the kb lives,
pass --kb "$(git rev-parse --show-toplevel)/<that path>" on every
llmwiki call, init included. Anchor it on the repo root: a relative
--kb resolves against the working directory, so from a subdirectory
it makes a stray kb that where does not flag. Otherwise the kb is .kb at the repo root. If you are in a repo, the
knowledge belongs to it, and there is no kb yet, create it once from
the repo root:
llmwiki init # no location named: creates ./.kb
llmwiki --kb "$(git rev-parse --show-toplevel)/<named path>" init
# the instructions name a location
init writes a .gitignore containing * into the kb, so the whole
kb stays out of the project's history. A kb is local working knowledge
that grows on its own clock, not project source.
A fresh kb runs but does not think until SUMMARIZE.md, an identifier
vocabulary, and a provider are in place. Do that once, before the first
ingest, from references/new-kb-setup.md, which also covers keeping
the kb somewhere other than the repo root.
Every verb that calls a model reads the key from the environment:
ingest, summarize, embed, search, and dedup when [models] dedup is configured. init, where, lint and status never call a
model and work with no key at all. Set one up, or work out why a verb
says the variable is unset, from references/credential-setup.md. A
remote wiki takes its own token instead, covered in
references/remote-wikis.md.
llmwiki ingest https://example.com/page
llmwiki ingest ./notes.md ./report.txt
llmwiki ingest - # bytes on stdin
llmwiki ingest --job nightly # a job declared in config.toml
One ingest stores the raw bytes, writes provenance, summarizes each
new source into a summary page, places that summary into a story,
and embeds what it wrote. It prints one line per source: the digest,
new or existing, and the argument. A source already stored by
content hash is not fetched or summarized again.
If a page you wrote shares an identifier with the new source, ingest
prints a push line naming your page. That is the signal to go update
it.
Every new summary joins an existing story or starts one. dedup --rebuild redoes this for every summary from scratch, useful after
you edit config.toml.
With [models] dedup unset, a summary joins the story it shares the
most identifiers with, decided without a model call. Two summaries
with no identifier in common never join, however alike their subjects.
With [models] dedup set, dedup also calls that model to judge
subject identity, at a fixed temperature so the same candidate gets
the same answer on a replay. Candidates then come from two places:
shared identifiers, and the nearest existing stories by vector
similarity, so two summaries can join with no identifier vocabulary
declared at all. Measured on the recipe fixture: joins driven by an
identifier vocabulary ran 6 of 6, joins driven by vector similarity
alone ran 4 of 4, and an unrelated subject stayed in its own story 10
of 10.
A poorly worded summary can still lose a join it should have made. That was already true; the fixed temperature just makes it fail the same way every time instead of only sometimes.
llmwiki search "how do we rotate the gateway credential"
llmwiki search "burnt sugar dessert" -n 5 --kind story
Ranked by meaning, not keywords, one line each: score, file name, title, last modified, size. Scores are cosine similarity and are only comparable within one kb. As a calibration from a real corpus, an on-topic hit ran 0.83, a correct hit that shared no vocabulary with the query ran 0.63, and a query the kb had nothing on topped out at 0.09.
search embeds your query, so it needs [models] embed and the
credential. It refuses to answer while any page lacks a current vector,
which is what embed is for.
--remote NAME and --all ask other wikis too. Each wiki gets its own
ranked block, and the rankings are never merged. One wiki failing exits
the command 1 with every other wiki's block printed intact.
A kb can name other wikis to ask alongside its own. Read
references/remote-wikis.md before pointing a kb at another wiki, or
when a --remote search returns something you did not expect.
There is no verb for this. You write the file. A page is markdown with
a --- frontmatter block:
---
title: Gateway credential rotation
kind: runbook
identifiers:
- serial:AB123456
---
Body.
Use any kind except summary and story, which belong to the CLI.
Give the page real identifiers if you want ingest to tell you when a
new source touches it. Then:
llmwiki lint # config plus seven page checks, one per line
llmwiki embed # so search can find what you just wrote
llmwiki status # pages without a vector, sources without a summary
lint has no severities, no warnings, and no auto-fix. A finding is a
thing to go fix. A finding whose check column reads config points at
config.toml, not at a page, and means no model-calling verb will run
at all until you fix it.
It will not touch index.md, SCHEMA.md, or any page you wrote. It
will not delete a source. It will not overwrite a good page with a bad
one: a generated page that fails its own lint is dropped, and the page
it would have replaced survives.
There is no schema verb. It is not built.
README.md (opens in a new tab)llmwiki/SCHEMA.skeleton.md (opens in a new tab)llmwiki/__init__.py (opens in a new tab)llmwiki/__main__.py (opens in a new tab)llmwiki/cli.py (opens in a new tab)llmwiki/core.py (opens in a new tab)llmwiki/dedup.py (opens in a new tab)llmwiki/feeds.py (opens in a new tab)llmwiki/fetch.py (opens in a new tab)llmwiki/ingest.py (opens in a new tab)llmwiki/lint.py (opens in a new tab)llmwiki/model.py (opens in a new tab)llmwiki/remotes.py (opens in a new tab)llmwiki/sources.py (opens in a new tab)llmwiki/summarize.py (opens in a new tab)llmwiki/vectors.py (opens in a new tab)pyproject.toml (opens in a new tab)references/credential-setup.md (opens in a new tab)references/install.md (opens in a new tab)references/new-kb-setup.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub uraxii/dotai --plugin llm-wiki