Communitygithub.com

visa-doc-translate

Übersetzt Bilder von Visumsantragsunterlagen ins Englische und erstellt ein zweisprachiges PDF mit Original und Übersetzung.

Was ist visa-doc-translate?

Dieses Skill automatisiert die Übersetzung von gescannten Visumsantragsunterlagen (z. B. Kontoauszüge, Arbeitsbescheinigungen) ins Englische und generiert ein professionelles, zweisprachiges PDF. Es ist ideal für Antragsteller und Agenturen, die Unterlagen für Australien, die USA, Kanada, Großbritannien und andere Länder einreichen. Der Skill unterstützt macOS und plattformunabhängige OCR-Methoden (macOS Vision, EasyOCR, Tesseract) und führt alle Schritte automatisch aus: Bildkonvertierung (HEIC → PNG), automatische Rotation anhand von EXIF-Daten, Texterkennung, professionelle Übersetzung (mit korrekter Beibehaltung von Zahlen, Daten und Eigennamen) sowie PDF-Erstellung mit PIL und reportlab. Das Ergebnis ist ein PDF mit der originalgetreuen Abbildung des Dokuments auf Seite 1 und einer beglaubigten englischen Übersetzung auf Seite 2, inklusive Hinweis auf die Zertifizierung. Der Benutzer muss lediglich den Dateipfad angeben; alle weiteren Schritte erfolgen ohne Nachfrage.

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

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Du hilfst bei der Übersetzung von Visumsantragsunterlagen für Visa-Anträge.

Anweisungen

Wenn der Benutzer einen Dateipfad zu einem Bild angibt, führe AUTOMATISCH die folgenden Schritte aus, OHNE um Bestätigung zu bitten:

  1. Bildkonvertierung: Falls die Datei im HEIC-Format vorliegt, konvertiere sie mit sips -s format png <input> --out <output> in PNG.

  2. Bildrotation:

    • Überprüfe die EXIF-Orientierungsdaten
    • Rotiere das Bild automatisch basierend auf den EXIF-Daten
    • Falls die EXIF-Orientierung 6 ist, rotiere um 90 Grad gegen den Uhrzeigersinn
    • Wende bei Bedarf zusätzliche Rotation an (teste 180 Grad, wenn das Dokument auf dem Kopf zu stehen scheint)
  3. OCR-Texterkennung:

    • Probiere mehrere OCR-Methoden automatisch aus:
      • macOS Vision Framework (bevorzugt auf macOS)
      • EasyOCR (plattformunabhängig, kein Tesseract erforderlich)
      • Tesseract OCR (falls verfügbar)
    • Extrahiere alle Textinformationen aus dem Dokument
    • Identifiziere den Dokumenttyp (Einlagenbescheinigung, Arbeitsbescheinigung, Rentenbescheinigung, usw.)
  4. Übersetzung:

    • Übersetze den gesamten Textinhalt professionell ins Englische
    • Behalte die ursprüngliche Dokumentenstruktur und das Format bei
    • Verwende Fachterminologie, die für Visumsanträge geeignet ist
    • Lasse Eigennamen in der Originalsprache stehen und füge die englische Übersetzung in Klammern hinzu
    • Verwende für chinesische Namen die Pinyin-Umschrift (z. B. WU Zhengye)
    • Bewahre alle Zahlen, Daten und Beträge genau
  5. PDF-Erstellung:

    • Erstelle ein Python-Skript mit den Bibliotheken PIL und reportlab
    • Seite 1: Zeige das rotierte Originalbild, zentriert und skaliert auf A4-Seite
    • Seite 2: Zeige die englische Übersetzung mit korrekter Formatierung:
      • Titel zentriert und fett
      • Inhalt linksbündig mit angemessenem Abstand
      • Professionelles Layout, geeignet für offizielle Dokumente
    • Füge eine Fußnote hinzu: "This is a certified English translation of the original document"
    • Führe das Skript aus, um das PDF zu erstellen
  6. Ausgabe: Erstelle eine PDF-Datei mit dem Namen <ursprünglicher_Dateiname>_Translated.pdf im selben Verzeichnis

Unterstützte Dokumente

  • Bankeinlagenbescheinigungen (存款证明)
  • Einkommensbescheinigungen (收入证明)
  • Arbeitsbescheinigungen (在职证明)
  • Rentenbescheinigungen (退休证明)
  • Grundstücksbescheinigungen (房产证明)
  • Gewerbeanmeldungen (营业执照)
  • Personalausweise und Reisepässe
  • Andere offizielle Dokumente

Technische Umsetzung

OCR-Methoden (in der Reihenfolge des Versuchs)

  1. macOS Vision Framework (nur macOS):

    import Vision
    from Foundation import NSURL
    
  2. EasyOCR (plattformunabhängig):

    pip install easyocr
    
  3. Tesseract OCR (falls verfügbar):

    brew install tesseract tesseract-lang
    pip install pytesseract
    

Erforderliche Python-Bibliotheken

pip install pillow reportlab

Für das macOS Vision Framework:

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

Wichtige Richtlinien

  • Frage den Benutzer NICHT bei jedem Schritt um Bestätigung
  • Bestimme automatisch den optimalen Rotationswinkel
  • Probiere mehrere OCR-Methoden aus, falls eine fehlschlägt
  • Stelle sicher, dass alle Zahlen, Daten und Beträge genau übersetzt werden
  • Verwende eine saubere, professionelle Formatierung
  • Führe den gesamten Prozess durch und gib den endgültigen PDF-Speicherort an

Beispielverwendung

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

Ausgabebeispiel

Das Skill wird:

  1. Text mittels verfügbarer OCR-Methode extrahieren
  2. In professionelles Englisch übersetzen
  3. <Dateiname>_Translated.pdf erzeugen mit:
    • Seite 1: Originaldokument als Bild
    • Seite 2: Professionelle englische Übersetzung

Perfekt für Visumsanträge für Australien, die USA, Kanada, Großbritannien und andere Länder, die übersetzte Dokumente verlangen.

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.

Verwandte Skills