scholaraio: Skill for Claude Code

.claude/skills/translate/SKILL.md

translate is a skill for Claude Code from ZimoLiao/scholaraio. It costs 30 tokens per session (1,294 once invoked), scanned A, original, MIT.

A tool for translating research papers written in Markdown into another language while keeping formulas, code, images, and document structure intact.

In plain words
What is it for?
Use it to translate one paper or a whole collection into languages such as Chinese, English, Japanese, or French. It can save a translated copy beside the original or create a portable bundle with its images.
Why use it?
It avoids manually translating a paper in pieces and accidentally breaking its technical content or formatting. Interrupted translations can continue from their temporary files.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ZimoLiao/scholaraio's own configuration. It tells Claude Code how to work on scholaraio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scholaraio configures →

Part of the scholaraio plugin — 47 skills, 1 hook, 1 MCP server shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to ZimoLiao/scholaraio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ZimoLiao/scholaraio/main/.claude/skills/translate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZimoLiao/scholaraio

Made for: Claude Code.

Or install scholaraio, the plugin that ships this one along with the rest of its 47 skills, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for translate

README.md
[![agentmods](https://agentmods.dev/badge/skills/zimoliao/scholaraio/translate/github.svg)](https://agentmods.dev/skills/zimoliao/scholaraio/translate)
Your own site
<a href="https://agentmods.dev/skills/zimoliao/scholaraio/translate"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/translate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for translate

Your own site · 80×15
<a href="https://agentmods.dev/skills/zimoliao/scholaraio/translate"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/translate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,294 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01294
Opus 5 $0.00015 $0.00647
Sonnet 5 $0.00006 $0.00259
Haiku 4.5 $0.00003 $0.00129

Measured 11d ago against content hash 02502617d79c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

translate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/translate/SKILL.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

论文翻译

将论文 Markdown 翻译为目标语言(默认中文),保留 LaTeX 公式、代码块、图片引用和 Markdown 格式。翻译结果保存为论文目录内的 paper_{lang}.md,原文保持不变;如需可携带分享,可额外导出到 workspace/_system/translation-bundles/<Author-Year-Title>/

当前实现支持:

  • 单篇翻译时按 config.translate.concurrency 并发请求多个分块,并在终端显示块级进度
  • 在论文目录下创建临时工作目录,按块写入 parts/*.md
  • 网络抖动时对单块做超时重试与指数退避(默认最多 5 次尝试)
  • 中途中断后可从临时工作目录继续续翻
  • --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

作为 pipeline 步骤

scholaraio pipeline --steps toc,l3,translate

注意translate 默认不在预设(full/ingest/enrich/reindex)中;可通过 --steps 显式指定。若 config.translate.auto_translate=true 且 pipeline 包含 inbox 步骤,translate 会在 papers 阶段自动注入。

工作流程

  1. 检测论文原文语言(基于字符集启发式检测)
  2. 如果已是目标语言,跳过
  3. 将 Markdown 按段落边界分块(保留代码块和公式完整性)
  4. 通过 LLM 逐块翻译,保留所有格式标记
  5. 单篇翻译会并发请求多个分块,但只按原顺序推进最终输出
  6. 在论文目录下创建临时工作目录(如 .translate_zh/),将每块分别写入 parts/*.md
  7. 状态写入 state.json / chunks.json;失败块会记录错误并在下次续翻时单独补跑
  8. 每个分块带超时重试和指数退避
  9. 若已有连续成功前缀,则同步刷新 paper_{lang}.md,方便中途查看已完成部分
  10. 若指定 --portable,则额外复制一份到 workspace/_system/translation-bundles/<Author-Year-Title>/,并复制 images/ 以保证脱离原目录后图片仍可用
  11. 若前面某块失败但后面某些块已成功,这些成功块仍会保留在临时工作目录里;下次续翻时会跳过已成功块,只补失败或未完成的块
  12. 全部完成后删除临时工作目录,并在 meta.json 中记录翻译元数据

进度与续翻

单篇翻译会输出:

  • 总块数
  • 当前块进度(如 翻译进度: 3/12
  • 中断位置
  • 是否可续翻

如果中途中断:

scholaraio translate "<paper-id>" --lang zh

会自动检测论文目录下的临时翻译工作目录(如 .translate_zh/),并从未完成或失败的块继续。

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 117 lines · 30 tokens per session scan A 02502617d79c

Subscribe to this mod's changes

translate is a skill published in the GitHub repository ZimoLiao/scholaraio (570 stars, last pushed 11d ago), licensed MIT. It adds 30 tokens to every session and 1,294 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

arxiv-translator

A tool that translates arXiv research papers into Chinese PDF files. arXiv is an online repository where researchers share scientific papers before or alongside formal publication.

Leey21/arxiv-translator · 74 tokens

infrastructure-validation

Skill for the validation infrastructure module providing PDF validation, markdown validation, output integrity checks, link verification, documentation audits, issue categorization, and repository scanning. Use when validating research outputs, checking document quality, running audits, or verifying cross-references.

docxology/template · 54 tokens

provenance-dag

Content-addressed provenance DAG for research lineage tracking. Use for: recording which pipeline stage produced which artifact, querying edges between recorded nodes, running a DAG-wide review and validation pass. CLI: python -m infrastructure.provenance {list,record-artifact,review,validate}. Library…

docxology/template · 103 tokens

scientific-connectors

Search 8+ scientific databases through a uniform Connector interface. Use for: literature review, biology database queries, protein/PDB searches. CLI: python -m infrastructure.search.connectors {list-dbs,search}. Config: set queries in projects/{name}/manuscript/config.yaml connectorsearch: block. Orchestrator…

docxology/template · 87 tokens

infrastructure-documentation

Skill for the documentation infrastructure module providing figure management, image handling, markdown integration, and API glossary generation. Use when managing research figures, inserting images into manuscripts, auto-numbering figures, or generating API documentation.

docxology/template · 47 tokens

infrastructure-search-literature

Paperclip-style multi-source literature search across arXiv, Crossref, local JSON corpora, and (opt-in) the Paperclip API. Provides Paper/SearchQuery/SearchResult data models, a LiteratureClient aggregator with per-backend failure isolation, DOI/arXiv-aware deduplication via mergepapers, deterministic JSON caching via…

docxology/template · 123 tokens