Install
$ agentstack add skill-markfive-proto-obsidian-brain-vault-ingest ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Ingest Pack — "Get this into my knowledge base"
Ingest is the front door of the Karpathy-style LLM knowledge base. Raw source material lands in raw/, gets lightly cleaned, tagged, and staged. A later compile pass turns raw/ into a structured wiki.
Directory convention
This pack assumes the vault has (or will create) this layout:
/
raw/ # immutable source dumps
articles/
papers/
repos/
images/
transcripts/
datasets/
compiled/ # LLM-written wiki (concept pages, summaries, MOCs)
outputs/ # generated artifacts (answers, slides, charts)
ingest writes to raw/. It never touches compiled/ — that's compile's job.
Commands
/clip — Ingest a web article or URL
When the user invokes /clip or pastes a URL:
- Fetch the page. Prefer Reader-mode text extraction:
- Try
spiderCLI if installed (spider --readability). - Fall back to
curl+ a markdownify pass. - For paywalled content, ask the user to paste the text.
- Download referenced images into
raw/images//with stable filenames. - Rewrite image links in the markdown to local paths.
- Build frontmatter:
``yaml --- title: source_url: source_type: article ingested_at: author: tags: [raw, needs-compile] --- ``
- Save to
raw/articles/-.mdusingobs note create. - Report back: path written, word count, image count, 2-line summary.
- Do NOT write to
compiled/. Just queue it.
/paper — Ingest an arXiv / PDF paper
When the user invokes /paper :
- If URL, download with
curl -L -o /tmp/paper.pdf. - Extract text with
pdftotext(ormutool draw,pdfplumber). - Pull metadata (title, authors, abstract, year) from arXiv API if URL, otherwise from first page.
- Extract figures to
raw/images//fig-N.png(usepdfimagesorpdftoppm). - Build markdown with sections: Abstract, Key claims, Methods, Results, Open questions.
- Frontmatter:
``yaml --- title: authors: [] year: source_url: source_type: paper arxiv_id: tags: [raw, paper, needs-compile] --- ``
- Save to
raw/papers/--.md.
/repo — Ingest a GitHub repo
When the user invokes /repo :
- Fetch README, key source files, and repo metadata with
ghCLI. - Build a structured note: What it is, Key files, Install, Usage examples, Dependencies, License, Stars/activity.
- Extract any diagrams/images from the README to
raw/images//. - Save to
raw/repos/-.mdwith tags[raw, repo, needs-compile].
/transcript — Ingest a YouTube / podcast transcript
When the user invokes /transcript :
- Prefer
yt-dlp --write-auto-sub --skip-downloadfor auto-captions. - Clean the SRT: remove timestamps, collapse speaker turns, fix obvious punctuation.
- Frontmatter: title, channel, duration, published, source_url, tags
[raw, transcript, needs-compile]. - Save to
raw/transcripts/-.md. - Optionally (ask the user) run summarization to produce a TL;DR section at the top — but preserve full transcript below.
/image — Ingest a reference image with captioning
When the user invokes /image (or drops an image):
- Save image to
raw/images/standalone/-.. - Generate a caption describing the image (you can see it — use your vision).
- Create a companion note
raw/images/standalone/.mdwith:
- Image embed
![[.png]] - Caption
- Detected text (OCR if relevant)
- Proposed tags
- Source / context from the user
/dataset — Ingest a CSV / JSON dataset pointer
When the user invokes /dataset :
- For large datasets, do NOT copy into the vault. Store a pointer note.
- Sample first 20 rows; embed as a markdown table preview.
- Note: schema, column types, row count, date range, source, license.
- Save to
raw/datasets/.mdwith tags[raw, dataset, needs-compile].
/batch — Batch ingest a list
When the user invokes /batch (one URL or path per line):
- Read the file.
- For each entry, detect type (URL → /clip or /paper; local path → /image or /dataset; GitHub URL → /repo).
- Run each ingest sequentially, collecting successes and failures.
- Report a summary table.
Guardrails
- Never modify existing
raw/files. If a duplicate slug exists, append-2. - Always keep the full original source text. Compression happens in
compile, not here. - Log every ingest by appending one line to
raw/INGEST-LOG.md:
```
- 2026-04-17 14:22 article raw/articles/2026-04-17-karpathy-kb.md "Building a personal KB with LLMs"
`` This log is compile`'s input signal.
- Image hygiene: strip EXIF PII (
exiftool -all=), keep dimensions reasonable (max 2400px wide).
Tools this skill expects
| Tool | Purpose | Fallback | |---|---|---| | obs | Write notes into vault | Direct file write | | curl / wget | Fetch URLs | — | | spider (optional) | Reader-mode extraction | curl + strip tags | | yt-dlp | Transcripts | Manual paste | | pdftotext / pdfimages | PDF extraction | mutool | | gh | Repo metadata | curl to GitHub API | | exiftool (optional) | Image privacy | skip |
When to hand off
Once a raw file is written, tell the user: "Ingested. Run /compile to fold this into the wiki." Don't auto-compile — the user controls the compile cadence to avoid thrash.
Related skills (same pack)
[[compile]]— turnsraw/intocompiled/wiki[[qa]]— queries the compiled wiki[[lint]]— health-checks the whole KB[[render]]— renders wiki content as slides/charts/reports
Attribution
Pack inspired by Andrej Karpathy's "personal knowledge bases using LLMs" workflow: raw → compiled wiki → Q&A → outputs → lint loop.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: markfive-proto
- Source: markfive-proto/obsidian-brain-vault
- License: MIT
- Homepage: https://supermarcus.ai/brain-os
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.