Visa doc translate

From ysyecust/everything-claude-code · View interactive version

Visa doc translate is an AI agent skill from the GitHub repository ysyecust/everything-claude-code. Translate visa application documents (images) to English and create a bilingual PDF with original and translation

How to use this skill

Skill file

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>
  1. Image Rotation:
  1. OCR Text Extraction:
  1. Translation:
  1. PDF Generation:
  1. Output: Create a PDF file named <original_filename>_Translated.pdf in the same directory

Supported Documents

Technical Implementation

OCR Methods (tried in order)

  1. macOS Vision Framework (macOS only):

```python

import Vision

from Foundation import NSURL

```

  1. EasyOCR (cross-platform):

```bash

pip install easyocr

```

  1. Tesseract OCR (if available):

```bash

brew install tesseract tesseract-lang

pip install pytesseract

```

Required Python Libraries

pip install pillow reportlab

For macOS Vision framework:

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

Important Guidelines

Example Usage

/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 <filename>_Translated.pdf with:

Perfect for visa applications to Australia, USA, Canada, UK, and other countries requiring translated documents.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.