Communitygithub.com

visa-doc-translate

ビザ申請用書類(画像)を英語に翻訳し、原文と翻訳文を含むバイリンガルPDFを生成します。

visa-doc-translate とは?

このスキルは、ビザ申請に必要な公的文書(銀行残高証明書、在職証明書、退職証明書など)の画像を自動的に処理し、専門的な英語翻訳付きのバイリンガルPDFを生成します。ユーザーが画像ファイルパスを指定すると、HEICからPNGへの変換、EXIFに基づく自動回転、OCRテキスト抽出(macOS Visionフレームワーク、EasyOCR、Tesseract OCRを自動的に試行)、プロフェッショナルな英語翻訳、そしてPILとReportLabを用いたPDF生成を一切の確認なしに自動実行します。macOSに加え、EasyOCRによりクロスプラットフォームでも利用可能で、出力されるPDFはA4サイズで1ページ目に原稿画像、2ページ目に整形された翻訳文が配置され、末尾に「This is a certified English translation of the original document」の注記が付加されます。主にオーストラリア、アメリカ、カナダ、イギリスなど、翻訳文書提出が必要なビザ申請で活用できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/visa-doc-translate

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

あなたはビザ申請書類の翻訳を支援しています。

指示

ユーザーが画像ファイルパスを指定したら、確認を求めずに以下の手順を自動的に実行してください:

  1. 画像変換:HEICファイルの場合は、sips -s format png <入力> --out <出力> でPNGに変換します

  2. 画像回転:

    • EXIFの向きデータを確認する
    • EXIFデータに基づいて自動的に回転する
    • EXIFの向きが6の場合は反時計回りに90度回転する
    • 必要に応じて追加の回転を適用する(文書が上下逆に見える場合は180度回転を試す)
  3. OCRテキスト抽出:

    • 複数のOCR手法を自動的に試行する:
      • macOS Visionフレームワーク(macOSで推奨)
      • EasyOCR(クロスプラットフォーム、tesseract不要)
      • Tesseract OCR(利用可能な場合)
    • 文書から全てのテキスト情報を抽出する
    • 文書の種類を特定する(残高証明書、在職証明書、退職証明書など)
  4. 翻訳:

    • 全てのテキスト内容を専門的に英語に翻訳する
    • 元の文書構造と形式を維持する
    • ビザ申請に適した専門用語を使用する
    • 固有名詞は原語のまま、英語訳を括弧内に記載する
    • 中国語の名前はピンイン形式を使用する(例:WU Zhengye)
    • 数字、日付、金額は正確に保持する
  5. PDF生成:

    • PILとreportlabライブラリを使用したPythonスクリプトを作成する
    • 1ページ目:回転後の原画像をA4サイズに中央揃え・拡大縮小して表示
    • 2ページ目:英語翻訳を適切に整形して表示:
      • タイトルは中央揃えで太字
      • 内容は左揃えで適切な間隔
      • 公文書に適したプロフェッショナルなレイアウト
    • 下部に注記を追加:「This is a certified English translation of the original document」
    • スクリプトを実行してPDFを生成する
  6. 出力:<元のファイル名>_Translated.pdf という名前のPDFファイルを同じディレクトリに作成する

対応文書

  • 銀行残高証明書(存款証明)
  • 収入証明書(收入証明)
  • 在職証明書(在職証明)
  • 退職証明書(退職証明)
  • 不動産証明書(房産証明)
  • 営業許可証(営業執照)
  • 身分証明書およびパスポート
  • その他の公的文書

技術実装

OCR手法(優先順に試行)

  1. macOS Visionフレームワーク(macOSのみ):

    import Vision
    from Foundation import NSURL
    
  2. EasyOCR(クロスプラットフォーム):

    pip install easyocr
    
  3. 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

重要なガイドライン

  • 各ステップでユーザーに確認を求めないでください
  • 最適な回転角度を自動的に判断してください
  • 一つのOCR方法が失敗した場合は別の方法を試行してください
  • 全ての数字、日付、金額が正確に翻訳されていることを確認してください
  • 清潔でプロフェッショナルな書式を使用してください
  • 全プロセスを完了し、最終的なPDFの場所を報告してください

使用例

/visa-doc-translate RetirementCertificate.PNG
/visa-doc-translate BankStatement.HEIC
/visa-doc-translate EmploymentLetter.jpg

出力例

このスキルは次のことを行います:

  1. 利用可能なOCR手法を使用してテキストを抽出
  2. プロフェッショナルな英語に翻訳
  3. <ファイル名>_Translated.pdf を生成し、内容は以下の通り:
    • 1ページ目:原文書の画像
    • 2ページ目:プロフェッショナルな英語翻訳

オーストラリア、アメリカ、カナダ、イギリスなど、翻訳文書の提出が必要なビザ申請に最適です。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

関連スキル