跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 visa-doc-translate

Visa Doc Translate

将签证申请文件(图像)翻译为英文,并创建有原件和翻译的双语PDF. 签证申请文件图像必须翻译成英语时使用,作为双语PDF.

8694 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

将签证申请文件(图像)翻译为英文,并创建带有原件和翻译的双语PDF

何时用

签证申请文件图像必须翻译成英语作为双语PDF

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Instructions、Supported Documents、Technical Implementation、OCR Methods (tried in order)、Required Python Libraries、Important Guidelines。 其中含规范建议的小节:输入输出示例。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Translate visa application documents (images) to English and create a bilingual PDF with original and translation. Use when visa application document images must be translated to English as a bilingual PDF.

InstructionsSupported DocumentsTechnical ImplementationOCR Methods (tried in order)Required Python LibrariesImportant GuidelinesExample UsageOutput Example

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
visa-doc-translate
description
Translate visa application documents (images) to English and create a bilingual PDF with original and translation. Use when visa application document images must be translated to English as a bilingual PDF.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「visa-doc-translate」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-3f4783043c78ef74-%E7%AD%BE%E8%AF%81%E6%96%87%E4%BB%B6%E7%BF%BB%E8%AF%91.html
请存为 .cursor/skills/visa-doc-translate/SKILL.md 或 .claude/skills/visa-doc-translate/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/affaan-m/ecc' --list

npx skills add 'https://github.com/affaan-m/ecc' --skill 'visa-doc-translate'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: visa-doc-translate description: Translate visa application documents (images) to English and create a bilingual PDF with original and translation. Use when visa application document images must be translated to English as a bilingual PDF. --- You are helping translate visa application documents for visa applications. ## Instructions When the user provides an image file path, AUTOMATICALLY execute the following steps WITHOUT asking for confirmation: 1. **Image Conversion**: If the file is HEIC, convert it to PNG using `sips -s format png --out ` 2. **Image Rotation**: - Check EXIF orientation data - Automatically rotate the image based on EXIF data - If EXIF orientation is 6, rotate 90 degrees counterclockwise - Apply additional rotation as needed (test 180 degrees if document appears upside down) 3. **OCR Text Extraction**: - Try multiple OCR methods automatically: - macOS Vision framework (preferred for macOS) - EasyOCR (cross-platform, no tesseract required) - Tesseract OCR (if available) - Extract all text information from the document - Identify document type (deposit certificate, employment certificate, retirement certificate, etc.) 4. **Translation**: - Translate all text content to English professionally - Maintain the original document structure and format - Use professional terminology appropriate for visa applications - Keep proper names in original language with English in parentheses - For Chinese names, use pinyin format (e.g., WU Zhengye) - Preserve all numbers, dates, and amounts accurately 5. **PDF Generation**: - Create a Python script using PIL and reportlab libraries - Page 1: Display the rotated original image, centered and scaled to fit A4 page - Page 2: Display the English translation with proper formatting: - Title centered and bold - Content left-aligned with appropriate spacing - Professional layout suitable for official documents - Add a note at the bottom: "This is a certified English translation of the original document" - Execute the script to generate the PDF 6. **Output**: Create a PDF file named `_Translated.pdf` in the same directory ## Supported Documents - Bank deposit certificates (存款证明) - Income certificates (收入证明) - Employment certificates (在职证明) - Retirement certificates (退休证明) - Property certificates (房产证明) - Business licenses (营业执照) - ID cards and passports - Other official documents ## Technical Implementation ### OCR Methods (tried in order) 1. **macOS Vision Framework** (macOS only): ```python import Vision from Foundation import NSURL ``` 2. **EasyOCR** (cross-platform): ```bash pip install easyocr ``` 3. **Tesseract OCR** (if available): ```bash brew install tesseract tesseract-lang pip install pytesseract ``` ### Required Python Libraries ```bash pip install pillow reportlab ``` For macOS Vision framework: ```bash pip install pyobjc-framework-Vision pyobjc-framework-Quartz ``` ## Important Guidelines - DO NOT ask for user confirmation at each step - Automatically determine the best rotation angle - Try multiple OCR methods if one fails - Ensure all numbers, dates, and amounts are accurately translated - Use clean, professional formatting - Complete the entire process and report the final PDF location ## Example Usage ```bash /visa-doc-translate RetirementCertificate.PNG /visa-doc-translate BankStatement.HEIC /visa-doc-translate EmploymentLetter.jpg ``` ## Output Example The skill will: 1. Extract text using available OCR method 2. Translate to professional English 3. Generate `_Translated.pdf` with: - Page 1: Original document image - Page 2: Professional English translation Perfect for visa applications to Australia, USA, Canada, UK, and other countries requiring translated documents.

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Api Gateway

通过 Maton 网关调用第三方 API, 它为用户已经连接的应用程序注入证书 。 当用户命名一个连接的应用程序和其中的具体行动时使用此技能——读取一个邮箱,查询一个CMM,归档一个问题,更新一个电子表格,通过一个连接的搜索或刮取提供者运行一个查询. 每一次通话都到用户连接的应用…