/scholaraio:ingestfrom scholaraio
Ingest papers, patents, and documents from inbox into the knowledge base. Runs the pipeline to convert PDFs via MinerU (auto-splits long PDFs), Office files (DOCX/XLSX/PPTX) via MarkItDown, extract metadata, deduplicate by DOI or patent publication number, and build indexes. Supports four inboxes - regular papers, patents, theses, and general documents. Use when the user has new papers, patents, or documents to process, wants to run the pipeline, or rebuild indexes.
Ships in scholaraio. 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 文件处理入库。支持论文、专利、学位论文和一般文档四种入库类型。
| 格式 | 放入目录 | 处理方式 |
|---|---|---|
.pdf | data/inbox/ 或 data/inbox-doc/ | MinerU 转 Markdown |
.pdf / .md | data/inbox-patent/ | 专利文献(按公开号去重) |
.docx .xlsx .pptx | data/inbox-doc/ | MarkItDown 转 Markdown |
.md | 任意 inbox | 直接入库(跳过转换) |
根据用户意图选择预设:
ingest 预设(= mineru, extract, dedup, ingest, embed, index)full 预设(= mineru, extract, dedup, ingest, toc, l3, embed, index)reindex 预设(= embed, index)enrich 预设(= toc, l3, embed, index)注意:
inbox-doc/始终使用专用步骤office_convert, mineru, extract_doc, ingest,不受 preset 影响。inbox-patent/和inbox-thesis/也有各自的固定流程。preset 中的 papers 级步骤(toc, l3)和 global 级步骤(embed, index)在处理完所有 inbox 后统一执行。
执行流水线命令:
scholaraio pipeline <preset> [--dry-run] [--no-api] [--force] [--inspect]
可用预设:full | ingest | enrich | reindex
常用选项:
--dry-run — 预览处理,不写文件--no-api — 离线模式,跳过外部 API 查询--force — 强制重新处理(toc/l3 等步骤)--inspect — 展示处理详情--steps STEPS — 自定义步骤序列(逗号分隔),如 --steps toc,l3,index--list — 列出所有可用步骤和预设pipeline 会依次处理四个 inbox 目录:
data/inbox/ — 普通论文(有 DOI 才入库,无 DOI 且非 thesis 转 pending)data/inbox-patent/ — 专利文献(按公开号去重,自动标记 patent,跳过 DOI 去重)data/inbox-thesis/ — 学位论文(跳过 DOI 去重,自动标记 thesis)data/inbox-doc/ — 非论文文档(技术报告、讲义、Word/Excel/PPT、标准文档等,跳过 DOI 去重,LLM 生成标题/摘要)Office 文件处理流程(data/inbox-doc/ 中的 DOCX/XLSX/PPTX):
step_office_convert(MarkItDown)→ 转换为 <stem>.mdstep_extract_doc(LLM 生成标题/摘要)step_ingest(写入 data/papers/)pip install 'markitdown[docx,pptx,xlsx]'专利文献处理逻辑(data/inbox-patent/):
paper_type: patent无 DOI 论文的处理逻辑:
data/inbox-thesis/ → 直接标记为 thesis 并入库data/inbox-doc/ → 标记为 document 类型,LLM 生成标题和摘要后入库data/inbox/ → LLM 分析判断是否 thesis
data/pending/ 待人工确认超长 PDF(>100 页)自动切分为短 PDF 分段转换后合并。
pipeline ingest/full。*_images 还是 *_mineru_images,最终论文目录里都必须规范成单一的 images/ 文件夹,并与 paper.md 中的图片引用保持一致。用户说:"我放了几篇新论文到 inbox,帮我入库"
→ 执行 pipeline ingest
用户说:"把新论文全部处理完,包括提取目录和结论"
→ 执行 pipeline full
用户说:"我有几份技术报告放在 inbox-doc 里了"
→ 执行 pipeline ingest(pipeline 自动处理四个 inbox 目录)
用户说:"我把一个 Word 文档放进 inbox-doc 了"
→ 执行 pipeline ingest(自动用 MarkItDown 转换 DOCX)
用户说:"我有几篇专利放在 inbox-patent 了"
→ 执行 pipeline ingest(自动处理四个 inbox 目录,专利按公开号去重)
用户说:"重新建索引"
→ 执行 pipeline reindex
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub godoorsun/scholaraio --plugin scholaraio26 skills in this plugin
/auditAudit paper data quality in the knowledge base. Checks for missing fields, filename issues, DOI duplicates, title mismatches, and more. Supports LLM-based deep diagnosis for title mismatches and automated repair. Use when the user wants to check data quality, find problems, or fix metadata issues./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 refetch citation counts from APIs. Use when the user asks about highly cited papers, citation rankings, or wants to update citation data.