obsidian-literature-base
Skill4 starsChanged 2 months agoMITView on GitHub
Build and refresh an Obsidian Base and optional topic Wiki for OmniScholar MinerU publications and Zotero reading records, including bibliographic views, prefixed or AI-assisted topics, cover images, foldable image galleries, and preserved topic synthesis pages. Use when organizing multiple OmniScholar literature outputs in an Obsidian vault; do not use for reading-status workflows or modifying Zotero.
In this repository9 other files it gives its agents.
- academic-citationSkill
- chemical-dataSkill
- literature-readingSkill
- materials-projectSkill
- omnischolarSkill
- paper-readingSkill
- scholar-searchSkill
- scientific-figureSkill
- zotero-researchSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Create a browse-focused catalogue over existing OmniScholar publications.
- Distinctive: line 17
Only for papers without prefixed topics, optionally assign 1–3 concise AI topics from title and abstract.
- Distinctive: line 18
Never write AI topics back to Zotero.
- Very specific: line 19
When AI topics are needed, save a temporary JSON mapping described in references/schema.md.
- Very specific: line 20
When the user wants a knowledge Wiki, add --wiki.
- Very specific: line 21
Verify the generated .base is valid YAML and each generated literature-index.md links to the correct MinerU document, Zotero reading …
- Distinctive: line 44
Do not delete generated topic pages that fall below the current threshold.
- Distinctive: line 60
Read references/schema.md before changing generated properties, topic precedence, view definitions, or overwrite behavior.
- Very specific: line 64
Treat MinerU Markdown, metadata.json, assets, copied PDFs, and source/zotero-reading-record.md as managed source artifacts.
- Very specific: line 65
Do not create research-state.md or workflow properties such as reading status, priority, or rating.
- Very specific: line 68
Keep English property keys and Chinese displayName labels for stable formulas and a Chinese interface.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Build an Obsidian literature base
Create a browse-focused catalogue over existing OmniScholar publications. Do not upload PDFs, re-run MinerU, or write to Zotero for this workflow.
Workflow
- Confirm the Obsidian vault root that contains OmniScholar publication folders and their
metadata.jsonfiles. - Discover valid publication sidecars (
schemaVersion: 1withpublicationandzoteroobjects). Treat the MinerU Markdown, Zotero reading record, and images in one publication directory as one paper. - Derive topics in this order:
- Extract Zotero tags prefixed with
topic/or主题/, stripping the prefix. - Only for papers without prefixed topics, optionally assign 1–3 concise AI topics from title and abstract. Read the MinerU body only when those fields are insufficient.
- Never write AI topics back to Zotero.
- Extract Zotero tags prefixed with
- When AI topics are needed, save a temporary JSON mapping described in references/schema.md. Then run
scripts/build_literature_base.pywith the vault root and optional mapping. - When the user wants a knowledge Wiki, add
--wiki. Generate topic pages only for topics shared by at least two papers unless the user chooses another threshold. - Verify the generated
.baseis valid YAML and each generatedliterature-index.mdlinks to the correct MinerU document, Zotero reading record, cover, image assets, and eligible topic pages. - Report the Base path, indexed paper count, topic-source counts, Wiki page count, stale Wiki pages, and any papers without topics or images.
Resolve the deterministic script relative to this SKILL.md; do not assume the user's current directory is the Skill directory. Use it instead of reconstructing index notes or Base YAML manually:
python <skill-dir>/scripts/build_literature_base.py <vault-root>
python <skill-dir>/scripts/build_literature_base.py <vault-root> --ai-topics <topics.json>
python <skill-dir>/scripts/build_literature_base.py <vault-root> --wikiThe script creates one generated literature-index.md beside each publication and Literature.base at the vault root. The index is a presentation page, not a reading-state record. It contains source-derived properties and a collapsed gallery of every MinerU image. Re-running the script refreshes only files marked as generated by this Skill.
Optional topic Wiki
With --wiki, also generate:
文献知识库.md, which embeds the按主题and文献总表Base views and links every eligible topic page.Literature Wiki/Topics/<主题>.mdfor topics shared by at least two papers.- Topic Wikilinks in each related
literature-index.md, so Backlinks and Graph connect papers to concepts.
Each topic page has an automatically refreshed 相关文献 section and a separately marked manual section for 定义与边界, 核心研究问题, 当前共识, 尚存争议, 研究空白, and 相关主题. Preserve the manual section, aliases, and review status during refreshes. AI may draft that section only from reviewed evidence and must link claims to supporting literature-index notes. Do not present title/abstract-only synthesis as established consensus.
Do not delete generated topic pages that fall below the current threshold. Stop listing them in the hub, report them as stale, and leave deletion to an explicit user request.
Required views
Generate exactly these browse-oriented views unless the user asks for a change:
文献总表原始产物按年份按作者按期刊按主题按标签
按主题 is a Cards view with one cover image per paper. Native Base cards do not provide a collapsible multi-image region; the card opens the generated index page, where 全部图片 is a collapsed callout containing all previewable images.
Read references/schema.md before changing generated properties, topic precedence, view definitions, or overwrite behavior.
Safety and update behavior
- Treat MinerU Markdown,
metadata.json, assets, copied PDFs, andsource/zotero-reading-record.mdas managed source artifacts. Do not edit them. - Do not create
research-state.mdor workflow properties such as reading status, priority, or rating. - Refuse to overwrite an existing Base, index note, Wiki hub, or topic page that lacks this Skill's generated marker. Use
--force-baseonly when the user explicitly asks to replace a hand-authored Base. - Preserve source tags separately from normalized topics. Prefixed Zotero topics take precedence over AI suggestions.
- Keep English property keys and Chinese
displayNamelabels for stable formulas and a Chinese interface.
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.

