azure-ai-translation-document-py

azure-ai-translation-document-py is a skill for Claude Code from satnamrsm/https-github.com-sickn33-antigravity-awesome-skills. It costs 41 tokens per session (1,410 once invoked), scanned A, a copy of azure-ai-translation-document-py, MIT.

A Python client library for Azure's document translation service. It translates batches of Word, PDF, Excel, PowerPoint, and other documents while preserving their formatting.

In plain words
What is it for?
Use it to translate groups of documents stored in cloud storage, including PDF files, while keeping their formats.
Why use it?
It avoids manually extracting, translating, and rebuilding documents, which can damage their original layout.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the antigravity-awesome-skills plugin — 198 skills shipped together

Good fit Use it to translate groups of documents stored in cloud storage, including PDF files, while keeping their formats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills/azure-ai-translation-document-py
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add satnamrsm/https-github.com-sickn33-antigravity-awesome-skills --skill azure-ai-translation-document-py
Clone the repo
git clone --depth 1 https://github.com/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills

Made for: Claude Code.

Or install antigravity-awesome-skills, the plugin that ships this one along with the rest of its 198 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-ai-translation-document-py

README.md
[![agentmods](https://agentmods.dev/badge/skills/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills/azure-ai-translation-document-py/github.svg)](https://agentmods.dev/skills/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills/azure-ai-translation-document-py)
Your own site
<a href="https://agentmods.dev/skills/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills/azure-ai-translation-document-py"><img src="https://agentmods.dev/badge/skills/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills/azure-ai-translation-document-py/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-ai-translation-document-py

Your own site · 80×15
<a href="https://agentmods.dev/skills/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills/azure-ai-translation-document-py"><img src="https://agentmods.dev/badge/skills/satnamrsm/https-github.com-sickn33-antigravity-awesome-skills/azure-ai-translation-document-py.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01410
Opus 5 $0.00020 $0.00705
Sonnet 5 $0.00008 $0.00282
Haiku 4.5 $0.00004 $0.00141

Measured 7d ago against content hash 251858076e28, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

azure-ai-translation-document-py scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to azure-ai-translation-document-py — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/azure-ai-translation-document-py/SKILL.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure AI Document Translation SDK for Python

Client library for Azure AI Translator document translation service for batch document translation with format preservation.

Installation

pip install azure-ai-translation-document

Environment Variables

AZURE_DOCUMENT_TRANSLATION_ENDPOINT=https://<resource>.cognitiveservices.azure.com
AZURE_DOCUMENT_TRANSLATION_KEY=<your-api-key>  # If using API key

# Storage for source and target documents
AZURE_SOURCE_CONTAINER_URL=https://<storage>.blob.core.windows.net/<container>?<sas>
AZURE_TARGET_CONTAINER_URL=https://<storage>.blob.core.windows.net/<container>?<sas>

Authentication

API Key

import os
from azure.ai.translation.document import DocumentTranslationClient
from azure.core.credentials import AzureKeyCredential

endpoint = os.environ["AZURE_DOCUMENT_TRANSLATION_ENDPOINT"]
key = os.environ["AZURE_DOCUMENT_TRANSLATION_KEY"]

client = DocumentTranslationClient(endpoint, AzureKeyCredential(key))

Entra ID (Recommended)

from azure.ai.translation.document import DocumentTranslationClient
from azure.identity import DefaultAzureCredential

client = DocumentTranslationClient(
    endpoint=os.environ["AZURE_DOCUMENT_TRANSLATION_ENDPOINT"],
    credential=DefaultAzureCredential()
)

Basic Document Translation

from azure.ai.translation.document import DocumentTranslationInput, TranslationTarget

source_url = os.environ["AZURE_SOURCE_CONTAINER_URL"]
target_url = os.environ["AZURE_TARGET_CONTAINER_URL"]

# Start translation job
poller = client.begin_translation(
    inputs=[
        DocumentTranslationInput(
            source_url=source_url,
            targets=[
                TranslationTarget(
                    target_url=target_url,
                    language="es"  # Translate to Spanish
                )
            ]
        )
    ]
)

# Wait for completion
result = poller.result()

print(f"Status: {poller.status()}")
print(f"Documents translated: {poller.details.documents_succeeded_count}")
print(f"Documents failed: {poller.details.documents_failed_count}")

Read the full file on GitHub · 253 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 253 lines · 41 tokens per session scan A 251858076e28

Subscribe to this mod's changes

azure-ai-translation-document-py is a skill published in the GitHub repository satnamrsm/https-github.com-sickn33-antigravity-awesome-skills (5 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,410 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to azure-ai-translation-document-py, differing in 6 lines, and is treated as a copy.

Related

Other skills, from other repositories

translate-book

Translate books (PDF/DOCX/EPUB) into any language using parallel sub-agents. Converts input -> Markdown chunks -> translated chunks -> HTML/DOCX/EPUB/PDF.

deusyu/translate-book · 42 tokens

pdf_translator

Extract text from PDF files, translate it to a target language, and save the result as a Markdown file. Use this skill when the user wants to translate a PDF document or asks to "convert PDF to Chinese".

ForceInjection/AI-fundamentals · 47 tokens

docutranslate

Use when translating documents locally via LLM — PDF, Word, Excel, Markdown, SRT subtitles with format preservation. DocuTranslate: LLM-powered multi-format local file translation tool with MCP server support.

znlgis/opengis-skills · 47 tokens

lov-academic-translator

A tool for translating English research papers, journal or conference articles, arXiv papers, and technical PDFs into Chinese PDFs or publishable Chinese Markdown. It can preserve requested images, formulas, page matching, and layout details.

lovstudio/skills · 87 tokens

hebrew-document-generator

Generate Hebrew documents (PDF, DOCX/Word, PPTX) with correct right-to-left layout, mixed Hebrew-and-English bidi handling, and Hebrew typography. Use whenever the output is a Hebrew or mixed Hebrew/English Word document, Hebrew PDF, or Hebrew PowerPoint ("Hebrew Word document", "מסמך Word בעברית", "create a .docx in…

skills-il/localization · 247 tokens

pdf-translate

Translate local PDFs, including safe prose on image-only scans, into Vietnamese or another supported Latin-script language while preserving layout, formulas, tables, and figures. Use for PDF translation, OCR-assisted scan translation, batch translation, terminology-sensitive handoff translation, or diagnosing…

breslee1707/VI-Translate · 77 tokens