/llm-code-wiki:deep-researchfrom llm-code-wiki
Runs a multi-agent research pass over code repos, grills on scope, reads with Sonnet, writes findings to the LLM Code Wiki with Opus. For mapping or deep-diving on a theme across repos.
Ships in llm-code-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.
None: SKILL.md is the whole skill.
Resolve the wiki root first. Read the pointer file ~/.llm-code-wiki; its single line is the
absolute path to this machine's wiki data (call it <WIKI_ROOT>). If it's missing or empty, tell
the user to run /setup-wiki, then stop.
This skill runs a repeatable, topic-agnostic research workflow that ends with new/updated wiki pages. The subject (AI features, auth flows, data pipelines, a migration, whatever) comes from the user — this skill only defines the method.
Read <WIKI_ROOT>/constitution.md first. It is the single source of truth for the wiki —
taxonomy, frontmatter schema, the interaction loop, the maintenance protocol, path resolution, and
the propose→confirm→write gate. Anchor every wiki path to <WIKI_ROOT>. Do not duplicate its rules
here; this skill only adds the multi-agent research method on top of it.
model: sonnet). The wiki is written by a single Opus writer sub-agent
(model: claude-opus-4-8[1m]). The orchestrator (you) synthesizes between the two.Enter plan mode, then interview the user relentlessly down the design tree, resolving
dependencies one decision at a time. For every question, offer your recommended answer first
(label it "(Recommended)"). Use AskUserQuestion; batch related questions, but sequence so that a
decision is settled before the ones that depend on it. Keep going until the plan is unambiguous.
Walk at least these branches (adapt to the topic):
<WIKI_ROOT>/repos.md: register any
on-disk-but-unregistered repo before citing it (the validator rejects unregistered repos), and
honor the Ignored list.concepts/ synthesis? A contracts/ page for
cross-repo boundaries? A comparisons/ page? (Default: per-repo + one synthesis page.)git -C <path> remote get-url origin,
git -C <path> rev-parse --abbrev-ref origin/HEAD) and build links as
https://github.com/<org>/<repo>/blob/<branch>/<path>#L<n> — not local paths.index.md/log.md; the constitution's concurrency rule mandates
serialized writes / union merges).raw/ai-agent-sessions/.Finish the grill with ExitPlanMode presenting the agreed plan. Only proceed once approved.
Spawn one Sonnet sub-agent per in-scope repo (in a single message, in parallel). Each returns:
overview.md, andAgents do not write. They report structured findings back to you.
Present the combined inventory grouped into deep-dive clusters (merge tightly-coupled surfaces so you don't spawn one agent per file). The user confirms/prunes which clusters get deep-dived.
Spawn one Sonnet sub-agent per confirmed cluster (parallel). Each deep-reads its cluster and returns a structured brief covering the agreed lenses, with exact source citations (and the agreed GitHub links). No writes.
Collect all Phase A + B findings, dedupe, and decide the final page set + structure. Then run the constitution's gate: present a written proposal (every page to create/update, key findings, sources) and wait for the user's go. Write nothing before approval.
Dispatch one model: opus writer sub-agent that writes all pages sequentially
(overviews → per-repo subject pages → synthesis → any contract/comparison → session snapshot →
indexes/log). Brief it fully (it shares none of your context): the page set, the synthesized
content per page, the agreed source links, and these obligations from the constitution:
sha256 for every cited repository/file source (via the OS hash script);index.md → root index.md only for new categories →
append log.md → bidirectional [[wikilinks]]);index.md/log.md conflicts.After writes, run python3 <WIKI_ROOT>/scripts/validate.py (schema, source freshness/re-hash,
index presence, ignore list). Fix anything it flags in the pages you wrote; re-run until clean.
Sonnet = Phase A discovery + Phase B deep-dive (read/lookup). Opus 4.8[1m] = the single serialized wiki writer. You (orchestrator) grill, synthesize, and gate.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dylannalex/llm-code-wiki --plugin llm-code-wiki3 skills in this plugin
/setup-wikiUSER-INVOKED ONLY (via /setup-wiki). One-time setup for the LLM Code Wiki plugin: picks a wiki data root, scaffolds it from the plugin's template, records the root in ~/.llm-code-wiki, then customizes Purpose, the scope tag, and the repo registry. Do NOT run this automatically or as part of any other task — only when the user explicitly types /setup-wiki./wikiAccess the LLM Code Wiki — a persistent, LLM-maintained knowledge base over living code repositories. Use when the user wants to map/scan/read a repo into the wiki, ask a question answerable from accumulated knowledge, add/import a source (article, ticket, note), file/save a session insight into the wiki, or check/audit the wiki for staleness. Works from any repo; the wiki root is recorded in ~/.llm-code-wiki.Other plugins' skills for the same job