/scrinium:ingestfrom scrinium
Processes academic papers, patents, theses, documents, and proceedings from inbox directories into a knowledge base via a configurable pipeline. Handles PDF, Office, and Markdown files with regex-based metadata extraction.
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.
将 inbox 中的 PDF、Office 文档(DOCX/XLSX/PPTX)或 Markdown 文件处理入库。支持论文、专利、学位论文、一般文档和论文集(proceedings)。
框架边界:元数据提取只有纯正则一条路径(RegexExtractor),框架内无任何 LLM 调用。规则失败或低置信时框架会输出 hint: 前缀的交接提示——见到 hint 即由 agent 按本 skill 的工作流接管(读原文判定、修元数据),不要让用户手工处理。
| 格式 | 放入目录 | 处理方式 |
|---|---|---|
.pdf | data/inbox/ 或 data/inbox-doc/ | MinerU 转 Markdown |
.pdf / .md | data/inbox-patent/ | 专利文献(按公开号去重) |
.pdf / .md | data/inbox-thesis/ | 学位论文直接入库通道(跳过 DOI 去重) |
.pdf / .md | data/inbox-proceedings/ | 论文集准备流程(先生成 proceeding.md + split_candidates.json) |
.docx .xlsx .pptx | data/inbox-doc/ | MarkItDown 转 Markdown |
.md | 任意 inbox | 直接入库(跳过转换) |
根据用户意图选择预设:
ingest 预设(= mineru, extract, dedup, ingest, index)full 与 ingest 等价(= mineru, extract, dedup, ingest, index)reindex 预设(= index)enrich 预设(= abstract, toc,均为纯规则步骤)注意:
inbox-doc/始终使用专用步骤office_convert, mineru, extract_doc, ingest(extract_doc 为纯规则),不受 preset 影响。inbox-patent/和inbox-thesis/也有各自的固定流程。preset 中的 papers 级步骤(abstract, toc)和 global 级步骤(index)在处理完所有 inbox 后统一执行。路由:只需要重建索引、不涉及 inbox 摄入时,转交
/indexskill(scrinium index,与pipeline reindex等价)。
执行流水线命令:
scrinium ingest [--dry-run] [--no-api] [--force]
scrinium ingest 是 scrinium pipeline ingest 的直名别名(无参数时等价,且支持 pipeline 的全部选项)。需要其他预设时用完整形式:
scrinium pipeline <preset> [--dry-run] [--no-api] [--force]
可用预设:full | ingest | enrich | reindex
常用选项:
--dry-run — 预览处理,不写文件--no-api — 离线模式,跳过外部 API 查询--force — 强制重新处理(toc 等步骤)--steps STEPS — 自定义步骤序列(逗号分隔),如 --steps toc,index--list — 列出所有可用步骤和预设pipeline 依次处理五个 inbox 目录:
data/inbox/ — 普通论文(有 DOI 才入库;无 DOI 时用标题启发式检测 thesis / book / arXiv 预印本,命中即入库,否则转 pending)data/inbox-thesis/ — 学位论文(跳过 DOI 去重,自动标记 thesis,直接入库)data/inbox-patent/ — 专利文献(按公开号去重,自动标记 patent,跳过 DOI 去重)data/inbox-doc/ — 非论文文档(技术报告、讲义、Word/Excel/PPT、标准文档等,跳过 DOI 去重;以首标题/文件名 + 前 500 词做最小元数据入库,正式标题/摘要由 agent 后处理直写)data/inbox-proceedings/ — 论文集(强制按 proceedings 处理;普通 data/inbox/ 不做 proceedings 自动识别)元数据提取为纯正则(RegexExtractor)。提取低置信(缺 title/authors)的论文会在输出中附 hint:建议派 subagent 读原文核对后用 scrinium repair 修正——见到即按下面的"低置信修复"接管。
论文集(proceedings)采用半自动两阶段流程:
scrinium ingest 只负责把 PDF/MD 转成 data/proceedings/<Volume>/proceeding.md,并生成 split_candidates.jsonsplit_candidates.json 并生成 split_plan.jsonscrinium proceedings apply-split <proceeding_dir> <split_plan.json>
data/proceedings/<Volume>/papers/<Paper>/scrinium proceedings build-clean-candidates <proceeding_dir>
clean_candidates.json,用于汇总每个 child paper 的开头窗口、heading、缺失字段和结构信号clean_plan.jsonscrinium proceedings apply-clean <proceeding_dir> <clean_plan.json>
keep / rename / reclassify / drop# Comment 2.、假 # Reporter ...Office 文件处理流程(data/inbox-doc/ 中的 DOCX/XLSX/PPTX):
step_office_convert(MarkItDown)→ 转换为 <stem>.mdstep_extract_doc(纯规则:首标题/文件名 + 前 500 词做最小元数据)step_ingest(写入 data/papers/)pip install 'markitdown[docx,pptx,xlsx]'title/abstract,然后 scrinium index 生效专利文献处理逻辑(data/inbox-patent/):
paper_type: patent无 DOI 论文的处理逻辑(data/inbox/):
data/pending/ 并附 hint,走下面的 pending 解决工作流data/inbox-thesis/(跳过 DOI 去重的直接入库通道)SI(Supporting Information)的自动路由(data/inbox/,详见 /si skill):
*_si_001.pdf、mmc1.pdf、supporting-*.pdf 等)延后处理:先等主文入库,再按 SI 文本中的 DOI 匹配挂接到主文 si/ 目录data/pending/ 的 si_orphan;主文后续入库时按 DOI 自动对账挂接ingest.si_fetch_on_ingest: false 可关)待确认项查看:ingest 结束后若有 pending / duplicate 条目,运行 scrinium pending 查看清单(按 issue 分组,含标题、duplicate_of 和每条的处理建议 hint)。处理 pending 是 ingest 工作流的一部分——入库操作后应主动检查一次。
超长 PDF 会在 MinerU 转换前按需自动切分后合并:
chunk_page_limit(默认 >100 页)>600 页 和 >200MB 两个限制,并在仅超大小时估算更安全的分片页数data/pending/<stem>/ 里有原始 PDF、paper.md 和 pending.json(含 issue、已提取元数据和 hint)。逐条处理:
scrinium pending 列出全部待确认项(按 issue 分组,每条带 hint)data/pending/<stem>/paper.md(必要时看 PDF),判定真实类型:普通论文 / thesis / book / 专利 / 真缺 DOI 的会议报告等data/inbox-thesis/,重跑 scrinium ingest(该通道跳过 DOI 去重直接入库)data/inbox-patent/ 重跑data/inbox/ 重跑 scrinium ingest;或直接 scrinium repair <pending-stem> --title "..." --doi "..." [--author ...] [--year ...]——repair 直接支持 pending 项:带查重护栏(DOI/arXiv ID 命中库内已有论文则拒绝入库),通过后移入 data/papers/、自动清除 pending 目录,然后 scrinium indexdata/inbox-doc/ 重跑/si skill 处理:确认主文在库则 scrinium attach-si 挂接;主文未入库则先入库主文(入库时按 DOI 自动对账挂接)data/pending/<stem>/ 目录(repair 路径会自动移除),重跑 scrinium pending 确认清零scrinium index对入库时标记低置信(缺 title/authors,输出带 hint)的论文:
data/papers/<stem>/paper.md 核对真实元数据scrinium repair "<stem>" --title "正确标题" [--author "一作"] [--year YYYY] [--doi "10.xxx/..."](先 --dry-run 预览)scrinium index 重建索引批量入库完成后,建议运行一次 scrinium audit 做元数据审查(见 /audit skill),把漏网的质量问题(缺摘要、标题不一致、未打标等)一并接管处理。
用户说:"我放了几篇新论文到 inbox,帮我入库"
→ 执行 scrinium ingest;结束后跑 scrinium pending 检查滞留项,有则按 pending 工作流接管;最后建议 scrinium audit
用户说:"把新论文全部处理完,包括提取目录"
→ 执行 pipeline full,再执行 pipeline enrich
用户说:"我有几份技术报告放在 inbox-doc 里了"
→ 执行 scrinium ingest(自动处理五个 inbox 目录);文档入库后 agent 后处理直写正式标题/摘要
用户说:"我把一个 Word 文档放进 inbox-doc 了"
→ 执行 scrinium ingest(自动用 MarkItDown 转换 DOCX)
用户说:"我有几篇专利放在 inbox-patent 了"
→ 执行 scrinium ingest(自动处理五个 inbox 目录,专利按公开号去重)
用户说:"这是我下载的几篇博士学位论文 PDF"
→ 放入 data/inbox-thesis/ 后执行 scrinium ingest(跳过 DOI 去重直接入库)
用户说:"我有一本文集放在 inbox-proceedings 里"
→ 先执行 scrinium ingest,等生成 split_candidates.json 后由 agent 审阅,再执行 scrinium proceedings apply-split ...
用户说:"清理一下 pending 里的滞留论文"
→ 执行 scrinium pending,逐条派 subagent 读原文判定 → repair / 移入对应 inbox 重跑,清零后 scrinium index
用户说:"重新建索引"
→ 执行 pipeline reindex(或 scrinium index,见 /index skill)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub wszqkzqk/scrinium --plugin scrinium38 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./citation-checkVerify citations in AI-generated or human-written text against the local knowledge base. Catches hallucinated references, wrong metadata, and missing papers. Use when the user wants to check if citations are real and accurate./citationsView top-cited papers ranking and refresh citation counts from APIs. Use when the user asks about highly cited papers, citation rankings, or wants to update citation data./curateCurate papers with tags in batch — build and maintain a healthy tag vocabulary, tag untagged papers via subagents, and review vocabulary quality. Tags are the library's topic layer (see the /topics skill). Use when the user wants to tag papers / batch-organize the library with tags / tidy up the tag vocabulary.Other plugins' skills for the same job