Skip to content
affaan-m avatar

Visa Doc Translate

Translates visa document images to English via OCR and builds a bilingual PDF of original and translation.

CCM score
63 of 100
skills.sh installs
11.8K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bank deposit, employment, income, and retirement certificates, plus property certificates, business licenses, IDs, and passports
  • Accepts HEIC, PNG, and JPG inputs, converting HEIC with sips and correcting rotation from EXIF data
  • Tries macOS Vision, then EasyOCR, then Tesseract, and renders names as pinyin with English in parentheses
  • Outputs <filename>_Translated.pdf with the rotated original on page 1 and a formatted translation on page 2

Install

$ npx -y skills add affaan-m/ecc --skill visa-doc-translate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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 <input> --out <output>

  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.)

Details

Repository
github.com/affaan-m/ecc
Categories
Office Files & Slides, Business, Legal & HR
First seen
Jul 14, 2026

Questions

What does the visa-doc-translate skill do?

It translates visa document images such as bank deposit, employment, income and retirement certificates into English via OCR. It then produces a bilingual PDF that pairs the original image with a formatted certified-style translation on the following page.

Which file formats does visa-doc-translate accept?

The skill accepts HEIC, PNG and JPG images. HEIC files are converted to PNG with the macOS sips command before OCR runs.

How do I install visa-doc-translate?

Run npx -y skills add affaan-m/ecc --skill visa-doc-translate -y in your project. Once installed, you can run it as /visa-doc-translate followed by an image file name.

What does visa-doc-translate need to run?

It needs Python with the pillow and reportlab packages. For OCR it tries macOS Vision first, then EasyOCR, then Tesseract, so one of those engines must be available.

Where does visa-doc-translate rank in its category?

It sits in the top 100 of the Office Files & Slides category on Claude Marketplaces. Other skills in that category include slideshow and several lark skills, and this one stands out by focusing on translating visa paperwork into a bilingual PDF.

More from affaan-m/ecc

All 257

Similar to Visa Doc Translate

More Office Files & Slides