ar9av avatar

Wiki Context Pack

This packages a slice of your Obsidian vault into a token-bounded markdown block that another agent or skill can consume directly. It's not for answering questions (that's wiki-query). It's for when you need to hand off structured context to a downstream task without blowing your context window. You give it a topic and a budget (default 8000 tokens), and it ranks pages by relevance using frontmatter scoring plus optional semantic search, then fills the budget tier-aware (core pages first, peripheral last) with compressed representations that strip boilerplate and deduplicate shared content. The output is a standalone markdown block with actual token counts and page metadata. Useful when feeding wiki knowledge into research tasks, synthesis jobs, or external agents that need scoped input without re-scanning everything.

skills.sh installs
1.6K
GitHub stars
3.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add ar9av/obsidian-wiki --skill wiki-context-pack --agent claude-code

Installs into .claude/skills of the current project.

Files

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 the global 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:

    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:

obsidian-wiki context-pack --vault "$OBSIDIAN_VAULT_PATH" "<topic>" --budget 8000

For recent activity:

obsidian-wiki context-pack --vault "$OBSIDIAN_VAULT_PATH" --recent --budget 8000

Sponsors

Details

Repository
github.com/ar9av/obsidian-wiki
Categories
Documentation, AI & Agent Building, Office & Documents
First seen
Jul 14, 2026

More from ar9av/obsidian-wiki

All 37
1ar9av avatarwiki-stage-commitar9av/obsidian-wikiReview and promote staged wiki pages to their final locations. Use when WIKI_STAGED_WRITES=true and the user says "/wiki-stage-commit", "review staged pages", "1.6Kskills.sh installs
2refoundai avatarwriting-job-descriptionsrefoundai/lenny-skillsHelp users write effective job descriptions. Use when someone is creating a job posting, defining a new role, preparing to hire, or trying to attract the right 1.6Kskills.sh installs
3anthropics avatarlegal-writinganthropics/claude-for-legalStructural feedback on a legal writing draft (memo, brief, paper, exam essay) — organization, analysis depth, clarity, citation form. NEVER rewrites the draft. 1.4Kskills.sh installs
4bear2u avatarlanding-page-guide-v2bear2u/my-skillsCreate distinctive, high-converting landing pages that combine proven conversion elements with exceptional design quality. Build beautiful, memorable landing pa1.3Kskills.sh installs
5google-gemini avatardocs-changeloggoogle-gemini/gemini-cliGenerates and formats changelog files for a new release based on provided version and raw changelog data.1.3Kskills.sh installs
6ar9av avatarobsidian-wiki-ingestar9av/obsidian-wikiAutomates ingestion of documents into the Obsidian wiki (obsidian-wiki) using the wiki-ingest pipeline. Handles deduplication via manifest, frontmatter, and cro1.3Kskills.sh installs