vault-ingest
Skill4 starsChanged 7 months agoMITView on GitHub
Ingest sources into the Obsidian wiki vault. Reads a source, extracts entities and concepts, creates or updates wiki pages, cross-references, and logs the operation. Supports files, URLs, and batch mode. Triggers on: ingest, process this source, add this to the wiki, read and file this, batch ingest, ingest all of these, ingest this url.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Lucioway/way-stacktheir own version, first seen Aug 31, 2026
- theultimateshyam/claude-skillstheir own version, first seen Apr 24, 2026
- pass-agent/loomkintheir own version, first seen Apr 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- pass-agent/loomkin★ 181same name
- theultimateshyam/claude-skills★ 1same name
- Lucioway/way-stack★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- apple-contactsSkill
- atlassian-cli-jiraSkill
- bellardSkill
- brainstormingSkill
- career-interviewSkill
- carmackSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- caveman-statsSkill
- ci-watchSkill
- clone-configSkill
- cloudflare-emailSkill
- course-correctSkill
- datastar-patternsSkill
- datastarSkill
- datastar-taoSkill
- defuddleSkill
- description-linterSkill
- deterministic-simulation-testingSkill
- dispatching-parallel-agentsSkill
- dopplerSkill
- dx-auditSkill
- evolution-changelogSkill
- evolution-engineSkill
- executing-plansSkill
- farleySkill
- finishing-a-bones-leafSkill
- frontend-component-decision-treesSkill
- gh-project-charterSkill
- gh-project-operationsSkill
- gh-project-setupSkill
- gh-project-sharedSkill
- goal-completeSkill
- golang-patternsSkill
- hellandSkill
- hickeySkill
- hippSkill
- investigating-agent-sessionsSkill
- landingSkill
- linear-cliSkill
- linear-methodSkill
- memorizeSkill
- midscene-testingSkill
- monitoring-the-operatorSkill
- normanSkill
- obsidian-basesSkill
- obsidian-canvasSkill
- obsidian-markdownSkill
- orchestrator-modeSkill
- orchestrator-suitSkill
- ousterhoutSkill
- pikchr-generatorSkill
- pocock-cavemanSkill
- pocock-diagnoseSkill
- pocock-git-guardrailsSkill
- pocock-handoffSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. 0 are common, 18 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Read the source. Write the wiki.
- Very specific: line 27
Before ingesting any file, check raw/.manifest.json to avoid re-processing unchanged sources.
- Very specific: line 50
Check if the path exists in .manifest.json with the same hash.
- Very specific: line 51
If hash matches, skip. Report: "Already ingested (unchanged).
- Distinctive: line 52
If missing or hash differs, proceed with ingest.
- Distinctive: line 56
Write the updated manifest back.
- Distinctive: line 104
Use cases: whiteboard photos, screenshots, diagrams, infographics, document scans.
- Very specific: line 132
Check for contradictions: If new info conflicts with existing pages, add > [!contradiction] callouts on both pages.
- Very specific: line 134
Sync the qkb index: Run qkb update so BM25, graph link extraction, and the question-cache used by vault-query-qkb pick up everything you …
- Distinctive: line 146
After all sources: do a cross-reference pass.
- Distinctive: line 147
Update index, hot cache, and log once at the end (not per-source).
- Very specific: line 159
Read wiki/hot.md first. If it contains the relevant context, don't re-read full pages.
- Very specific: line 160
Read wiki/index.md to find existing pages before creating new ones.
- Distinctive: line 161
Read only 3-5 existing pages per ingest.
- Distinctive: line 162
Use PATCH for surgical edits.
- Distinctive: line 163
Keep wiki pages short. 100-300 lines max.
- Very specific: line 164
Use search (/search/simple/) to find specific content without reading full pages.
- Distinctive: line 173
When new info contradicts an existing wiki page:
- Distinctive: line 188
Do not silently overwrite old claims.
- Distinctive: line 208
The rule: If the wikilink text is the page name people type, the filename must match it exactly.
- Distinctive: line 214
After every ingest (single or batch), the qkb retrieval index needs to know about the new/changed pages.
- Very specific: line 236
Do NOT run embed automatically inside the ingest skill.
- Distinctive: line 241
Instead, after the ingest report, suggest to the user:
- Very specific: line 247
Don't block the ingest report on this.
- Very specific: line 259
Do not modify the archived originals in _sources/ or _archive/.
- Distinctive: line 260
Do not create duplicate pages.
- Distinctive: line 261
Do not skip the log entry.
- Distinctive: line 262
Do not skip the hot cache update.
- Very specific: line 263
Do not skip the qkb index sync.
- Distinctive: line 264
Do not use kebab-case filenames for entities, concepts, domains, comparisons, or questions.
- Very specific: line 265
Do not run qkb embed automatically inside an ingest.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
wiki-ingest: Source Ingestion
Read the source. Write the wiki. Cross-reference everything. A single source typically touches 8-15 wiki pages.
Syntax standard: Write all Obsidian Markdown using proper Obsidian Flavored Markdown. Wikilinks as [[Note Name]], callouts as > [!type] Title, embeds as ![[file]], properties as YAML frontmatter. If the kepano/obsidian-skills plugin is installed, prefer its canonical Obsidian Markdown reference for syntax guidance. Otherwise, follow the guidance in this skill.
Delta Tracking
Before ingesting any file, check raw/.manifest.json to avoid re-processing unchanged sources.
# Check if manifest exists
[ -f raw/.manifest.json ] && echo "exists" || echo "no manifest yet"Manifest format (create if missing):
{
"sources": {
"raw/articles/article-slug-2026-04-08.md": {
"hash": "abc123",
"ingested_at": "2026-04-08",
"pages_created": ["wiki/sources/article-slug.md", "wiki/entities/Person.md"],
"pages_updated": ["wiki/index.md"]
}
}
}Before ingesting a file:
- Compute a hash:
md5sum [file] | cut -d' ' -f1(orsha256sumon Linux). - Check if the path exists in
.manifest.jsonwith the same hash. - If hash matches, skip. Report: "Already ingested (unchanged). Use
forceto re-ingest." - If missing or hash differs, proceed with ingest.
After ingesting a file:
- Record
{hash, ingested_at, pages_created, pages_updated}in.manifest.json. - Write the updated manifest back.
Skip delta checking if the user says "force ingest" or "re-ingest".
URL Ingestion
Trigger: user passes a URL starting with https://.
Steps:
- Fetch the page using WebFetch.
- Clean (optional): if
defuddleis available (which defuddle 2>/dev/null), rundefuddle [url]to strip ads, nav, and clutter. Typically saves 40-60% tokens. Fall back to raw WebFetch output if not installed. - Derive slug from the URL path (last segment, lowercased, spaces→hyphens, strip query strings).
- Save to
raw/articles/[slug]-[YYYY-MM-DD].mdwith a frontmatter header:--- source_url: [url] fetched: [YYYY-MM-DD] --- - Proceed with Single Source Ingest starting at step 2 (file is now in
raw/).
Image / Vision Ingestion
Trigger: user passes an image file path (.png, .jpg, .jpeg, .gif, .webp, .svg, .avif).
Steps:
- Read the image file using the Read tool. Claude can process images natively.
- Describe the image contents: extract all text (OCR), identify key concepts, entities, diagrams, and data visible in the image.
- Save the description to
raw/images/[slug]-[YYYY-MM-DD].md:--- source_type: image original_file: [original path] fetched: YYYY-MM-DD --- # Image: [slug] [Full description of image contents, transcribed text, entities visible, etc.] - Copy the image to
_attachments/images/[slug].[ext]if it's not already in the vault. - Proceed with Single Source Ingest on the saved description file.
Use cases: whiteboard photos, screenshots, diagrams, infographics, document scans.
Single Source Ingest
Trigger: user drops a file into raw/ or pastes content.
Steps:
- Read the source completely. Do not skim.
- Discuss key takeaways with the user. Ask: "What should I emphasize? How granular?" Skip this if the user says "just ingest it."
- Create source summary in
wiki/sources/. Use the source frontmatter schema fromreferences/frontmatter.md. - Create or update entity pages for every person, org, product, and repo mentioned. One page per entity.
- Create or update concept pages for significant ideas and frameworks.
- Update relevant domain page(s) and their
_index.mdsub-indexes. - Update
wiki/overview.mdif the big picture changed. - Update
wiki/index.md. Add entries for all new pages. - Update
wiki/hot.mdwith this ingest's context. - Append to
wiki/log.md(new entries at the TOP):## [YYYY-MM-DD] ingest | Source Title - Source: `raw/articles/filename.md` - Summary: [[Source Title]] - Pages created: [[Page 1]], [[Page 2]] - Pages updated: [[Page 3]], [[Page 4]] - Key insight: One sentence on what is new. - Check for contradictions. If new info conflicts with existing pages, add
> [!contradiction]callouts on both pages. - Move the original out of the inbox. After the wiki pages are written, move the source file from
raw/to_sources/<category>/(choose the category subfolder by kind —articles/,research/,specs/,notes/, ...), or to_archive/if it is large (>100 KB) or low-value.raw/is an inbox and should end empty once everything is processed. - Sync the qkb index. Run
qkb updateso BM25, graph link extraction, and the question-cache used byvault-query-qkbpick up everything you just wrote. See Index Sync below.
Batch Ingest
Trigger: user drops multiple files or says "ingest all of these."
Steps:
- List all files to process. Confirm with user before starting.
- Process each source following the single ingest flow. Defer cross-referencing between sources until step 3.
- After all sources: do a cross-reference pass. Look for connections between the newly ingested sources.
- Update index, hot cache, and log once at the end (not per-source).
- Report: "Processed N sources. Created X pages, updated Y pages. Here are the key connections I found."
- Sync the qkb index once at the end (not per-source). See Index Sync below.
Batch ingest is less interactive. For 30+ sources, expect significant processing time. Check in with the user after every 10 sources.
Context Window Discipline
Token budget matters. Follow these rules during ingest:
- Read
wiki/hot.mdfirst. If it contains the relevant context, don't re-read full pages. - Read
wiki/index.mdto find existing pages before creating new ones. - Read only 3-5 existing pages per ingest. If you need 10+, you are reading too broadly.
- Use PATCH for surgical edits. Never re-read an entire file just to update one field.
- Keep wiki pages short. 100-300 lines max. If a page grows beyond 300 lines, split it.
- Use search (
/search/simple/) to find specific content without reading full pages.
Contradictions
[!note] Custom callout dependency The
[!contradiction]callout type used below is a custom callout defined in.obsidian/snippets/vault-colors.css(auto-installed by/wikiscaffold). It renders with reddish-brown styling and an alert-triangle icon when the snippet is enabled. If the snippet is missing, Obsidian falls back to default callout styling, so the page still works without the visual flourish. See [[skills/wiki/references/css-snippets.md]] for the four custom callouts (contradiction,gap,key-insight,stale).
When new info contradicts an existing wiki page:
On the existing page, add:
> [!contradiction] Conflict with [[New Source]]
> [[Existing Page]] claims X. [[New Source]] says Y.
> Needs resolution. Check dates, context, and primary sources.On the new source summary, reference it:
> [!contradiction] Contradicts [[Existing Page]]
> This source says Y, but existing wiki says X. See [[Existing Page]] for details.Do not silently overwrite old claims. Flag and let the user decide.
Naming Conventions
Obsidian resolves wikilinks by matching the exact filename (without extension). Mismatched names create broken links.
| Page Type | Filename Convention | Example | Wikilink |
| Entity | Title Case with spaces | Universal Weather.md | [[Universal Weather]] |
| Concept | Title Case with spaces | Missing Middle.md | [[Missing Middle]] |
| Domain | Title Case with spaces | Competitive Landscape.md | [[Competitive Landscape]] |
| Comparison | Title Case with spaces | Us vs Universal Weather.md | [[Us vs Universal Weather]] |
| Question | Title Case with spaces | Research NOTAM Reform.md | [[Research NOTAM Reform]] |
| Source | kebab-case (slug) | competitor-research-deep-dive.md | [[competitor-research-deep-dive|Display Name]] |
| Meta | lowercase | index.md, log.md, hot.md | [[index]], [[log]], [[hot]] |
Why the split? Entities, concepts, domains, comparisons, and questions are referenced frequently with natural-language wikilinks ([[Missing Middle]]). The filename must match exactly. Source summaries are referenced less frequently and use pipe syntax for display names ([[some-slug|Readable Title]]), so kebab-case slugs are fine.
The rule: If the wikilink text is the page name people type, the filename must match it exactly. If the wikilink always uses pipe syntax, kebab-case is acceptable.
Index Sync
After every ingest (single or batch), the qkb retrieval index needs to know about the new/changed pages. Run this once at the end of the ingest:
qkb updateWhat this does:
- Walks the vault and diffs file content hashes against the index — only changed/new files get re-processed.
- Rebuilds BM25 entries for changed docs so lexical search picks them up.
- Auto-runs
graph linkinternally — extracts[[wikilinks]],![[embeds]], and frontmattertypes into the typed graph (LINKS_TO / EMBEDS / REFERENCES edges). This is what the--graphretrieval mode invault-query-qkbrelies on. - Idempotent: re-running with no vault changes is a near-instant no-op.
Latency: typically 1–5 seconds for a handful of new pages, 30–60 seconds for a batch of 50+ new files. Print the line to the user so they can confirm freshness.
Vector embeddings (the slow step) — NOT automatic
qkb update only refreshes lexical + graph state. New vector embeddings for the new docs are a separate, slower step (uses local LLM, 5–15 minutes for 100+ docs):
qkb embedDo NOT run embed automatically inside the ingest skill. Two reasons:
- Lexical + graph alone is usually enough. The reranker in
qkb queryscores against fresh chunk text from the FTS5 index regardless of vector freshness, so newly-ingested docs still surface correctly on most queries. They're slightly weaker on pure-semantic matches until embeddings catch up. - It's heavy. A user doing 20 small ingests across a session shouldn't trigger 20 model-load + embed cycles.
Instead, after the ingest report, suggest to the user:
"Lexical + graph synced. Run
qkb embedwhen you want the new pages' vectors caught up (5-15 min, optional)."
When qkb update fails
Don't block the ingest report on this. If qkb update returns non-zero:
- Log the error briefly: "qkb index sync failed:
<one-line>. Ingest itself succeeded; retry withqkb updateonce resolved." - Continue with the rest of the ingest output.
Common causes: qkb not on PATH (user hasn't installed @agent-ops/qkb globally), GraphQLite extension missing, or a transient SQLite lock from a running MCP daemon.
What Not to Do
raw/is an inbox: after processing, move the original to_sources/<category>/(or_archive/), leavingraw/empty. Do not treatraw/as permanent storage.- Do not modify the archived originals in
_sources/or_archive/. Those are the immutable source documents. - Do not create duplicate pages. Always check the index and search before creating.
- Do not skip the log entry. Every ingest must be recorded.
- Do not skip the hot cache update. It is what keeps future sessions fast.
- Do not skip the qkb index sync. Future
vault-query-qkbcalls will miss what you just wrote. - Do not use kebab-case filenames for entities, concepts, domains, comparisons, or questions. These must match wikilink text exactly (Title Case with spaces).
- Do not run
qkb embedautomatically inside an ingest. Suggest it; let the user trigger.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

