Loading...
Loading...
Produce a token-bounded context pack from the Obsidian wiki — a compact, structured slice of the most relevant pages for a topic or recent activity, designed for downstream consumption by another agent or skill. Use when the user says "/wiki-context-pack", "make a context pack", "give me a context slice for X", "pack the wiki for my agent", or "bounded context for Y". Different from wiki-query (which answers a question) — this produces reusable input material for a downstream task.
npx skill4agent add ar9av/obsidian-wiki wiki-context-packwiki-queryllm-wiki/SKILL.md.env~/.obsidian-wiki/configOBSIDIAN_VAULT_PATH$OBSIDIAN_VAULT_PATH/hot.md$OBSIDIAN_VAULT_PATH/index.md/wiki-context-pack "transformer attention mechanism" --budget 16000
/wiki-context-pack "my-project architecture decisions" --budget 8000
/wiki-context-pack --recent --budget 4000 # recent activity pack from hot.md
/wiki-context-pack "authentication patterns" # default budget: 8000 tokens--recent--budget N8000100000--recentindex.mdsummary:index.md--recentupdated:QMD_WIKI_COLLECTIONllm-wiki/SKILL.mdcoresupportingperipheraltier:tags:summary:## Sources_(content also in [[other-page]])_len(text_chars) / 4peripheral# Context Pack: <topic>
# Generated: <ISO timestamp>
# Budget: <budget> tokens | Actual: <actual> tokens | Pages: <N included> / <M candidates>
# Methodology: 4 chars/token estimate
---
## [[<category/page-name>]] (<tier>, ~<tokens> tokens)
tags: #tag1 #tag2
summary: <summary field text>
<compressed body or excerpt>
---
## [[<next-page>]] (<tier>, ~<tokens> tokens)
...--recent# Context Pack: Recent Activity (last N pages)--recent# Context Pack: <topic>
No relevant pages found. Consider running /wiki-ingest to add sources about this topic.$OBSIDIAN_VAULT_PATH/log.md- [TIMESTAMP] CONTEXT_PACK topic="<topic>" budget=<N> actual_tokens=<M> pages_included=<K> pages_dropped=<D>/wiki-research/wiki-synthesize4 chars/tokenwiki-status