/scrinium:importfrom scrinium
Imports papers from Endnote (XML/RIS), Zotero (Web API or local SQLite), or attaches PDFs to existing entries. Includes PDF matching, MinerU conversion, and metadata enrichment.
Ships in scrinium. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
支持从 Endnote / Zotero 批量导入,或为已入库论文单独补充 PDF(attach-pdf)。
别名:
import-endnote/import-zotero分别是import endnote/import zotero的隐藏别名,行为完全一致;新工作请使用import子命令。
支持 Endnote 导出的 XML 和 RIS 格式文件。
# 完整导入:元数据 + PDF 匹配 + MinerU 批量转换 + abstract 补全(纯正则)+ index
scrinium import endnote <file.xml>
# 多文件导入
scrinium import endnote file1.xml file2.ris
# 仅导入元数据和 PDF,跳过 MinerU 转换和后处理
scrinium import endnote <file.xml> --no-convert
# 预览模式
scrinium import endnote <file.xml> --dry-run
# 离线模式
scrinium import endnote <file.xml> --no-api
对 Endnote XML 文件,自动解析 internal-pdf:// 链接,从 <library>.Data/PDF/ 目录匹配 PDF:
默认行为(不带 --no-convert)下,导入完成后自动执行:
convert_pdfs_cloud_batch() 批量转换(批次大小由 config.yaml ingest.mineru_batch_size 控制,默认 20)使用 --no-convert 跳过以上全部后处理(仅导入元数据 + PDF 复制 + index)。
导入只产出规则可得的元数据。需要 TOC 和结论时,由 agent 接管:
scrinium enrich toc --all(纯规则),规则未命中的按 hint 直写/enrich skill 的批量工作流——并行 subagent 读 L4 提炼 → 直写 meta.json.l3_conclusion(+l3_extraction_method: agent)→ scrinium index支持 Web API 和本地 SQLite 两种模式。
# 列出 collections
scrinium import zotero --api-key KEY --library-id ID --list-collections
# 完整导入
scrinium import zotero --api-key KEY --library-id ID
# 仅导入指定 collection
scrinium import zotero --api-key KEY --library-id ID --collection COLLECTION_KEY
# 导入后将 collections 创建为工作区
scrinium import zotero --api-key KEY --library-id ID --import-collections
scrinium import zotero --local /path/to/zotero.sqlite
在 config.local.yaml 中配置 Zotero 凭据:
zotero:
api_key: "your-zotero-api-key"
library_id: "your-library-id"
scrinium attach-pdf <paper-id> <path/to/paper.pdf>
自动调用 MinerU 转换 PDF → markdown,补全缺失的 abstract(纯正则),增量更新 index。
对已入库但缺少 paper.md 的论文(如首次导入时用了 --no-convert),可通过 Python 调用批量转换:
from scrinium.config import load_config
from scrinium.ingest.pipeline import batch_convert_pdfs
cfg = load_config()
stats = batch_convert_pdfs(cfg)
自动扫描 data/papers/ 中有 PDF 无 paper.md 的论文,云端模式使用批量 API 转换,完成后运行 abstract backfill(纯正则)+ index。
用户说:"我把 Endnote 库导出来了,帮我导入"
→ 执行 import endnote <file.xml>
用户说:"从 Zotero 导入我的文献库"
→ 执行 import zotero --local /path/to/zotero.sqlite(本地模式;有 API 凭据时用 Web API 模式)
用户说:"先看看会导入什么,别真动"
→ 执行 import endnote <file.xml> --dry-run
用户说:"只导元数据,PDF 先不转"
→ 执行 import endnote <file.xml> --no-convert
用户说:"这篇论文刚拿到 PDF,帮我补上"
→ 执行 attach-pdf <paper-id> <path/to/paper.pdf>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
38 skills in this plugin
/arxivUse when the user wants to browse arXiv preprints, search arXiv directly, fetch a PDF by arXiv ID or URL, or send a preprint straight into the ingest pipeline./auditAudit paper data quality in the knowledge base and take over repairs. Rule-based checks surface missing fields, filename issues, DOI duplicates, and title mismatches with per-issue fix hints; agent/subagents then verify against the original text and fix meta.json directly. Use when the user wants to check data quality, find problems, or fix metadata issues./bioinformaticsUse when working on bioinformatics toolchains such as alignment, variant calling, phylogenetics, or protein-structure analysis, especially when the agent must route across BLAST, minimap2, samtools, bcftools, MAFFT, IQ-TREE, or ESMFold.npx claudepluginhub wszqkzqk/scrinium --plugin scriniumOther plugins' skills for the same job