affaan-m/ECC/docs/zh-CN/skills/visa-doc-translate/SKILL.md
visa-doc-translate
Use it for translation tasks; the detail page covers purpose, installation, and practical steps.
- Source repository stars
- 234,327
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-07-27
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
当用户提供图像文件路径时,自动执行以下步骤,无需请求确认:
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/visa-doc-translate"Inspect the Agent Skill "visa-doc-translate" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/zh-CN/skills/visa-doc-translate/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
说明
当用户提供图像文件路径时,自动执行以下步骤,无需请求确认:
图像转换:如果文件是 HEIC 格式,使用 sips -s format png --out 将其转换为 PNG图像旋转:检查 EXIF 方向数据 - 02
支持的文档
银行存款证明 (存款证明) 收入证明 (收入证明) 在职证明 (在职证明) 退休证明 (退休证明) 房产证明 (房产证明) 营业执照 (营业执照) 身份证和护照 其他官方文件
银行存款证明 (存款证明)收入证明 (收入证明)在职证明 (在职证明) - 03
技术实现
1. macOS Vision 框架(仅限 macOS):
macOS Vision 框架(仅限 macOS):EasyOCR(跨平台):Tesseract OCR(如果可用):
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 59/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 234,327 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | catalog record | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- affaan-m/ECC
- Skill path
- docs/zh-CN/skills/visa-doc-translate/SKILL.md
- Commit
- 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
您正在协助翻译用于签证申请的签证申请文件。
说明
当用户提供图像文件路径时,自动执行以下步骤,无需请求确认:
-
图像转换:如果文件是 HEIC 格式,使用
sips -s format png <input> --out <output>将其转换为 PNG -
图像旋转:
- 检查 EXIF 方向数据
- 根据 EXIF 数据自动旋转图像
- 如果 EXIF 方向是 6,则逆时针旋转 90 度
- 根据需要应用额外旋转(如果文档看起来上下颠倒,则测试 180 度)
-
OCR 文本提取:
- 自动尝试多种 OCR 方法:
- macOS Vision 框架(macOS 首选)
- EasyOCR(跨平台,无需 tesseract)
- Tesseract OCR(如果可用)
- 从文档中提取所有文本信息
- 识别文档类型(存款证明、在职证明、退休证明等)
- 自动尝试多种 OCR 方法:
-
翻译:
- 专业地将所有文本内容翻译成英文
- 保持原始文档的结构和格式
- 使用适合签证申请的专业术语
- 保留专有名词的原始语言,并在括号内附上英文
- 对于中文姓名,使用拼音格式(例如,WU Zhengye)
- 准确保留所有数字、日期和金额
-
PDF 生成:
- 使用 PIL 和 reportlab 库创建 Python 脚本
- 第 1 页:显示旋转后的原始图像,居中并缩放到适合 A4 页面
- 第 2 页:以适当格式显示英文翻译:
- 标题居中并加粗
- 内容左对齐,间距适当
- 适合官方文件的专业布局
- 在底部添加注释:"This is a certified English translation of the original document"
- 执行脚本以生成 PDF
-
输出:在同一目录中创建名为
<original_filename>_Translated.pdf的 PDF 文件
支持的文档
- 银行存款证明 (存款证明)
- 收入证明 (收入证明)
- 在职证明 (在职证明)
- 退休证明 (退休证明)
- 房产证明 (房产证明)
- 营业执照 (营业执照)
- 身份证和护照
- 其他官方文件
技术实现
OCR 方法(按顺序尝试)
-
macOS Vision 框架(仅限 macOS):
import Vision from Foundation import NSURL -
EasyOCR(跨平台):
pip install easyocr -
Tesseract OCR(如果可用):
brew install tesseract tesseract-lang pip install pytesseract
必需的 Python 库
pip install pillow reportlab
对于 macOS Vision 框架:
pip install pyobjc-framework-Vision pyobjc-framework-Quartz
重要指南
- 请勿在每个步骤都要求用户确认
- 自动确定最佳旋转角度
- 如果一种 OCR 方法失败,请尝试多种方法
- 确保所有数字、日期和金额都准确翻译
- 使用简洁、专业的格式
- 完成整个流程并报告最终 PDF 的位置
使用示例
/visa-doc-translate RetirementCertificate.PNG
/visa-doc-translate BankStatement.HEIC
/visa-doc-translate EmploymentLetter.jpg
输出示例
该技能将:
- 使用可用的 OCR 方法提取文本
- 翻译成专业英文
- 生成
<filename>_Translated.pdf,其中包含:- 第 1 页:原始文档图像
- 第 2 页:专业的英文翻译
非常适合需要翻译文件的澳大利亚、美国、加拿大、英国及其他国家的签证申请。
Alternatives
Compare before choosing
affaan-m/ECC
visa-doc-translate
Translate visa application documents (images) to English and create a bilingual PDF with original and translation
affaan-m/ECC
visa-doc-translate
Use it for translation tasks; the detail page covers purpose, installation, and practical steps.
affaan-m/ECC
videodb
See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, v
wshobson/agents
brand-landingpage
Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens —