TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/SamBleed/opencode-obsidian/llms.txt
Use this file to discover all available pages before exploring further.
wiki-ingest skill is the primary intake valve for Bunker OS. Any file, URL, or image you drop into .raw/ becomes a set of structured wiki pages — one source summary, entity pages for every person/org/product mentioned, concept pages for significant ideas, and updates to the master index, operation log, and hot cache. A single source typically touches 8–15 wiki pages. The .raw/ folder is immutable: sources are never modified, only read.
Trigger Phrases
Destination by Source Type
| Resource type | Folder | Example |
|---|---|---|
| Entity (person, org, product) | wiki/entities/ | wiki/entities/OpenRouter.md |
| Technical concept | wiki/concepts/tech-stack/ | wiki/concepts/tech-stack/PostgreSQL.md |
| General concept (idea, pattern, framework) | wiki/concepts/ | wiki/concepts/BM25.md |
| External source | wiki/sources/ | wiki/sources/trivy-security-report.md |
Preparing Sources
Drop any of the following into.raw/ before running ingest:
- Markdown files — articles, notes, transcripts, documentation exports
- URLs — the skill fetches and optionally cleans with
defuddle(strips ads and nav, saves 40–60% tokens) - Images —
.png,.jpg,.webp,.svg,.avif; the skill uses OpenCode’s vision capability to OCR and describe the image before ingesting - PDFs — processed via WebFetch or direct read
.raw/articles/[slug]-[YYYY-MM-DD].md with source frontmatter, and proceeds from there. Images are saved to .raw/images/[slug]-[YYYY-MM-DD].md as description files, with the original copied to _attachments/images/.
Single Source Ingestion Workflow
Read the source completely
The skill reads the full source file without skimming. For large sources it checks the manifest at
.raw/.manifest.json first — if the file hash matches a previously ingested entry, it reports “Already ingested (unchanged)” and stops unless you say force ingest.Create source summary in wiki/sources/
A structured summary page is created using the source frontmatter schema. Required fields:
type, source_type, author, date_published, url (if applicable), confidence (high / medium / low), and a prose summary of what the source contributes.Create or update entity pages
Every person, organization, product, and repository mentioned in the source gets a page in
wiki/entities/. The skill checks the index first — if the entity already exists, the page is updated rather than duplicated.Create or update concept pages
Significant ideas, frameworks, and patterns become pages in
wiki/concepts/ or wiki/concepts/tech-stack/. Only concepts with enough standalone substance are created; minor mentions are captured in the source summary instead.Update index, hot cache, and log
wiki/index.md— new entries added to the correct sectionswiki/hot.md— recent context updated so the next session starts fastwiki/log.md— new entry prepended at the top:
Check for contradictions with existing pages
After all pages are created, the skill scans for conflicts with existing wiki content. When a contradiction is found, a
[!contradiction] callout is added to both the new page and the conflicting existing page — the user decides which claim is authoritative. Old claims are never silently overwritten.Required Page Frontmatter
Every wiki page created by the ingest skill uses this frontmatter schema:Source
- URL or [[wikilink to source]]
Batch Ingestion
When you sayingest all of these, the skill processes multiple files in sequence with a deferred cross-referencing pass:
- Lists all files to process and confirms with you before starting
- Processes each source following the single-ingest flow, deferring inter-source cross-references
- After all sources are processed, runs a cross-reference pass looking for connections between the newly ingested sources
- Updates
wiki/index.md,wiki/hot.md, andwiki/log.mdonce at the end (not per-source) - Reports: “Processed N sources. Created X pages, updated Y pages. Here are the key connections I found.”
Delta Tracking
The skill tracks ingested files in.raw/.manifest.json:
sha256sum on Linux, md5sum otherwise) is computed and checked against the manifest. If the hash matches, the file is skipped. After successful ingestion, the manifest is updated. Use force ingest to bypass delta checking.
Cross-Referencing
The ingest skill uses[[wikilinks]] to build a connected knowledge graph:
- Every entity and concept mentioned in a source summary is linked to its wiki page
- Related pages are added to each new page’s
relatedfrontmatter field - Contradiction callouts link bidirectionally between conflicting pages
- The master
wiki/index.mdserves as the entry point for the entire graph
The
.raw/ directory is immutable. The ingest skill reads from it but never writes to it. Your original source documents always remain in their original state. To re-ingest a modified file, update it in .raw/ and run ingest [file] again — or force ingest to bypass the manifest hash check.Context Window Discipline
The ingest skill is designed to stay within token budget:- Reads
wiki/hot.mdfirst — if it contains relevant context, existing pages are not re-read - Reads
wiki/index.mdto find existing pages before creating new ones - Reads only 3–5 existing pages per ingest session
- Uses
obsidian-vault_patch_notefor surgical edits rather than reading and rewriting full files - Keeps wiki pages under 100–300 lines; splits pages that grow beyond 300 lines