/scholaraio:translatefrom scholaraio
Translates academic paper Markdown into another language while preserving LaTeX formulas, code blocks, images, and formatting. Supports single/batch translation, resumable partial progress, and portable export with images.
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.
将论文 Markdown 翻译为目标语言(默认中文),保留 LaTeX 公式、代码块、图片引用和 Markdown 格式。翻译结果保存为论文目录内的 paper_{lang}.md,原文保持不变;如需可携带分享,可额外导出到 workspace/_system/translation-bundles/<Author-Year-Title>/。
当前实现支持:
config.translate.concurrency 并发请求多个分块,并在终端显示块级进度parts/*.md--force 会清理旧的临时翻译目录并从头重新翻译--portable 会额外生成 workspace/_system/translation-bundles/<Author-Year-Title>/paper_{lang}.md 和对应的 images/config.yaml 中可设置默认行为:
translate:
auto_translate: false # 入库时是否自动翻译(默认关闭)
target_lang: zh # 目标语言(zh/en/ja/ko/de/fr/es)
chunk_size: 4000 # 分块大小(字符数)
concurrency: 20 # 总翻译并发预算(单篇时用于 chunk 并发,批量时会在论文间分摊)
每次调用时可通过 CLI 参数覆盖默认值。
scholaraio translate "<paper-id>" [--lang zh] [--force] [--portable]
scholaraio translate --all [--lang zh] [--force] [--portable]
scholaraio show "<paper-id>" --layer 4 --lang zh
scholaraio pipeline --steps toc,l3,translate
注意:
translate默认不在预设(full/ingest/enrich/reindex)中;可通过--steps显式指定。若config.translate.auto_translate=true且 pipeline 包含 inbox 步骤,translate会在 papers 阶段自动注入。
.translate_zh/),将每块分别写入 parts/*.mdstate.json / chunks.json;失败块会记录错误并在下次续翻时单独补跑paper_{lang}.md,方便中途查看已完成部分--portable,则额外复制一份到 workspace/_system/translation-bundles/<Author-Year-Title>/,并复制 images/ 以保证脱离原目录后图片仍可用meta.json 中记录翻译元数据单篇翻译会输出:
翻译进度: 3/12)如果中途中断:
scholaraio translate "<paper-id>" --lang zh
会自动检测论文目录下的临时翻译工作目录(如 .translate_zh/),并从未完成或失败的块继续。
如果想忽略已有部分结果并重新开始:
scholaraio translate "<paper-id>" --lang zh --force
会删除旧的临时翻译目录和旧的 paper_zh.md,从头重新翻译。
用户说:"把这篇英文论文翻译成中文"
-> 执行 scholaraio translate "<paper-id>" --lang zh
用户说:"把所有论文翻译成中文"
-> 执行 scholaraio translate --all --lang zh
用户说:"看这篇论文的中文版"
-> 执行 scholaraio show "<paper-id>" --layer 4 --lang zh
用户说:"重新翻译这篇论文"
-> 执行 scholaraio translate "<paper-id>" --force
用户说:"上次翻译到一半断了,继续翻"
-> 直接执行 scholaraio translate "<paper-id>" --lang zh
用户说:"给我一份可以单独发给别人的译文,别丢图"
-> 执行 scholaraio translate "<paper-id>" --lang zh --portable
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zimoliao/scholaraio --plugin scholaraio44 skills in this plugin
/academic-writingUse when the user needs help choosing or organizing an academic-writing workflow by deliverable, stage, or format, including review articles, guided reading, paper sections, PPT or slides, posters, and technical reports./arxivUse when the user wants to browse arXiv preprints, search arXiv directly, fetch a PDF by arXiv ID or URL, or send a preprint into the ScholarAIO ingest pipeline./auditUse when the user wants to check paper-library data quality, diagnose missing metadata, filename issues, DOI duplicates, title mismatches, or repairable metadata problems.Other plugins' skills for the same job