wiki-context-pack
Produce a token-bounded, citation-ready context slice from an existing Obsidian vault for a downstream agent or task. Use for "/wiki-context-pack", "use my vault as context", "context slice for X", "pack the wiki for my agent", or "bounded context for Y".
npx skills add Ar9av/obsidian-wiki --skill wiki-context-pack --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Wiki Context Pack This is a read-only skill. It must not modify the vault, including `log.md`, `index.md`, `hot.md`, or `.manifest.json`. ## Before You Start 1. Resolve config using the Config Resolution Protocol in `llm-wiki/SKILL.md`: inline `@name`, then walk up from CWD for `.env`, then `~/.obsidian-wiki/config`. 2. If `$OBSIDIAN_VAULT_PATH/AGENTS.md` exists, read it as trusted owner conventions. Do not include that file as a knowledge excerpt. 3. Canonicalize the configured vault to a physical absolute path before invocation: ```bash OBSIDIAN_VAULT_PATH="$(cd "$OBSIDIAN_VAULT_PATH" && pwd -P)" ``` If this fails, report that the configured vault path is invalid. 4. Parse: - topic, required unless `--recent`; - `--budget N`, default `8000`; - `--recent`; - `--public-only`; - `--metadata-only`; - `--json`. ## Execute Build the requested arguments, then prefer the installed executable: ```bash obsidian-wiki context-pack --vault "$OBSIDIAN_VAULT_PATH" "<topic>" --budget 8000 ``` For recent activity: ```bash obsidian-wiki context-pack --vault "$OBSIDIAN_VAULT_PATH" --recent --budget 8000 ``` Append the requested flags exactly. If `obsidian-wiki` is unavailable but `$OBSIDIAN_WIKI_
- Before You Start
- Execute
- Return
obsidian-wiki context-pack --vault "$OBSIDIAN_VAULT_PATH" "<topic>" --budget 8000
obsidian-wiki context-pack --vault "$OBSIDIAN_VAULT_PATH" --recent --budget 8000
python3 -m obsidian_wiki.cli context-pack --vault "$OBSIDIAN_VAULT_PATH" "<topic>" --budget 8000
if command -v obsidian-wiki >/dev/null 2>&1; then
elif [ -n "${OBSIDIAN_WIKI_REPO:-}" ] && [ -f "$OBSIDIAN_WIKI_REPO/obsidian_wiki/cli.py" ]; then
cd "$OBSIDIAN_WIKI_REPO"
else
fiWhat does the wiki-context-pack skill do?
Produce a token-bounded, citation-ready context slice from an existing Obsidian vault for a downstream agent or task. Use for "/wiki-context-pack", "use my vault as context", "context slice for X", "pack the wiki for my agent", or "bounded context for Y".
How do I install it?
Run `npx skills add Ar9av/obsidian-wiki --skill wiki-context-pack --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From Ar9av/obsidian-wiki, a repository with 3,115 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
