
Visa Document Translator
FreeTranslate visa documents into English with ease.
Free · Opens the source repo
What Visa Document Translator does
The Visa Document Translator skill automates the process of translating visa application documents from various languages into English. Designed for individuals preparing visa applications, this skill simplifies the translation of essential documents such as bank statements, employment letters, and identification papers. By leveraging advanced optical character recognition (OCR) techniques and professional translation standards, it ensures that users can submit accurate and properly formatted documents for their visa applications.
Upon providing the path to an image file, the skill executes a series of automated steps without requiring user confirmation. It begins by converting HEIC format images to PNG, if necessary, and then checks the EXIF data to automatically rotate the image for correct orientation. The skill then employs multiple OCR methods to extract text, including macOS Vision, EasyOCR, and Tesseract, ensuring a high success rate in text recognition from various document types.
After extracting the text, the skill translates the content into English while preserving the original structure and formatting. It uses professional terminology suitable for visa applications and maintains the integrity of names and numerical data. Finally, the skill generates a bilingual PDF that includes the original document image on the first page and the English translation on the second page, formatted for official use. This seamless process is particularly beneficial for those needing certified translations for visa applications to countries like Australia, the USA, Canada, and the UK.
When to use it
Use this skill when you need to translate official documents for visa applications quickly and accurately.
When not to use it
This skill may not be suitable for documents that require translation into languages other than English or for non-visa-related documents.
What you can build with it
Translating a Bank Statement
Quickly translate a bank statement required for a visa application into English, ensuring all financial details are accurately represented.
Preparing Employment Verification
Use the skill to translate an employment verification letter, maintaining the professional format needed for visa submissions.
Converting Identification Documents
Effortlessly convert and translate identification documents like passports into English, ready for official use.
How to install Visa Document Translator
View source1. Install with the skills CLI
npx skills add affaan-m/ecc/visa-doc-translate --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by affaan-mビザ申請のためのビザ申請書類の翻訳を支援している。
手順
ユーザーが画像ファイルのパスを提供した場合、確認を求めずに以下の手順を自動的に実行する:
-
画像変換:ファイルがHEIC形式の場合、
sips -s format png <input> --out <output>を使用してPNGに変換する -
画像の回転:
- EXIFの向きデータを確認する
- EXIFデータに基づいて画像を自動的に回転させる
- EXIFの向きが6の場合は、反時計回りに90度回転させる
- 必要に応じて追加の回転を適用する(ドキュメントが上下逆に見える場合は180度をテストする)
-
OCRテキスト抽出:
- 複数のOCR方法を自動的に試みる:
- macOS Visionフレームワーク(macOS優先)
- EasyOCR(クロスプラットフォーム、tesseract不要)
- Tesseract OCR(利用可能な場合)
- ドキュメントからすべてのテキスト情報を抽出する
- ドキュメントの種類を識別する(預金証明書、在職証明書、退職証明書など)
- 複数のOCR方法を自動的に試みる:
-
翻訳:
- すべてのテキストコンテンツをプロフェッショナルに英語に翻訳する
- 元のドキュメントの構造とフォーマットを維持する
- ビザ申請に適した専門的な用語を使用する
- 固有名詞は元の言語を保持し、括弧内に英語を追記する
- 中国語の名前には拼音フォーマットを使用する(例:WU Zhengye)
- すべての数字、日付、金額を正確に保持する
-
PDF生成:
- PILとreportlabライブラリを使用してPythonスクリプトを作成する
- 第1ページ:回転後の元の画像を中央に配置し、A4ページに合わせてスケーリングして表示する
- 第2ページ:適切なフォーマットで英語翻訳を表示する:
- タイトルは中央揃えで太字
- コンテンツは左揃え、適切な間隔
- 公式文書に適したプロフェッショナルなレイアウト
- 下部に注記を追加する:"This is a certified English translation of the original document"
- スクリプトを実行してPDFを生成する
-
出力:同じディレクトリに
<original_filename>_Translated.pdfという名前のPDFファイルを作成する
対応ドキュメント
- 銀行預金証明書 (存款证明)
- 収入証明書 (收入证明)
- 在職証明書 (在职证明)
- 退職証明書 (退休证明)
- 不動産証明書 (房产证明)
- 営業許可証 (营业执照)
- 身分証明書とパスポート
- その他の公式文書
技術実装
OCR方法(順番に試す)
-
macOS Visionフレームワーク(macOSのみ):
import Vision from Foundation import NSURL -
EasyOCR(クロスプラットフォーム):
pip install easyocr -
Tesseract OCR(利用可能な場合):
brew install tesseract tesseract-lang pip install pytesseract
必要なPythonライブラリ
pip install pillow reportlab
macOS Visionフレームワークの場合:
pip install pyobjc-framework-Vision pyobjc-framework-Quartz
重要なガイドライン
- 各ステップでユーザーに確認を求めない
- 最適な回転角度を自動的に判断する
- 1つのOCR方法が失敗した場合は複数の方法を試みる
- すべての数字、日付、金額が正確に翻訳されることを確認する
- 簡潔でプロフェッショナルなフォーマットを使用する
- プロセス全体を完了し、最終PDFの場所を報告する
使用例
/visa-doc-translate RetirementCertificate.PNG
/visa-doc-translate BankStatement.HEIC
/visa-doc-translate EmploymentLetter.jpg
出力例
このスキルは以下を行う:
- 利用可能なOCR方法を使用してテキストを抽出する
- プロフェッショナルな英語に翻訳する
- 以下を含む
<filename>_Translated.pdfを生成する:- 第1ページ:元のドキュメント画像
- 第2ページ:プロフェッショナルな英語翻訳
オーストラリア、米国、カナダ、英国およびその他の国のビザ申請で翻訳書類が必要な場合に最適。
Frequently asked questions about Visa Document Translator
Similar skills
Baoyu Translate
Efficient translation with customizable modes and glossaries.
MkDocs AI Translator
Effortlessly translate MkDocs documentation into multiple languages.
Book Translation
Translate entire books into any language efficiently.
Blog Translate
Translate blog posts with SEO-optimized localization.
Book Translation
Translate chapters of 'The Interactive Book of Prompting'.
LinkedIn Post Formatter
Create engaging LinkedIn posts with Unicode styling.
