/llm-wiki:llm-wikifrom LLM Wiki
Extract domain knowledge from any source (article, URL, blog post, paper, PDF, transcript, chat log, meeting notes) into a persistent, interlinked Markdown wiki in a Git repository on GitHub, and keep that wiki current. Use this skill whenever the user wants to ingest, file, save or "add to my wiki / knowledge base / second brain" a source; asks what their wiki or notes say about a topic; wants the wiki linted, health-checked or synced; wants to set up a knowledge-base repository; or states a convention for their wiki. Use it also for "remember this article", "file this transcript", or any mention of ~/.llm-wiki, even when the user does not say "wiki".
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.
You maintain a wiki that compounds. Each source is read once, then its knowledge is integrated into existing pages: entities, concepts, decisions, contradictions. Good answers to questions go back into the wiki as pages too.
The wiki has three layers:
| Layer | Path | Owner | Rule |
|---|---|---|---|
| Raw sources | raw/<domain>/ | the user | Immutable. Only ingest adds files. Never edit, move or delete. |
| Wiki | wiki/<domain>/ | you | You write and update every page. |
| Schema | AGENTS.md (wiki root) | you and the user | The per-wiki rules. It overrides this skill. |
Division of labor: the CLI does every mechanical step (files, snapshots, indexes, search, log, mechanical lint, Git). You do the judgment work: read, extract, synthesize, link, and get approval. Do not hand-write indexes or log entries.
The CLI is one Python 3 file with no dependencies: scripts/llm_wiki.py in this skill's
directory. Below, wiki means python3 <skill-dir>/scripts/llm_wiki.py. Add --json
when you parse the output. Every command takes --root PATH; the default comes from
~/.config/llm-wiki/config.json, then ~/.llm-wiki.
| Command | Use |
|---|---|
wiki status | Root, remote, page counts, last log entries, lint totals |
wiki setup --remote URL [--root PATH] | Connect a root to an existing Git repository |
wiki init [--preset P] [--domain D] | Create the layout once. Each run logs a bootstrap event. |
wiki ingest SRC --domain D [--snapshot] [--asset F] | Copy or snapshot a source into raw, write a page scaffold |
wiki new KIND --domain D --title T [--section S] [--name N] | Write a scaffold for a page that is not a source page. Writes no log entry. |
wiki index | Rebuild every index.md. Writes no log entry. |
wiki search "QUERY" [--domain D] [--kind K] | BM25 search, title and summary boosted |
wiki log OP "TITLE" [--page P] [--body T] [--follow-up T] | Append to wiki/log.md. OP: bootstrap, ingest, query, lint, schema |
wiki lint [--strict] | Mechanical checks. Exit 1 on errors. |
wiki sync [-m MSG] | Commit, pull with rebase, push. Never forces. |
wiki status --json. If initialized is false, do Setup first.<root>/AGENTS.md in full. Its local conventions win over this skill.
They can be invisible in the existing pages, so do not guess them from the files.~/.llm-wiki) and the URL of an
existing GitHub repository. Recommend a private repository, because the wiki can hold
private notes. Example: gh repo create my-wiki --private.https://user:token@...). The CLI refuses it.
Tell the user to use SSH keys, gh auth login or a credential helper.wiki setup --remote URL --root ROOT --json.wiki_exists is false, run wiki init once. Pass --preset (research,
engineering, book, team) only if the user wants domain page kinds.
If wiki_exists is true, the clone already has a wiki: run wiki index instead.
Do not re-run init to repair indexes; it logs a new bootstrap event each time.Read references/ingest.md before the first ingest in a session.
wiki search queries for the main entities
and concepts. Read wiki/index.md, the candidate domain index and the top pages.references/ingest.md:
one primary domain path plus alternatives, 3–5 key takeaways, related pages,
contradictions, and the question "What should I emphasize?". Then stop and wait.
Skip the gate only when the user already approved the domain for this source.wiki ingest SRC --domain D --json. Add --snapshot for every URL source, so the
raw layer keeps a local copy. Add --asset F for each image to keep.
If the CLI reports name-collision, pick a new --name. Never overwrite raw files.TODO(llm-wiki) placeholder in the scaffold.
Create or update the entity, concept, decision and practice pages that the source
touches; one source often touches 5–15 pages. For each new page, run
wiki new KIND --domain D --title T --json, then replace its placeholders.
Merge research findings that arrived.
Note contradictions on both pages. Follow the page format in
references/page-format.md.wiki index, then wiki lint and fix every error. Then run
wiki log ingest "<source title>" --page <each page created or updated>.wiki search "<question terms>" --json. Read the indexes and the top pages.
Read the raw source when a page is thin or a claim needs a check.question page when it combines two or more pages, makes a
comparison or analysis, or the user asks to keep it. Put it under the domain of its
main subject. Start it with wiki new question. When a local convention sets the
file name or the sections, pass --name and --section.
See references/query.md.wiki index, wiki lint, then wiki log query "<question>" --page <page>.wiki lint --json. Fix every error: placeholders, broken links, frontmatter,
summaries. Fix warnings where the fix is clear (orphans, missing ingest log entries).wiki log lint "<scope>" --body "<findings>" --follow-up "Question: ..." --follow-up "Source: ...".When the user states a convention:
## Local conventions in <root>/AGENTS.md, with the date.
For a new page kind, also add it to the <!-- llm-wiki:extra-kinds: ... --> marker.
Lint fails on a page kind that is not in the marker, and wiki new refuses it.wiki log schema "<convention in a few words>".Run sync only when the user asks. Sync events go to Git history, not to log.md.
wiki lint. Fix errors first.wiki sync -m "<what changed>" --json.wiki/log.md and index.md files itself. It keeps
the log entries of both sides in time order and regenerates the indexes. The JSON
lists these files in resolved.summary: field feeds the indexes. Indexes are regenerated and overwrite hand
edits. A summary taken from the body picks up placeholders and code fences.evals/evals.json (opens in a new tab)evals/fixtures/sources/payments-sync-2026-11-18.txt (opens in a new tab)evals/fixtures/sources/permission-boundaries-explained.html (opens in a new tab)evals/fixtures/sources/scp-rollout-notes.md (opens in a new tab)evals/fixtures/wiki-base/AGENTS.md (opens in a new tab)evals/fixtures/wiki-base/raw/aws/iam/iam-user-guide-excerpt.md (opens in a new tab)evals/fixtures/wiki-base/raw/team/payments/2026-09-arch-review.md (opens in a new tab)evals/fixtures/wiki-base/wiki/aws/iam/iam-role.md (opens in a new tab)evals/fixtures/wiki-base/wiki/aws/iam/iam-user-guide-excerpt.md (opens in a new tab)evals/fixtures/wiki-base/wiki/aws/iam/index.md (opens in a new tab)evals/fixtures/wiki-base/wiki/aws/iam/policy-types.md (opens in a new tab)evals/fixtures/wiki-base/wiki/aws/index.md (opens in a new tab)evals/fixtures/wiki-base/wiki/aws/organizations/index.md (opens in a new tab)evals/fixtures/wiki-base/wiki/aws/organizations/scp.md (opens in a new tab)evals/fixtures/wiki-base/wiki/index.md (opens in a new tab)evals/fixtures/wiki-base/wiki/log.md (opens in a new tab)evals/fixtures/wiki-base/wiki/team/index.md (opens in a new tab)evals/fixtures/wiki-base/wiki/team/payments/2026-09-arch-review.md (opens in a new tab)evals/fixtures/wiki-base/wiki/team/payments/index.md (opens in a new tab)evals/fixtures/wiki-base/wiki/team/payments/payments-gateway.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 dtgbao/agent-skills --plugin llm-wiki