docutranslate

docutranslate is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 47 tokens per session (3,011 once invoked), scanned A, original, MIT.

A local translation tool for PDF, Word, Excel, Markdown, subtitle, and other files that uses language models while preserving supported document formatting. It also offers a web interface, API, software libraries, and an MCP server for programmatic use.

In plain words
What is it for?
Use it to translate documents and subtitles, create glossaries, process academic PDFs with tables and formulas, and connect translation to applications through an API or SDK. PDF translation converts the document to Markdown, so its original layout is not preserved.
Why use it?
It reduces the manual work of translating many file types and helps keep terminology and supported layouts consistent across the translated files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to translate documents and subtitles, create glossaries, process academic PDFs with tables and formulas, and connect translation to applications through an API or SDK. PDF translation converts the document to Markdown, so its original layout is not preserved.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/docutranslate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add znlgis/opengis-skills --skill docutranslate
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

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 docutranslate

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/docutranslate/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/docutranslate)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/docutranslate"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/docutranslate/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 docutranslate

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/docutranslate"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/docutranslate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,011 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 warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 74
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • medium MCP Rug Pull · line 76
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • medium Data Exfiltration · line 108
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 202
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00047 $0.03011
Opus 5 $0.00023 $0.01505
Sonnet 5 $0.00009 $0.00602
Haiku 4.5 $0.00005 $0.00301

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

Security

Grade A, and why

docutranslate 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.

ai/docutranslate/SKILL.md · 254 lines

How it starts

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

项目地址: https://github.com/xunbu/docutranslate

PyPI: https://pypi.org/project/docutranslate/

官方文档: GitHub README(中/英/日/越)|API文档:启动后 http://127.0.0.1:8010/docs(Swagger UI)

最新发布: 参见 GitHub Releases

许可证: Mozilla Public License 2.0 (MPL-2.0) 最新版本: v1.7.8(参见 PyPI

概述

DocuTranslate 是一款基于大语言模型(LLM)的本地文件翻译工具,主打「多格式 + 保留排版 + 可编程集成」。

  • 多格式支持pdfdocxxlsxmdtxtjsonepubsrtass 等。
  • PDF 智能解析:接入 MinerU(在线或本地部署),识别学术论文中的表格、公式、代码。
  • 术语表自动生成:确保专业术语在全文中翻译一致。
  • 格式保留docx/xlsx 翻译后保留原始格式(暂不支持旧版 doc/xls)。
  • 多 AI 平台:兼容 OpenAI 兼容协议的主流平台,支持高并发翻译与自定义提示词。
  • 多种使用形态:开箱即用的 Web UI、RESTful API、Client SDK、MCP Server,以及 Windows/Mac 便携整合包(<40MB)。

⚠️ 翻译 pdf 时会先转换为 markdown,会丢失原始版式。对版式有严格要求者请注意。

DocuTranslate 迭代很快,命令、字段与参数请以当前版本的 docutranslate --help、Web 界面、http://127.0.0.1:8010/docs 及仓库最新代码为准。


环境与安装

前置要求

  • Python 3.11+(源码/包安装方式)
  • AI 平台的 API Key(OpenAI 兼容协议)
  • 翻译 PDF 需 MinerU:在线(申请 Token)或本地部署

安装方式

# pip 安装
pip install docutranslate
# 安装 MCP 扩展
pip install "docutranslate[mcp]"

# uv 安装(推荐)
uv init
uv add docutranslate
uv add "docutranslate[mcp]"

# 源码
git clone https://github.com/xunbu/docutranslate.git
cd docutranslate
uv sync --no-dev            # uv sync --no-dev --extra mcp / --all-extras

Docker:

docker run -d -p 8010:8010 xunbu/docutranslate:latest
# 请从 GitHub Releases 获取最新标签:https://github.com/xunbu/docutranslate/releases
docker run -it -p 8010:8010 xunbu/docutranslate:latest

便携整合包:GitHub Releases 下载 Windows/Mac 整合包,解压后填入 API-Key 即可使用。


Web UI 与 API 服务

docutranslate -i                       # 启动 GUI(默认仅本机访问)
docutranslate -i --host 0.0.0.0        # 允许局域网其它设备访问
docutranslate -i -p 8081               # 指定端口
docutranslate -i --cors                # 启用默认 CORS
docutranslate -i --with-mcp            # 启动 GUI 并附带 MCP SSE 端点(共享队列/端口)

Read the full file on GitHub · 254 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 · 254 lines · 47 tokens per session scan A 5f979a754a56

Subscribe to this mod's changes

docutranslate is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 3,011 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

markitdown

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

synthetic-sciences/openscience · 53 tokens

active-directory-attacks

Provide comprehensive techniques for attacking Microsoft Active Directory environments. Covers reconnaissance, credential harvesting, Kerberos attacks, lateral movement, privilege escalation, and doma.

ranbot-ai/awesome-skills · 33 tokens

liteparse

Use this skill when the user asks to parse, perform multi-format document conversion or spatially extract text from an unstructured file (PDF, DOCX, PPTX, XLSX, images, etc.) locally without cloud dependencies.

synthetic-sciences/openscience · 49 tokens

treatment-plans

Generate concise (3-4 page), focused medical treatment plans in LaTeX/PDF format for all clinical specialties. Supports general medical treatment, rehabilitation therapy, mental health care, chronic disease management, perioperative care, and pain management. Includes SMART goal frameworks, evidence-based…

synthetic-sciences/openscience · 86 tokens

csv-to-executive-report

Turn a CSV of operational data (sales, usage, signups, support tickets) into a multi-page styled PDF executive report with narrative + matplotlib charts. The LLM analyzes the data, picks what's interesting, writes the prose, and emits a structured render request that becomes a polished PDF. Use when given a CSV and…

skrun-dev/skrun · 81 tokens

md2pdf

Use when the user wants to convert one Markdown file into a publication-ready A4 PDF, especially when the source may contain Mermaid diagrams, ASCII diagrams, CJK text, tables, or pandoc/weasyprint edge cases. Works by copying the source to a pdf.md working file, converting diagrams, escaping PDF-breaking syntax…

KerberosClaw/kc_ai_skills · 123 tokens