首页龙虾技能列表 › translate-manual — 技能工具

translate-manual — 技能工具

v1.0.0

将docx说明书翻译成指定语言,并重新截取应用界面截图替换文档中的原图。触发场景:(1) 用户发送docx文档要求翻译,(2) 需要重新截取软件界面截图,(3) 包含截图替换的文档本地化工作

0· 239·0 当前·0 累计
by @qianzitech (QianziTech)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/8
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
medium confidence
The skill's code and runtime instructions mostly match the translation purpose, but there are clear mismatches (undeclared required API key, claimed screenshot/capture features not implemented, and external API calls that send document text) that warrant caution before installing or running.
评估建议
This skill is plausible for translating docx files, but you should not install/run it without verifying a few things: (1) The metadata should declare that an API key is required — currently it does not, yet the script requires one. Confirm which environment variable or parameter you'll use and whether that's acceptable. (2) The code sends text to https://api.deeplx.org; verify that this is a legitimate and trusted translation endpoint (it's different from official DeepL endpoints) because your d...
详细分析 ▾
用途与能力
The skill claims docx translation and replacing UI screenshots. The included Python modules implement docx reading/translation and image extraction/replacement placeholders, which align with translation. However the SKILL.md and README describe automatic screenshot capture and app startup (pnpm dev, launching EXEs, web navigation) — there is no code that actually captures screenshots, drives browsers, or launches applications. Also the runtime requires an external translation API key (DeepLX) but the registry metadata declared no required env vars/credentials.
指令范围
SKILL.md instructs the agent/operator to start apps, visit URLs, locate language toggles and re-capture UI screenshots. The code only extracts existing images from docx and has a placeholder for image replacement; it does not automate screenshot capture or remote UI interaction. The mismatch gives the agent or a human broad discretion to run commands or open apps outside the skill's code, which is outside what the packaged code actually does.
安装机制
This is an instruction-and-script-only skill with no install spec. Nothing is downloaded or written by an install step, which minimizes installer-level risk.
凭证需求
Registry metadata lists no required env vars, but the translator code requires an API key at runtime and checks several environment variable names (DEEPLX_API_KEY, DEEPL_API_KEY, TRANSLATOR_API_KEY). The translator will exit if no API key is provided. The code also sends document text to an external endpoint (https://api.deeplx.org/{api_key}/translate), which may expose sensitive document content to a third party. Those environment/credential needs should have been declared and justified in metadata.
持久化与权限
The skill does not request always:true, does not modify other skills, and has no install hooks. It does not request elevated or persistent system presence in the manifest.
安装前注意事项
  1. The metadata should declare that an API key is required — currently it does not, yet the script requires one. Confirm which environment variable or parameter you'll use and whether that's acceptable. (
  2. The code sends text to https://api.deeplx.org; verify that this is a legitimate and trusted translation endpoint (it's different from official DeepL endpoints) because your document text (possibly sensitive) will be transmitted. (
  3. The README/SKILL.md mention automatic screenshot capture and launching apps, but the repository contains no automation for that — if you need automatic UI screenshots, expect to provide additional tooling or permit the agent/operator to run local commands, which increases risk. (
  4. Consider running the scripts in a sandbox with test documents first, and audit network traffic (or replace the external API with an internal/trusted translator) if document confidentiality matters. (
  5. Ask the publisher to correct metadata to list required env vars and to either provide screenshot automation code or remove the claims. If you cannot verify the endpoint or metadata, treat this skill as untrusted and do not provide sensitive documents or API keys.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/12

manual-translator 1.0.0 - Initial release: translates docx manuals into specified languages. - Supports extracting and replacing application UI screenshots in the document. - Includes a step-by-step process for batch translation and table handling. - Offers DeepL API integration with fallback to built-in translation. - Ensures preservation of document formatting, tables, and images during localization.

● 可疑

安装命令 点击复制

官方npx clawhub@latest install translate-manual
镜像加速npx clawhub@latest install translate-manual --registry https://cn.clawhub-mirror.com

技能文档

Overview

将 docx 格式的说明书翻译成指定语言,并重新截取应用程序界面截图替换文档中的原图。支持 Web 应用、本地 EXE、项目启动等多种应用类型。

优化版翻译流程

Step 1: 收集信息

用户需要提供:

  • docx 文件路径: 要翻译的说明书文档
  • 目标语言: 如英文(EN)、日文(JA)、韩文(KO)等
  • DeepLX API Key (可选): 用于翻译

Step 2: 分段翻译 (推荐)

为避免 API 限流或超时,建议使用分段翻译:

# 分批翻译,每批50项
batch_size = 50
for i in range(0, total, batch_size):
    batch = texts[i:i+batch_size]
    for text in batch:
        # 翻译...
    # 每批保存中间结果
    doc.save(f"output_part{batch+1}.docx")

Step 3: 表格翻译

Docx 文档中的表格需要单独处理:

# 遍历所有表格
for table in doc.tables:
    for row in table.rows:
        for cell in row.cells:
            text = cell.text.strip()
            if text and has_chinese(text):  # 检测是否包含中文
                cell.text = translate(text)
    # 每表格保存,防止中途失败
    doc.save(output_file)

Step 4: 合并与输出

  • 合并所有分节翻译结果
  • 替换原文档中的中文内容
  • 保留文档格式、图片、表格结构

DeepL API 使用

API 格式:

POST https://api.deeplx.org/{API_KEY}/translate
Body: {"text": "原文", "target_lang": "目标语言代码"}

目标语言代码:EN, JA, KO, ZH, FR, DE, ES, IT, PT, RU 等

备用方案: 如果 API 不可用,使用模型自身能力翻译

启动应用 (如需截图)

Web 应用:

  • 直接访问 URL
  • 寻找语言切换设置

项目路径:

  • 前端: pnpm dev
  • 后端: pnpm startnpm run start:dev

关键提示

  • 分段翻译: 每50项一批,每批保存,防止中途失败
  • 表格翻译: 逐表格翻译并保存
  • 错误处理: 使用 try-except 捕获异常,继续处理下一项
  • 保留格式: 只替换文本内容,保留段落格式、表格结构、图片
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务