Llm wiki retrieve
Reach the right note(s) in the llm-wiki knowledge base on demand, cheaply — the alternative to grepping the repo and reading whole files. Runs a cheap scan (title + tags + snippet + links as JSON) over the zk notebook, then expands only the notes that matter, and follows [[wikilinks]] to gather context. Use before researching a topic from scratch, to check what the KB already knows. Triggers on "what does the wiki know about X", "check the KB for this", "retrieve from the KB", "search llm-wiki". This is pull-only reach — it does not decide when to recall or proactively surface notes (that is the memory layer's job). Should NOT trigger for writing notes (use llm-wiki-capture).From its SKILL.md
npx -y skills add choplin/llm-wiki --skill llm-wiki-retrieveAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.7 KB, as published. Nobody here has run it
llm-wiki: Retrieve (reach a note on demand)
Find and reach the right note(s) without a full-text grep + whole-file read. Cheap first, expand only what matters.
Apply llm-wiki-base first to resolve $wiki and verify that llm-wiki is
initialized. This skill never runs setup. It is pull-only reach: it answers
"given I need X, how do I get to it," not "when should I recall" — no proactive
surfacing.
Two-stage reach
Stage 1 — cheap scan (a map, not the contents)
Return only title + tags + path + snippet, the distill footprint, and source
state. Do not read full bodies yet. sources_present: false means legacy
provenance is unassessed; sources_present: true with sources: [] means no
durable locator was available. Do not collapse those states or treat a non-empty
list as a correctness score.
zk -W "$wiki" scan -m "<query>"
Narrowing options (apply only what the request implies — the KB stays maximally
findable by default; the caller narrows). scan forwards these to zk list:
zk -W "$wiki" scan <scope>/ -m "<query>" # scope to one concern's directory
zk -W "$wiki" scan --tag raft # by topic tag
Archived notes (root _archived/) are excluded by default — retired
material does not pollute reach. Opt in only when the request is explicitly
about history:
LLM_WIKI_INCLUDE_ARCHIVED=1 zk -W "$wiki" scan -m "<query>"
While judging this compact map, read each candidate's updated, distilled,
and distill_count fields. Carry that footprint forward only for notes that
become evidence for the answer; do not surface an unrelated note merely because
its footprint looks old.
Classify the evidence notes at answer time:
- Freshness date: use the later of
updatedand a non-nulldistilled. Creation-time writing may already be well considered, so never having been distilled is not a warning by itself.distill_countis context, not a quality score. - Stale: the freshness date is at least 90 days before today. Ninety days is the fixed signal threshold.
- Not stale: the freshness date is less than 90 days ago. Say nothing about freshness unless the request specifically asks for it.
When reporting a stale note, include the exact elapsed days and the freshness date. Say whether that date came from its last update or last distill; do not use the vague label "stale" or "old" without the numbers. The 90-day threshold is an internal decision rule and does not need to appear in the answer.
Stage 2 — expand + traverse (only the relevant ones)
For the notes that look relevant, read the body and follow links to gather surrounding context:
zk -W "$wiki" show "<query>" # full body of the matches
# resolve a title to a path, then walk its links (inbound then outbound):
p=$(zk -W "$wiki" scan -m "<title>" | jq -r '.path' | head -1)
zk -W "$wiki" links "$p" # backlinks + outbound, JSON
zk -W "$wiki" links "$p" --recursive --max-distance 2 # traverse the graph
Then Read the specific note files that matter for the task.
Report freshness without taking over the answer
The answer to the query remains primary. Only when an evidence note is stale, append one short freshness note that groups all such evidence, for example:
Freshness:
note-awas last updated 137 days ago (2026-03-10);note-bwas last distilled 112 days ago (2026-04-04). Consider running distill on these notes.
This is a proposal, never a trigger: do not invoke llm-wiki-distill
automatically. Because the report covers only notes pulled for the current
query, it stays within reach, not surface / pulled, never push.
Entry points (index)
To enter by keyword rather than free-text, list the live keyword index and jump in:
zk -W "$wiki" tags # keywords + note counts (JSON)
zk -W "$wiki" scan --tag <keyword> # jump into a keyword
Success Criteria
- Stage 1 returned a compact map (titles/tags/snippets), not full bodies.
- Full bodies were read only for notes judged relevant.
- Links were followed where surrounding context mattered.
- No proactive surfacing beyond what was asked (reach, not recall).
- The distill footprint was checked for every note used as evidence; notes whose latest update/distill was at least 90 days ago were reported briefly with the exact elapsed days and freshness date, while the internal threshold, never-distilled status alone, and fresher notes added no noise.
- Source presence and source values remained distinct when provenance was relevant, and were never presented as a confidence or quality score.
- Distill was proposed for reported evidence notes, never started automatically.
- The result names the specific notes that answered the query — or states explicitly that the KB has nothing on it (a clean miss is a valid outcome, silently answering from general knowledge is not).