KS
Killer-Skills

visa-doc-translate — how to use visa-doc-translate how to use visa-doc-translate, visa-doc-translate setup guide, automated document translation, EXIF orientation data, HEIC to PNG conversion, visa application process optimization, bilingual PDF creation, image rotation and conversion

Verified
v1.0.0
GitHub

About this Skill

Essential for Document Processing Agents handling international visa applications with image-based documentation. visa-doc-translate is an AI agent skill that translates visa application documents to English, creating bilingual PDFs with original and translated content.

Features

Automatically converts HEIC images to PNG using `sips -s format png` command
Rotates images based on EXIF orientation data for proper alignment
Supports 90-degree rotation for EXIF orientation 6
Creates bilingual PDFs with original and translated document content
Executes image conversion and rotation without requiring user confirmation

# Core Topics

affaan-m affaan-m
[62.0k]
[7678]
Updated: 3/6/2026

Quality Score

Top 5%
95
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add affaan-m/everything-claude-code/visa-doc-translate

Agent Capability Analysis

The visa-doc-translate MCP Server by affaan-m is an open-source Categories.official integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use visa-doc-translate, visa-doc-translate setup guide, automated document translation.

Ideal Agent Persona

Essential for Document Processing Agents handling international visa applications with image-based documentation.

Core Value

Automates HEIC to PNG conversion using sips command-line tool and performs EXIF-based image rotation (specifically handling orientation 6 with 90-degree counterclockwise rotation) to ensure proper document alignment before OCR processing for translation workflows.

Capabilities Granted for visa-doc-translate MCP Server

Automating visa document translation pipelines
Processing HEIC images from mobile devices for official applications
Creating bilingual PDFs for immigration authorities
Handling EXIF orientation corrections for scanned documents

! Prerequisites & Limits

  • Requires macOS for sips utility
  • Dependent on EXIF metadata for rotation
  • Input limited to image file paths
  • No built-in OCR capability - requires integration with translation service
Project
SKILL.md
3.6 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8
SKILL.md
Readonly

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.)
  4. Translation:

    • Translate all text content to English professionally
    • Maintain the original document structure and format
    • Use professional terminology appropriate for visa applications
    • Keep proper names in original language with English in parentheses
    • For Chinese names, use pinyin format (e.g., WU Zhengye)
    • Preserve all numbers, dates, and amounts accurately
  5. PDF Generation:

    • Create a Python script using PIL and reportlab libraries
    • Page 1: Display the rotated original image, centered and scaled to fit A4 page
    • Page 2: Display the English translation with proper formatting:
      • Title centered and bold
      • Content left-aligned with appropriate spacing
      • Professional layout suitable for official documents
    • Add a note at the bottom: "This is a certified English translation of the original document"
    • Execute the script to generate the PDF
  6. Output: Create a PDF file named <original_filename>_Translated.pdf in the same directory

Supported Documents

  • Bank deposit certificates (存款证明)
  • Income certificates (收入证明)
  • Employment certificates (在职证明)
  • Retirement certificates (退休证明)
  • Property certificates (房产证明)
  • Business licenses (营业执照)
  • ID cards and passports
  • Other official documents

Technical Implementation

OCR Methods (tried in order)

  1. macOS Vision Framework (macOS only):

    python
    1import Vision 2from Foundation import NSURL
  2. EasyOCR (cross-platform):

    bash
    1pip install easyocr
  3. Tesseract OCR (if available):

    bash
    1brew install tesseract tesseract-lang 2pip install pytesseract

Required Python Libraries

bash
1pip install pillow reportlab

For macOS Vision framework:

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

Important Guidelines

  • DO NOT ask for user confirmation at each step
  • Automatically determine the best rotation angle
  • Try multiple OCR methods if one fails
  • Ensure all numbers, dates, and amounts are accurately translated
  • Use clean, professional formatting
  • Complete the entire process and report the final PDF location

Example Usage

bash
1/visa-doc-translate RetirementCertificate.PNG 2/visa-doc-translate BankStatement.HEIC 3/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:
    • Page 1: Original document image
    • Page 2: Professional English translation

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

Related Skills

Looking for an alternative to visa-doc-translate or building a Categories.official AI Agent? Explore these related open-source MCP Servers.

View All

flags

Logo of facebook
facebook

flags is a feature flag management system that enables developers to check flag states, compare channels, and debug feature behavior differences across release channels.

243.6k
0
Design

extract-errors

Logo of facebook
facebook

extract-errors is a skill that assists in extracting and managing error codes in React applications using yarn extract-errors command.

243.6k
0
Design

fix

Logo of facebook
facebook

fix is a technical skill that resolves lint errors, formatting issues, and ensures code quality in declarative, frontend, and UI projects

243.6k
0
Design

flow

Logo of facebook
facebook

Flow is a type checking system for JavaScript, used to validate React code and ensure consistency across applications

243.6k
0
Design