agentleFS
luffysolution-svgluffysolution-svg/omnischolar/skills/obsidian-literature-base/SKILL.md

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.

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

    Create a browse-focused catalogue over existing OmniScholar publications.

    line 9
  2. Distinctive:

    Only for papers without prefixed topics, optionally assign 1–3 concise AI topics from title and abstract.

    line 17
  3. Distinctive:

    Never write AI topics back to Zotero.

    line 18
  4. Very specific:

    When AI topics are needed, save a temporary JSON mapping described in references/schema.md.

    line 19
  5. Very specific:

    When the user wants a knowledge Wiki, add --wiki.

    line 20
  6. Very specific:

    Verify the generated .base is valid YAML and each generated literature-index.md links to the correct MinerU document, Zotero reading …

    line 21
  7. Distinctive:

    Do not delete generated topic pages that fall below the current threshold.

    line 44
  8. Distinctive:

    Read references/schema.md before changing generated properties, topic precedence, view definitions, or overwrite behavior.

    line 60
  9. Very specific:

    Treat MinerU Markdown, metadata.json, assets, copied PDFs, and source/zotero-reading-record.md as managed source artifacts.

    line 64
  10. Very specific:

    Do not create research-state.md or workflow properties such as reading status, priority, or rating.

    line 65
  11. Very specific:

    Keep English property keys and Chinese displayName labels for stable formulas and a Chinese interface.

    line 68

≈ “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.

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

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

  1. Confirm the Obsidian vault root that contains OmniScholar publication folders and their metadata.json files.
  2. Discover valid publication sidecars (schemaVersion: 1 with publication and zotero objects). Treat the MinerU Markdown, Zotero reading record, and images in one publication directory as one paper.
  3. 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.
  4. When AI topics are needed, save a temporary JSON mapping described in references/schema.md. Then run scripts/build_literature_base.py with the vault root and optional mapping.
  5. 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.
  6. Verify the generated .base is valid YAML and each generated literature-index.md links to the correct MinerU document, Zotero reading record, cover, image assets, and eligible topic pages.
  7. 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> --wiki

The 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/<主题>.md for 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, and source/zotero-reading-record.md as managed source artifacts. Do not edit them.
  • Do not create research-state.md or 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-base only 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 displayName labels for stable formulas and a Chinese interface.

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.