/wiki-toolkit:wiki-lookupfrom wiki-toolkit
Answer a question from existing knowledge in the user's Karpathy-style wikis, qmd-backed where a collection exists. Never writes, edits, or commits wiki content; the one exception is that a failed lookup against the global wiki may fast-forward it and refresh the search index before concluding absence. Use whenever the user asks what the wiki knows or says about something, whether a topic was researched or decided before, says "look this up in the wiki", "check the wiki", "have we covered this", or asks "what do we know about X" in the sense of accumulated past project, personal, case, setup, or cross-project knowledge. Do not use for ordinary questions about the current codebase, repository documentation, live system state, or general knowledge. Not for adding knowledge (wiki-ingest), end-of-thread sweeps (wiki-checkpoint), or wiki health, sync, and index maintenance (wiki-lint).
Ships in wiki-toolkit. 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.
Answer a question from the wikis: pick the destination, query the map, read only the pages that matter, answer with citations.
Authority: the selected wiki's SCHEMA.md when present; otherwise inspect its catalogue and layout. The destination's status, freshness, contradiction, and evidence conventions govern the answer. One deliberate override: this skill never performs the write half of the schema's Query operation (filing answers back, query log entries, commits). Persistence is a separate /wiki-ingest transaction. When the same user request asks to both look up and save, finish the lookup, then hand the result to wiki-ingest as its own transaction; otherwise mention wiki-ingest only when filing the answer back would clearly pay.
Never author or edit wiki pages, catalogues, or logs, and never create commits. The sole permitted mutations are in the stale-state recovery below: a fast-forward synchronisation of a clean ~/wiki checkout, followed by a qmd index refresh when it pulled anything. Never pull a containing project repository as part of a lookup.
Project root: the workspace root the harness reports; otherwise the nearest ancestor of the working directory containing .git, CLAUDE.md, or AGENTS.md; otherwise the working directory itself.
<project root>/wiki/ when it exists.~/wiki/, including its pages/<project>/ routing-exception area.~/wiki/.Map each selected wiki to a qmd collection by absolute path via mcp__qmd__status, never by name-guessing. When the qmd tools are deferred in the current harness, load them first in one ToolSearch call (select:mcp__qmd__status,mcp__qmd__query,mcp__qmd__get,mcp__qmd__multi_get); qmd being unloaded is not qmd being absent. A destination with no matching collection is searched on the filesystem instead: read its SCHEMA.md or sniff the layout first, and do not assume pages/ or index.md exist (project layouts vary, e.g. concepts/, entities/, sources/).
index.md or equivalent where it keeps one (grep -n "^## " index.md for the headings), or, in the global wiki since 2026-09-17, scripts/catalogue.sh <subfolder>, which prints each page's summary frontmatter for one topic folder; never read every folder. For a large folder, write the catalogue output to a scratch file once and grep that file, combining a person's name with the topic words (never an OR list that includes the name), plus one grep for the object alone, because an object's pages may not name the person; output the tool reports as too large has not been read. Treat untracked .md files the wiki's git status shows as part of the wiki.mcp__qmd__query call, explicitly scoped via collections to the selected collection names (omitting it searches every collection) and always with intent. Sub-queries: lex for exact terms from the question and known aliases (names, IDs, error strings), vec for the question's meaning, hyde (a short hypothetical answer passage, roughly 50 to 100 words) when the vocabulary or likely answer is unclear. An unknown proper noun, label, or identifier goes into its own lex sub-query on its own first; topic words added to it dilute the one distinctive token.rg -n -i over the destination's page directories for concrete identifiers qmd may rank poorly (dates, codes, file paths), and as the recovery when a page written earlier this session is not yet indexed.Never answer from search snippets. Retrieve each shortlisted page in full and follow related: links and [[wikilinks]] one hop when a page points at a more specific one. Before asserting that a value or topic is absent, open the outbound wikilinks of every page read for the answer: that set is small, already named, and is where the contradicting value usually sits. Retrieval: mcp__qmd__get with #docid for individual results; mcp__qmd__multi_get only with globs or fully qualified qmd://<collection>/<path> values, never unqualified relative paths across collections (same-named files like index.md and SCHEMA.md collide).
ruled-out and snapshot pages as such, and treat [source: conversation, weak] as a claim with no retained evidence. Do not transfer global-wiki meanings to a project wiki unless its own conventions define them.last_compiled when freshness materially affects the answer; do not invent a staleness threshold the destination does not define.<!-- CONTRADICTION --> marker (or the destination's equivalent) near a cited claim is reported, never silently resolved into one side.rg, and the semantic search all come back empty and the stale-state recovery below has run; a search for a name you guessed only confirms the guess. The wiki not answering is then a valid result: say so and name the nearest pages found, and name the store that would hold the original (a mailbox for a document, a provider portal, the source repository for a running system's behaviour); search it when a tool for it is loaded, otherwise offer to, in the same reply. Wiki absence describes the index, not the world.ls the raw export directory for the name and grep both raw export trees for the date, and treat the raw text as outranking the page. The temporary WhatsApp qmd collections locate a described event but are never cited; their setup and the tree paths are on pages/dev/qmd-search-setup.md.When the selected destination is ~/wiki/ and the complete initial search finds no answer, run this once before concluding absence:
git -C ~/wiki status --porcelain must be empty; then git -c core.hooksPath=/dev/null -C ~/wiki pull --ff-only (hook suppression keeps the recovery deterministic; the post-merge hook would otherwise run a full lint). When the status is not empty, run the pull once as git -c core.hooksPath=/dev/null -c pull.rebase=false -C ~/wiki pull --ff-only instead: the wiki sets pull.rebase=true, which refuses on any dirty tree before checking the fast-forward, while the plain fast-forward is refused by git itself only when upstream touches a dirty file.HEAD: run qmd update && qmd embed (update has no collection filter, so this refreshes every configured collection), then search again through qmd and rg before concluding absence.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/wiki-checkpointUse when the user invokes wiki-checkpoint, asks to save session knowledge, asks for a wiki or memory sweep, or wants durable findings, retrospective lessons, and routing decisions captured from the current conversation, typically at the end of a chat thread or before context compaction. Honour focus text and skip flags such as skip wiki, skip memory, and skip retrospective./wiki-ingestIngest one explicitly identified input into the wiki as a single transaction. A URL, file, pasted text, command output, stated fact, or an investigation result from the current session. Use when the user asks to add a specific input or finding to the wiki, says "wiki this" or "ingest this into the wiki", or asks to record a conclusion, decision, or finding permanently. Also use when the user pastes a record (a portal or dossier extract, a lab table, an email, a screenshot) into a wiki repository session with no question attached: that is a request to file it. A paste sent in the middle of an open question on its own topic is input to that answer, not a filing request. Generic "ingest this" or "file this" without wiki context is not this skill. Not for behavioural rules or memory updates, not for end-of-thread or pre-compaction knowledge sweeps (use wiki-checkpoint), and not for wiki health checks (use wiki-lint)./wiki-lintLint and re-index a Karpathy-style LLM wiki (second brain). Use this whenever the user asks to "lint the wiki", "wiki lint", "check wiki health", "index the wiki pages", "refresh the wiki search index", or anything about validating wiki structure or making wiki pages searchable. The wiki is sometimes a project-local folder and there is sometimes a global one at ~/wiki. This skill detects which wiki applies, runs the correct lint script (which also refreshes the qmd search index in one pass), and resolves flagged issues. Do NOT use it for ordinary source-code linting (eslint, phpstan, markdownlint of non-wiki files) or for the full pre-compaction knowledge sweep (that is /wiki-checkpoint).npx claudepluginhub marjovanlier/claude-plugins --plugin wiki-toolkit