
If you've ever needed to translate official documents for a visa application, you know the pain of getting everything formatted correctly. This automates the whole pipeline: drop in an image (even HEIC files), and it handles OCR using whatever's available on your system (macOS Vision, EasyOCR, or Tesseract), translates the text to English, and spits out a bilingual PDF with the original on page one and translation on page two. The translation logic is tuned for visa docs specifically, using pinyin for Chinese names and keeping financial amounts precise. It's opinionated about formatting and runs the entire workflow without stopping to ask permission, which is exactly what you want for batch processing a stack of bank statements and employment letters.
$ npx -y skills add affaan-m/everything-claude-code --skill visa-doc-translate --agent claude-codeInstalls into .claude/skills of the current project.
You are helping translate visa application documents for visa applications.
When the user provides an image file path, AUTOMATICALLY execute the following steps WITHOUT asking for confirmation:
Image Conversion: If the file is HEIC, convert it to PNG using sips -s format png <input> --out <output>
Image Rotation:
OCR Text Extraction:
Translation:
PDF Generation:
Output: Create a PDF file named <original_filename>_Translated.pdf in the same directory
macOS Vision Framework (macOS only):
import Vision
from Foundation import NSURL
EasyOCR (cross-platform):
pip install easyocr
Tesseract OCR (if available):
brew install tesseract tesseract-lang
pip install pytesseract
pip install pillow reportlab
For macOS Vision framework:
pip install pyobjc-framework-Vision pyobjc-framework-Quartz
/visa-doc-translate RetirementCertificate.PNG
/visa-doc-translate BankStatement.HEIC
/visa-doc-translate EmploymentLetter.jpg
The skill will:
<filename>_Translated.pdf with:
Perfect for visa applications to Australia, USA, Canada, UK, and other countries requiring translated documents.
Sponsors