agentleFS
hrshx3o5o6hrshx3o5o6/obs-research-setup/CLAUDE.md

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
  1. Very specific:

    Links: always vault-relative wikilinks without extension: [[wiki/concepts/foo]], [[foo/foo]].

    line 49
  2. Very specific:

    Never bare basenames (paper foo/foo.md and any page named foo would collide).

    line 50
  3. Very specific:

    Provenance: every non-trivial claim carries a link back to its source page, and source pages cite section/figure/table of the raw paper …

    line 55
  4. Very specific:

    DRY: before creating a concept/entity, search wiki/ for it (and aliases).

    line 58
  5. Very specific:

    Add aliases: in frontmatter for synonyms.

    line 59
  6. Very specific:

    Contradictions: don't silently overwrite. Add a ## Contradictions section citing both sources.

    line 60
  7. Very specific:

    No orphans: every page needs ≥1 inbound link and an entry in wiki/index.md.

    line 61
  8. Very specific:

    Create/update 5–15 concept & entity pages.

    line 70
  9. Very specific:

    Update wiki/index.md; append to wiki/log.md.

    line 71
  10. Very specific:

    Read wiki/index.md first, then relevant pages, drill to raw paper only when the wiki lacks detail.

    line 75
  11. Very specific:

    Run tools/wiki.py lint; fix errors.

    line 79
  12. Very specific:

    Don't touch .obsidian/ plugin data or .venv*/.

    line 86
  13. Distinctive:

    If an Obsidian LLM-wiki plugin is installed, keep its auto-ingest OFF: Claude is the ingest engine.

    line 87
  14. Very specific:

    Commit after each ingest, small and atomic.

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

SoftwareHere
IDEObsidian: graph = call graph, backlinks = find-usages, Dataview = queries
ProgrammerClaude Code, using /ingest, /query, /lint
Codebasewiki/ (sources, concepts, entities, syntheses)
Third-party dependencyPapers: <stem>/<stem>.pdf + <stem>.md + <stem>_artifacts/ (immutable)
Build / compile/ingest (paper → wiki pages)
Linter / CItools/wiki.py lint (exit 1 = build broken)
Entrypoint / READMEwiki/index.md
Commit historywiki/log.md (append-only) + git
Style guide / typesthis 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 /lint

Pipeline

  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 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 (paper foo/foo.md and any page named foo would collide).
  • Slugs: lowercase-kebab, meaningful. Rename opaque paper folders (e.g. 9ad8a465-…) to a title slug with git mv BEFORE 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. Add aliases: in frontmatter for synonyms.
  • Contradictions: don't silently overwrite. Add a ## Contradictions section 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)

  1. tools/wiki.py pending. If PDFs sit in root unconverted, run ./papers.sh first.
  2. For each paper: read <stem>/<stem>.md fully (look at key figures in _artifacts if they matter).
  3. Rename folder to slug if opaque. Create wiki/sources/<slug>.md from templates/source.md.
  4. Create/update 5–15 concept & entity pages. Each update = add the new source to sources, bump updated, add the new info.
  5. Update wiki/index.md; append to wiki/log.md.
  6. tools/wiki.py lint must 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.md history.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.