{"id":"d0bef751-979c-4f3b-b56a-8d9af5e8d419","entityType":"agent","slug":"clawhub-lexyland-document-translate","name":"Doc Translate","canonicalUrl":"https://www.xpersona.co/agent/clawhub-lexyland-document-translate","canonicalPath":"/agent/clawhub-lexyland-document-translate","generatedAt":"2026-10-12T15:38:24.479Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-11T23:43:20.831Z","emptyReason":null},"description":"Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格... Skill: Doc Translate Owner: lexyland Summary: Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格... Tags: latest:0.1.0 Version history: v0.1.0 | 2026-04-24T04:27:50.634Z | auto doc-translate 0.1.0 - Initial release of the Office document translation toolkit. - Supports translation of PPTX, DOCX, XLSX, and PDF fo","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 974 downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s177fjw8znyckyzfpa8dsa02258592d3:document-translate","sourceUrl":"https://clawhub.ai/lexyland/document-translate","homepage":"https://clawhub.ai/lexyland/skills/document-translate","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/lexyland/document-translate","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/lexyland/skills/document-translate","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:43:20.831Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:43:20.831Z","emptyReason":null},"stars":null,"forks":null,"downloads":974,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"0.1.0","tractionLabel":"974 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:43:20.808Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T23:43:20.831Z","lastCrawledAt":"2026-10-11T23:43:20.808Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T23:43:20.808Z","lastVerifiedAt":null,"highlights":[{"version":"0.1.0","createdAt":"2026-04-24T04:27:50.634Z","changelog":"doc-translate 0.1.0 - Initial release of the Office document translation toolkit. - Supports translation of PPTX, DOCX, XLSX, and PDF formats while preserving templates and styles. - Enables English-to-Chinese (and other language) localization for office documents. - Provides workflow details, key file structures, and translation scripts for each supported format. - Includes guidelines for handling Feishu files and sending large documents. - Outlines translation quality safeguards for technical terms, brands, numbers/units, and formatting.","fileCount":8,"zipByteSize":16802}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s177fjw8znyckyzfpa8dsa02258592d3:document-translate","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-12T15:38:24.479Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lexyland-document-translate/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-11T23:43:20.831Z","emptyReason":null},"readme":"Skill: Doc Translate\n\nOwner: lexyland\n\nSummary: Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格...\n\nTags: latest:0.1.0\n\nVersion history:\n\nv0.1.0 | 2026-04-24T04:27:50.634Z | auto\n\ndoc-translate 0.1.0\n\n- Initial release of the Office document translation toolkit.\n- Supports translation of PPTX, DOCX, XLSX, and PDF formats while preserving templates and styles.\n- Enables English-to-Chinese (and other language) localization for office documents.\n- Provides workflow details, key file structures, and translation scripts for each supported format.\n- Includes guidelines for handling Feishu files and sending large documents.\n- Outlines translation quality safeguards for technical terms, brands, numbers/units, and formatting.\n\nArchive index:\n\nArchive v0.1.0: 8 files, 16802 bytes\n\nFiles: README.md (21b), scripts/docx_translate.py (3966b), scripts/pdf_translate.py (4866b), scripts/pptx_translate.py (17606b), scripts/xlsx_translate.py (3648b), skill-card.md (2451b), SKILL.md (6701b), _meta.json (137b)\n\nFile v0.1.0:SKILL.md\n\n---\nname: doc-translate\ndescription: Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格式的英文到中文（或任意语言）的翻译任务。\n---\n\n# doc-translate\n\nOffice document translation toolkit / Office文档翻译工具集\n\nSupports PPTX / DOCX / PDF / XLSX four formats, preserving original templates and styles / 支持四种格式，保持原模板不变。\n\n---\n\n## 工作流 / Workflow\n\n### 通用流程 / General Process（所有格式 / All Formats）\n\n```\n1. 下载文件 / Download file      → 飞书附件 or 本地路径 / Feishu attachment or local path\n2. 格式识别 / Detect format       → 根据扩展名判断 / Detect by extension\n3. 解压解析 / Extract & parse     → ZIP解压 → XML/文本节点提取 / ZIP extract → XML/text node extraction\n4. 翻译 / Translate              → 规则映射或AI翻译 / Rule mapping or AI translation\n5. 重建 / Rebuild                → 重新打包，保留原样式 / Repack, preserve original styles\n6. 发送 / Deliver                → 发送给用户或保存 / Send to user or save\n```\n\n---\n\n## PPTX 翻译 / PPTX Translation\n\n### 格式结构 / Format Structure\n\nPPTX = ZIP压缩包，内含 / ZIP archive containing:\n- `ppt/slides/slide1.xml` … slideN.xml — 幻灯片内容 / Slide content\n- `ppt/theme/` — 主题样式 / Theme styles\n- `[Content_Types].xml` — 内容类型声明 / Content type declarations\n\n### 关键XML节点 / Key XML Nodes\n\n| 节点 / Node | 说明 / Description |\n|-------------|-------------------|\n| `<a:t>` | 文本内容 / Text content（最常出现 / most common）|\n| `<a:r>` | 文本段落 / Text run |\n| `<p:sp>` | 形状（文本框等）/ Shape（text box etc.）|\n| `<p:txBody>` | 文本正文 / Text body |\n\n### 处理脚本 / Processing Script\n\n```bash\npython3 scripts/pptx_translate.py <pptx文件路径> [--output <输出路径>] [--src-lang en] [--tgt-lang zh]\n```\n\n---\n\n## DOCX 翻译 / DOCX Translation\n\n### 格式结构 / Format Structure\n\nDOCX = ZIP压缩包，内含 / ZIP archive containing:\n- `word/document.xml` — 主文档内容 / Main document content\n- `word/styles.xml` — 样式 / Styles\n- `[Content_Types].xml`\n\n### 关键XML节点 / Key XML Nodes\n\n| 节点 / Node | 说明 / Description |\n|-------------|-------------------|\n| `<w:t>` | 文本内容 / Text content |\n| `<w:p>` | 段落 / Paragraph |\n| `<w:r>` | 文本段 / Text run |\n\n### 处理脚本 / Processing Script\n\n```bash\npython3 scripts/docx_translate.py <docx文件路径> [--output <输出路径>]\n```\n\n---\n\n## XLSX 翻译 / XLSX Translation\n\n### 格式结构 / Format Structure\n\nXLSX = ZIP压缩包，内含 / ZIP archive containing:\n- `xl/worksheets/sheet1.xml` — 工作表内容 / Worksheet content\n- `xl/sharedStrings.xml` — 共享字符串表（单元格文本） / Shared strings table（cell text）\n- `xl/styles.xml` — 样式 / Styles\n\n### 处理脚本 / Processing Script\n\n```bash\npython3 scripts/xlsx_translate.py <xlsx文件路径> [--output <输出路径>]\n```\n\n---\n\n## PDF 翻译 / PDF Translation\n\n### 方法说明 / Method Notes\n\nPDF不是XML格式，无法直接编辑文本。推荐方案 / PDF is not XML, cannot edit text directly. Recommended approach:\n\n**方案A / Method A：PDF → Word → PDF（推荐 / Recommended）**\n```\npdfplumber提取文本 → python-docx构建翻译后Word文档 → LibreOffice导出PDF\npdfplumber extract → python-docx build translated Word → LibreOffice export PDF\n```\n\n**方案B / Method B：直接覆盖（仅文本层PDF） / Direct overlay (text-layer PDFs only）**\n使用 pdfplumber + pypdf2 / Using pdfplumber + pypdf2\n\n### 处理脚本 / Processing Script\n\n```bash\npython3 scripts/pdf_translate.py <pdf文件路径> [--output <输出路径>] [--method word|direct]\n```\n\n---\n\n## 飞书文件处理 / Feishu File Handling\n\n### 下载飞书附件 / Download Feishu Attachment\n\n```python\n# 飞书消息附件下载（message_id 来自上下文）/ Feishu message attachment download\nfeishu_im_bot_image(message_id=\"om_xxx\", file_key=\"file_v3_xxx\", type=\"file\")\n# 返回 saved_path / Returns saved_path\n\n# 飞书云盘文件下载 / Feishu drive file download\nfeishu_drive_file(action=\"download\", file_token=\"xxx\", output_path=\"/tmp/output.pptx\")\n```\n\n### 发送文件给用户 / Send File to User\n\n**方法1：消息附件发送（限制25MB）/ Method 1: Message attachment (25MB limit）**\n```python\nmessage(action=\"send\", channel=\"feishu\", file_path=\"/path/to/file.pptx\", target=\"user:ou_xxx\")\n```\n\n**方法2：分卷发送（文件>25MB时）/ Method 2: Split send (file > 25MB）**\n```bash\n# 分成10MB分卷 / Split into 10MB chunks\nsplit -b 10m original.pptx part-\n# 逐个发送 / Send one by one\nmessage(action=\"send\", file_path=\"part-aa\", target=\"user:ou_xxx\")\n# 用户合并命令 / User merge command:\ncat part-* > original.pptx\n```\n\n**方法3：上传飞书云盘 / Method 3: Upload to Feishu Drive**\n```python\nfeishu_drive_file(action=\"upload\", file_path=\"/path/to/file.pptx\", file_name=\"翻译版.pptx\")\n```\n\n---\n\n## 翻译质量注意事项 / Translation Quality Notes\n\n1. **医学/专业术语 / Medical/Technical Terms** — 必须使用人工翻译映射表，不能让模型自由发挥 / Must use manual translation mapping, not free-form AI\n2. **商标/品牌 / Trademarks/Brands** — 保持原文，如 Medtronic、Harmonic 等 / Keep original, e.g. Medtronic, Harmonic\n3. **数字+单位 / Numbers+Units** — 保持原样，如 7mm、150 procedures / Keep as-is, e.g. 7mm, 150 procedures\n4. **脚注符号 / Footnote Symbols** — † ‡ § Ω 等保持不变 / Keep as-is: † ‡ § Ω\n5. **格式占位符 / Format Placeholders** — 如 {name}、%s 等不替换 / Don't replace: {name}, %s\n\n---\n\n## 脚本列表 / Scripts\n\n| 脚本 / Script | 功能 / Function | 输入 / Input | 输出 / Output |\n|---|---|---|---|\n| `pptx_translate.py` | PPTX全文翻译 / Full PPTX translation | .pptx文件 | .pptx（中文版 / Chinese version）|\n| `docx_translate.py` | DOCX全文翻译 / Full DOCX translation | .docx文件 | .docx（中文版 / Chinese version）|\n| `xlsx_translate.py` | XLSX全文翻译 / Full XLSX translation | .xlsx文件 | .xlsx（中文版 / Chinese version）|\n| `pdf_translate.py` | PDF全文翻译 / Full PDF translation | .pdf文件 | .pdf（中文版 / Chinese version）|\n\nAll scripts use `--output` to specify output path / 所有脚本使用 `--output` 指定输出路径\n\nFile v0.1.0:README.md\n\n# document-translate\n\nFile v0.1.0:_meta.json\n\n{\n  \"ownerId\": \"kn77k6stky8q5f5d0jjwjssqsx859hym\",\n  \"slug\": \"document-translate\",\n  \"version\": \"0.1.0\",\n  \"publishedAt\": 1777004870634\n}\n\nFile v0.1.0:skill-card.md\n\n## Description:\n\nTranslates and localizes Office documents in PPTX, DOCX, PDF, and XLSX formats while preserving the original document template and formatting where supported.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[lexyland](https://clawhub.ai/user/lexyland)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and document localization users use this skill to translate PPTX, DOCX, XLSX, and PDF files, especially English-to-Chinese office documents, while preserving templates and styles where the file format allows. Use it on trusted documents and review translation quality for specialized content.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may be mistaken for a general-purpose translator even though the bundled scripts primarily perform fixed replacement mappings.\n\nMitigation: Treat the skill as a limited English-to-Chinese replacement workflow and require human review for translation quality, especially for specialized terminology.\n\nRisk: The workflow describes downloading, storing, sending, and uploading documents, which can expose sensitive files if used without scoping.\n\nMitigation: Use only trusted documents in a constrained environment and require explicit user approval before handling or transmitting sensitive files.\n\nRisk: PDF handling has format limitations, including non-editable text and an incomplete direct overlay path.\n\nMitigation: Prefer the PDF-to-DOCX workflow, verify the converted output manually, and avoid relying on direct overlay for production results.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/lexyland/skills/document-translate)\n- [Publisher profile](https://clawhub.ai/user/lexyland)\n\n## Skill Output:\n\n**Output Type(s):** [files, shell commands, guidance]\n\n**Output Format:** [Markdown guidance with shell commands; scripts produce translated document files.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports PPTX, DOCX, XLSX, and PDF inputs; translation behavior is mapping-based unless an agent adds a scoped translation step.]\n\n## Skill Version(s):\n\n0.1.0 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.","readmeExcerpt":"Skill: Doc Translate Owner: lexyland Summary: Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格... Tags: latest:0.1.0 Version history: v0.1.0 | 2026-04-24T04:27:50.634Z | auto doc-translate 0.1.0 - Initial release of the Office document translation toolkit. - Supports translation of PPTX, DOCX, XLSX, and PDF fo","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"1. 下载文件 / Download file      → 飞书附件 or 本地路径 / Feishu attachment or local path\n2. 格式识别 / Detect format       → 根据扩展名判断 / Detect by extension\n3. 解压解析 / Extract & parse     → ZIP解压 → XML/文本节点提取 / ZIP extract → XML/text node extraction\n4. 翻译 / Translate              → 规则映射或AI翻译 / Rule mapping or AI translation\n5. 重建 / Rebuild                → 重新打包，保留原样式 / Repack, preserve original styles\n6. 发送 / Deliver                → 发送给用户或保存 / Send to user or save"},{"language":"bash","snippet":"python3 scripts/pptx_translate.py <pptx文件路径> [--output <输出路径>] [--src-lang en] [--tgt-lang zh]"},{"language":"bash","snippet":"python3 scripts/docx_translate.py <docx文件路径> [--output <输出路径>]"},{"language":"bash","snippet":"python3 scripts/xlsx_translate.py <xlsx文件路径> [--output <输出路径>]"},{"language":"text","snippet":"pdfplumber提取文本 → python-docx构建翻译后Word文档 → LibreOffice导出PDF\npdfplumber extract → python-docx build translated Word → LibreOffice export PDF"},{"language":"bash","snippet":"python3 scripts/pdf_translate.py <pdf文件路径> [--output <输出路径>] [--method word|direct]"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: doc-translate\ndescription: Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格式的英文到中文（或任意语言）的翻译任务。\n---\n\n# doc-translate\n\nOffice document translation toolkit / Office文档翻译工具集\n\nSupports PPTX / DOCX / PDF / XLSX four formats, preserving original templates and styles / 支持四种格式，保持原模板不变。\n\n---\n\n## 工作流 / Workflow\n\n### 通用流程 / General Process（所有格式 / All Formats）\n\n```\n1. 下载文件 / Download file      → 飞书附件 or 本地路径 / Feishu attachment or local path\n2. 格式识别 / Detect format       → 根据扩展名判断 / Detect by extension\n3. 解压解析 / Extract & parse     → ZIP解压 → XML/文本节点提取 / ZIP extract → XML/text node extraction\n4. 翻译 / Translate              → 规则映射或AI翻译 / Rule mapping or AI translation\n5. 重建 / Rebuild                → 重新打包，保留原样式 / Repack, preserve original styles\n6. 发送 / Deliver                → 发送给用户或保存 / Send to user or save\n```\n\n---\n\n## PPTX 翻译 / PPTX Translation\n\n### 格式结构 / Format Structure\n\nPPTX = ZIP压缩包，内含 / ZIP archive containing:\n- `ppt/slides/slide1.xml` … slideN.xml — 幻灯片内容 / Slide content\n- `ppt/theme/` — 主题样式 / Theme styles\n- `[Content_Types].xml` — 内容类型声明 / Content type declarations\n\n### 关键XML节点 / Key XML Nodes\n\n| 节点 / Node | 说明 / Description |\n|-------------|-------------------|\n| `<a:t>` | 文本内容 / Text content（最常出现 / most common）|\n| `<a:r>` | 文本段落 / Text run |\n| `<p:sp>` | 形状（文本框等）/ Shape（text box etc.）|\n| `<p:txBody>` | 文本正文 / Text body |\n\n### 处理脚本 / Processing Script\n\n```bash\npython3 scripts/pptx_translate.py <pptx文件路径> [--output <输出路径>] [--src-lang en] [--tgt-lang zh]\n```\n\n---\n\n## DOCX 翻译 / DOCX Translation\n\n### 格式结构 / Format Structure\n\nDOCX = ZIP压缩包，内含 / ZIP archive containing:\n- `word/document.xml` — 主文档内容 / Main document content\n- `word/styles.xml` — 样式 / Styles\n- `[Content_Types].xml`\n\n### 关键XML节点 / Key XML Nodes\n\n| 节点 / Node | 说明 / Description |\n|-------------|-------------------|\n| `<w:t>` | 文本内容 / Text content |\n| `<w:p>` | 段落 / Paragraph |\n| `<w:r>` | 文本段 / Text run |\n\n### 处理脚本 / Processing Script\n\n```bash\npython3 scripts/docx_translate.py <docx文件路径> [--output <输出路径>]\n```\n\n---\n\n## XLSX 翻译 / XLSX Translation\n\n### 格式结构 / Format Structure\n\nXLSX = ZIP压缩包，内含 / ZIP archive containing:\n- `xl/worksheets/sheet1.xml` — 工作表内容 / Worksheet content\n- `xl/sharedStrings.xml` — 共享字符串表（单元格文本） / Shared strings table（cell text）\n- `xl/styles.xml` — 样式 / Styles\n\n### 处理脚本 / Processing Script\n\n```bash\npython3 scripts/xlsx_translate.py <xlsx文件路径> [--output <输出路径>]\n```\n\n---\n\n## PDF 翻译 / PDF Translation\n\n### 方法说明 / Method Notes\n\nPDF不是XML格式，无法直接编辑文本。推荐方案 / PDF is not XML, cannot edit text directly. Recommended approach:\n\n**方案A / Method A：PDF → Word → PDF（推荐 / Recommended）**\n```\npdfplumber提取文本 → python-docx构建翻译后Word文档 → LibreOffice导出PDF\npdfplumber extract → python-docx build translated Word → LibreOffice export PDF\n```\n\n**方案B / Method B：直接覆盖（仅文本层PDF） / Direct overlay (text-layer PDFs only）**\n使用 pdfplumber + pypdf2 / Using pdfplumber + pypdf2\n\n### 处理脚本 / Processing "},{"path":"README.md","content":"# document-translate"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn77k6stky8q5f5d0jjwjssqsx859hym\",\n  \"slug\": \"document-translate\",\n  \"version\": \"0.1.0\",\n  \"publishedAt\": 1777004870634\n}"},{"path":"skill-card.md","content":"## Description:\n\nTranslates and localizes Office documents in PPTX, DOCX, PDF, and XLSX formats while preserving the original document template and formatting where supported.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[lexyland](https://clawhub.ai/user/lexyland)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and document localization users use this skill to translate PPTX, DOCX, XLSX, and PDF files, especially English-to-Chinese office documents, while preserving templates and styles where the file format allows. Use it on trusted documents and review translation quality for specialized content.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may be mistaken for a general-purpose translator even though the bundled scripts primarily perform fixed replacement mappings.\n\nMitigation: Treat the skill as a limited English-to-Chinese replacement workflow and require human review for translation quality, especially for specialized terminology.\n\nRisk: The workflow describes downloading, storing, sending, and uploading documents, which can expose sensitive files if used without scoping.\n\nMitigation: Use only trusted documents in a constrained environment and require explicit user approval before handling or transmitting sensitive files.\n\nRisk: PDF handling has format limitations, including non-editable text and an incomplete direct overlay path.\n\nMitigation: Prefer the PDF-to-DOCX workflow, verify the converted output manually, and avoid relying on direct overlay for production results.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/lexyland/skills/document-translate)\n- [Publisher profile](https://clawhub.ai/user/lexyland)\n\n## Skill Output:\n\n**Output Type(s):** [files, shell commands, guidance]\n\n**Output Format:** [Markdown guidance with shell commands; scripts produce translated document files.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports PPTX, DOCX, XLSX, and PDF inputs; translation behavior is mapping-based unless an agent adds a scoped translation step.]\n\n## Skill Version(s):\n\n0.1.0 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格... Skill: Doc Translate Owner: lexyland Summary: Office文档翻译工具集。用于翻译和本地化办公文档（PPT/Word/PDF/Excel），保持原文档模板和格式不变。当用户说\"翻译PPT\"、\"翻译Word文档\"、\"翻译PDF\"、\"翻译Excel\"、\"翻译文档\"、\"文档本地化\"、\"英文文档翻译成中文\"时使用本技能。支持PPT/Word/PDF/Excel四种格... Tags: latest:0.1.0 Version history: v0.1.0 | 2026-04-24T04:27:50.634Z | auto doc-translate 0.1.0 - Initial release of the Office document translation toolkit. - Supports translation of PPTX, DOCX, XLSX, and PDF fo","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":944,"uniquenessScore":52,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T23:43:20.831Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-11T23:43:20.831Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-12T15:38:24.479Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}