obs-research-setup
CLAUDE.md0 starsChanged 2 months agoMITView on GitHub
You (Claude) are the programmer. The human reads and steers in Obsidian; you write and refactor the wiki. Human rarely edits wiki pages by hand. Human drops papers and asks questions. You compile knowledge. 1. Human drops foo.pdf in vault root. ./papers.sh (or ./papers.sh --watch) runs docling → foo/foo.pdf, foo/foo.md, foo/foo_artifacts/*.png, then commits. 2. /ingest — you compile pending papers (tools/wiki.py pending). 3. /lint after ingest, and periodically. 4. /query for questions; file valuable answers back as wiki/syntheses/. Docling lives…
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
14 rules. About 0 are common, 1 is distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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
- Very specific: line 49
Links: always vault-relative wikilinks without extension: [[wiki/concepts/foo]], [[foo/foo]].
- Very specific: line 50
Never bare basenames (paper foo/foo.md and any page named foo would collide).
- Very specific: line 55
Provenance: every non-trivial claim carries a link back to its source page, and source pages cite section/figure/table of the raw paper …
- Very specific: line 58
DRY: before creating a concept/entity, search wiki/ for it (and aliases).
- Very specific: line 59
Add aliases: in frontmatter for synonyms.
- Very specific: line 60
Contradictions: don't silently overwrite. Add a ## Contradictions section citing both sources.
- Very specific: line 61
No orphans: every page needs ≥1 inbound link and an entry in wiki/index.md.
- Very specific: line 70
Create/update 5–15 concept & entity pages.
- Very specific: line 71
Update wiki/index.md; append to wiki/log.md.
- Very specific: line 75
Read wiki/index.md first, then relevant pages, drill to raw paper only when the wiki lacks detail.
- Very specific: line 79
Run tools/wiki.py lint; fix errors.
- Very specific: line 86
Don't touch .obsidian/ plugin data or .venv*/.
- Distinctive: line 87
If an Obsidian LLM-wiki plugin is installed, keep its auto-ingest OFF: Claude is the ingest engine.
- Very specific: line 88
Commit after each ingest, small and atomic.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Research Vault — Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase.
You (Claude) are the programmer. The human reads and steers in Obsidian; you write and refactor the wiki. Human rarely edits wiki pages by hand. Human drops papers and asks questions. You compile knowledge.
Analogy → concrete mapping
| Software | Here |
| IDE | Obsidian: graph = call graph, backlinks = find-usages, Dataview = queries |
| Programmer | Claude Code, using /ingest, /query, /lint |
| Codebase | wiki/ (sources, concepts, entities, syntheses) |
| Third-party dependency | Papers: <stem>/<stem>.pdf + <stem>.md + <stem>_artifacts/ (immutable) |
| Build / compile | /ingest (paper → wiki pages) |
| Linter / CI | tools/wiki.py lint (exit 1 = build broken) |
| Entrypoint / README | wiki/index.md |
| Commit history | wiki/log.md (append-only) + git |
| Style guide / types | this file + templates/ |
| Tests | /query answers must cite wiki pages; ungrounded claims = bug |
Layout
papers.sh docling pipeline: PDF in root -> <stem>/ folder (pdf, md, artifacts), git-committed
<stem>/ RAW paper. Never edit the .md/.pdf/artifacts. It is the "vendored dependency".
wiki/index.md catalog of every wiki page, one line each. Update on every change.
wiki/log.md append-only: `## [YYYY-MM-DD] ingest|query|lint | title` + pages touched
wiki/sources/<slug>.md one page per paper: summary, claims, method, results, limitations
wiki/concepts/<slug>.md ideas, methods, benchmarks, metrics (cross-paper)
wiki/entities/<slug>.md people, orgs, models, systems, datasets
wiki/syntheses/<slug>.md cross-paper comparisons, filed answers to good questions
templates/ page skeletons (copy, don't invent structure)
tools/wiki.py `pending` and `lint`
.claude/commands/ /ingest /query /lintPipeline
- Human drops
foo.pdfin vault root../papers.sh(or./papers.sh --watch) runs docling →foo/foo.pdf,foo/foo.md,foo/foo_artifacts/*.png, then commits. /ingest— you compile pending papers (tools/wiki.py pending)./lintafter ingest, and periodically./queryfor questions; file valuable answers back aswiki/syntheses/.
Docling lives in .venv-docling/ (created by ./setup.sh). Keep it separate from any project .venv.
Coding standards for wiki pages
- Links: always vault-relative wikilinks without extension:
[[wiki/concepts/foo]],[[foo/foo]]. Never bare basenames (paperfoo/foo.mdand any page namedfoowould collide). - Slugs: lowercase-kebab, meaningful. Rename opaque paper folders (e.g.
9ad8a465-…) to a title slug withgit mvBEFORE writing the source page, so the raw link is stable. - Frontmatter required (lint enforces): source →
type, raw, created, tags; others →type, created, updated, sources, tags.type∈ source|concept|entity|synthesis.sources= list of[[wiki/sources/x]]. - Provenance: every non-trivial claim carries a link back to its source page, and source pages cite
section/figure/table of the raw paper (
[[foo/foo#3 Method]], artifact images via![[foo/foo_artifacts/image_000003_….png]]). Numbers copied from a paper must match it exactly. Unsure → say "unclear in source", never guess. - DRY: before creating a concept/entity, search
wiki/for it (and aliases). Update existing page instead of duplicating. Addaliases:in frontmatter for synonyms. - Contradictions: don't silently overwrite. Add a
## Contradictionssection citing both sources. - No orphans: every page needs ≥1 inbound link and an entry in
wiki/index.md. - Write for reuse: dense, factual, no filler. Prefer tables for comparisons.
Workflows
Ingest (compile)
tools/wiki.py pending. If PDFs sit in root unconverted, run./papers.shfirst.- For each paper: read
<stem>/<stem>.mdfully (look at key figures in_artifactsif they matter). - Rename folder to slug if opaque. Create
wiki/sources/<slug>.mdfromtemplates/source.md. - Create/update 5–15 concept & entity pages. Each update = add the new source to
sources, bumpupdated, add the new info. - Update
wiki/index.md; append towiki/log.md. tools/wiki.py lintmust exit 0. Fix, then commit:git add -A && git commit -m "ingest: <slug>".
Query (run)
Read wiki/index.md first, then relevant pages, drill to raw paper only when the wiki lacks detail.
Answer with citations to wiki pages. If the answer is reusable, file it under wiki/syntheses/ and log it.
Lint (CI)
Run tools/wiki.py lint; fix errors. Then judgment checks: stale claims superseded by newer papers,
concepts mentioned in 3+ pages without their own page, missing cross-links, contradictions unflagged.
Log the run.
Guardrails
- Raw paper folders are read-only, except the rename-to-slug step at first ingest.
- Don't touch
.obsidian/plugin data or.venv*/. - If an Obsidian LLM-wiki plugin is installed, keep its auto-ingest OFF: Claude is the ingest engine.
- Commit after each ingest, small and atomic. Never rewrite
wiki/log.mdhistory.
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.

