Agent skill

Visa Doc Translate

by affaan-m in affaan-m/ECC

“将签证申请文件(图片)翻译成英文,并创建包含原文和译文的双语PDF”

— description from SKILL.md by affaan-m
MITAuto-check passedDocuments & Office

Install Visa Doc Translate

skills CLI
$ npx skills add affaan-m/ECC --skill visa-doc-translate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC visa-doc-translate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/zh-CN/skills/visa-doc-translate .claude/skills/visa-doc-translate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
visa-doc-translate
GitHub stars
277k
Used in
3 other repos
Token cost
~508 tokens
SKILL.md length
162 words
Files
2
Skills in repo
683
Repo updated
First seen
Licence
MIT

At a glance

  • Works in 6 steps: 图像转换:如果文件是 HEIC 格式,使用 sips -s format png… → 图像旋转 → OCR 文本提取 → …
  • SKILL.md covers 说明, 支持的文档, 技术实现 and 重要指南, plus 2 more sections
  • Calls pip and brew

About this skill

Visa Doc Translate is a skill in affaan-m/ECC (277k stars). Its SKILL.md is about 508 tokens, with 1 other file in the folder, and copies of it appear in 3 other owners' repositories. Licence: MIT.

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. 图像转换:如果文件是 HEIC 格式,使用 sips -s format png --out 将其转换为 PNG
  2. 图像旋转
  3. OCR 文本提取
  4. 翻译
  5. PDF 生成
  6. 输出:在同一目录中创建名为 _Translated.pdf 的 PDF 文件

What it can do on your machine

Read from SKILL.md and the folder at commit 2d515e4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Visa Doc Translate loads about 508 tokens when it runs. Until then it costs about 13 tokens; SKILL.md has 162 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~13
When it runs · the whole SKILL.md, loaded when a task matches
~508

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit 2d515e4, republished under its MIT licence (© affaan-m). 162 words, ~508 tokens.

Download SKILL.mdSave it as .claude/skills/visa-doc-translate/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
visa-doc-translate
description
将签证申请文件(图片)翻译成英文,并创建包含原文和译文的双语PDF

您正在协助翻译用于签证申请的签证申请文件。

说明

当用户提供图像文件路径时,自动执行以下步骤,无需请求确认:

  1. 图像转换:如果文件是 HEIC 格式,使用 sips -s format png <input> --out <output> 将其转换为 PNG

  2. 图像旋转:

    • 检查 EXIF 方向数据
    • 根据 EXIF 数据自动旋转图像
    • 如果 EXIF 方向是 6,则逆时针旋转 90 度
    • 根据需要应用额外旋转(如果文档看起来上下颠倒,则测试 180 度)
  3. OCR 文本提取:

    • 自动尝试多种 OCR 方法:
      • macOS Vision 框架(macOS 首选)
      • EasyOCR(跨平台,无需 tesseract)
      • Tesseract OCR(如果可用)
    • 从文档中提取所有文本信息
    • 识别文档类型(存款证明、在职证明、退休证明等)
  4. 翻译:

    • 专业地将所有文本内容翻译成英文
    • 保持原始文档的结构和格式
    • 使用适合签证申请的专业术语
    • 保留专有名词的原始语言,并在括号内附上英文
    • 对于中文姓名,使用拼音格式(例如,WU Zhengye)
    • 准确保留所有数字、日期和金额
  5. PDF 生成:

    • 使用 PIL 和 reportlab 库创建 Python 脚本
    • 第 1 页:显示旋转后的原始图像,居中并缩放到适合 A4 页面
    • 第 2 页:以适当格式显示英文翻译:
      • 标题居中并加粗
      • 内容左对齐,间距适当
      • 适合官方文件的专业布局
    • 在底部添加注释:"This is a certified English translation of the original document"
    • 执行脚本以生成 PDF
  6. 输出:在同一目录中创建名为 <original_filename>_Translated.pdf 的 PDF 文件

支持的文档

  • 银行存款证明 (存款证明)
  • 收入证明 (收入证明)
  • 在职证明 (在职证明)
  • 退休证明 (退休证明)
  • 房产证明 (房产证明)
  • 营业执照 (营业执照)
  • 身份证和护照
  • 其他官方文件

技术实现

OCR 方法(按顺序尝试)
  1. macOS Vision 框架(仅限 macOS):

    python
    import Vision
    from Foundation import NSURL
  2. EasyOCR(跨平台):

    bash
    pip install easyocr
  3. Tesseract OCR(如果可用):

    bash
    brew install tesseract tesseract-lang
    pip install pytesseract
必需的 Python 库
bash
pip install pillow reportlab

对于 macOS Vision 框架:

bash
pip install pyobjc-framework-Vision pyobjc-framework-Quartz

重要指南

  • 请勿在每个步骤都要求用户确认
  • 自动确定最佳旋转角度
  • 如果一种 OCR 方法失败,请尝试多种方法
  • 确保所有数字、日期和金额都准确翻译
  • 使用简洁、专业的格式
  • 完成整个流程并报告最终 PDF 的位置

使用示例

bash
/visa-doc-translate RetirementCertificate.PNG
/visa-doc-translate BankStatement.HEIC
/visa-doc-translate EmploymentLetter.jpg

输出示例

该技能将:

  1. 使用可用的 OCR 方法提取文本
  2. 翻译成专业英文
  3. 生成 <filename>_Translated.pdf,其中包含:
    • 第 1 页:原始文档图像
    • 第 2 页:专业的英文翻译

非常适合需要翻译文件的澳大利亚、美国、加拿大、英国及其他国家的签证申请。

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in docs/zh-CN/skills/visa-doc-translate of affaan-m/ECC.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit 2d515e4

Used in 3 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in affaan-m/ECC, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Visa Doc Translate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Visa Doc Translate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Visa Doc Translate this skillaffaan-m/ECC277k3 repos~508Automated safety check: PassMIT
Huashu Md To PDFalchaincyf/huashu-skills1.7k—~824Automated safety check: PassMIT
Doc OCRdavepoon/buildwithclaude3.6k—~244Automated safety check: PassMIT
Compdf Conversion CLILeoYeAI/openclaw-master-skills2.2k—~5.9kAutomated safety check: PassProprietary
Scanned PDF To Epublonghaiqwe/scanned-pdf-to-epub161—~1.9kAutomated safety check: PassMIT
Rename Pdfsrealspqrk/autorename-pdf122—~541Automated safety check: PassMIT

Similar skills

  • Huashu Md To PDF

    alchaincyf/huashu-skills

    将 Markdown 文档转换为专业的 PDF 白皮书,采用苹果设计风格. An agent skill from alchaincyf/huashu-skills.

    1.7k GitHub stars~824 tokensUpdated 18 days ago
    Documents & OfficeAuto-check passed
  • Doc OCR

    davepoon/buildwithclaude

    文档文字识别。用户提供 PDF/扫描件/图片(合同、发票、书页、截图),需要提取文字、转成可编辑文本时使用。扫描件自动 OCR(macOS Vision,中英文)。Document OCR: extract editable text from PDFs, scans, and images (contracts, invoices, book pages, screenshots) via…

    3.6k GitHub stars~244 tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Compdf Conversion CLI

    LeoYeAI/openclaw-master-skills

    MUST use for ANY PDF or image format conversion task — converting PDF and images (JPG/JPEG/PNG/BMP/TIFF/TIF/WEBP/JPEG2000) to 10 formats (Word, Excel, PPT, HTML, Image, TXT, JSON, Markdown, RTF…

    2.2k GitHub stars~5.9k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Scanned PDF To Epub

    longhaiqwe/scanned-pdf-to-epub

    A skill your agent uses when scanned Chinese PDFs or image-only books need text EPUB conversion on macOS, Windows, or Linux, especially when OCR text, original underlined proper names, 专名号, or…

    161 GitHub stars~1.9k tokensUpdated 26 days ago
    Documents & OfficeAuto-check passed
  • Rename Pdfs

    realspqrk/autorename-pdf

    [Dev] Rename PDF files using AI (Python, requires venv). An agent skill from realspqrk/autorename-pdf.

    122 GitHub stars~541 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Omk PDF Gen

    KaimingWan/oh-my-kiro

    Generate professional PDF documents with correct CJK (Chinese/Japanese/Korean) rendering.

    107 GitHub stars~1.1k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check passed

More from affaan-m/ECC

All 682 skills in this repo
  • Skill Stocktake

    affaan-m/ECC

    Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.

    277k GitHub starsUsed in 5 repos~3.1k tokens
    Auto-check passed
  • Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.

    277k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Docs Governance

    affaan-m/ECC

    Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.

    277k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    277k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    277k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Set an ECC-specific frontend design direction for production UI work.

    277k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed

Works with

Questions about Visa Doc Translate

How do I install Visa Doc Translate in Claude Code?

Run `npx skills add affaan-m/ECC --skill visa-doc-translate -a claude-code`. Or copy the skill folder (docs/zh-CN/skills/visa-doc-translate in affaan-m/ECC) into .claude/skills/visa-doc-translate in your project. Claude Code loads it when a task matches its description.

How do I install Visa Doc Translate in Codex?

Run `npx skills add affaan-m/ECC --skill visa-doc-translate -a codex`. Or copy the skill folder (docs/zh-CN/skills/visa-doc-translate in affaan-m/ECC) into .agents/skills/visa-doc-translate in your project. Codex loads it when a task matches its description.

Can I use Visa Doc Translate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill visa-doc-translate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/visa-doc-translate, .gemini/skills/visa-doc-translate, .github/skills/visa-doc-translate and .opencode/skills/visa-doc-translate in your project.

What does Visa Doc Translate need to run?

Going by SKILL.md and its folder, Visa Doc Translate needs the command-line tools its instructions call (pip and brew).

Does Visa Doc Translate access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Visa Doc Translate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Visa Doc Translate use?

Visa Doc Translate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Visa Doc Translate use?

About 508 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Visa Doc Translate?

Skills that share tags, products or a category with Visa Doc Translate: Huashu Md To PDF (alchaincyf/huashu-skills, 1.7k stars), Doc OCR (davepoon/buildwithclaude, 3.6k stars), Compdf Conversion CLI (LeoYeAI/openclaw-master-skills, 2.2k stars) and Scanned PDF To Epub (longhaiqwe/scanned-pdf-to-epub, 161 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Visa Doc Translate?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,673 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 11, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.