azure-ai-translation-document-py

azure-ai-translation-document-py is a skill for Claude Code from Ghosteken/agent-harness. It costs 41 tokens per session (1,470 once invoked), scanned A, a copy of azure-ai-translation-document-py, MIT.

A Python client library for Azure's document translation service, which translates Word, PDF, Excel, PowerPoint, and other files while preserving their layout.

In plain words
What is it for?
Use it to submit batches of documents for translation and retrieve translated files from cloud storage.
Why use it?
It removes the need to convert documents into plain text and rebuild their formatting after translation.

Skill for Claude Code

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

Part of the agent-harness plugin — 173 skills, 14 commands, 12 agents shipped together

Good fit Use it to submit batches of documents for translation and retrieve translated files from cloud storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ghosteken/agent-harness/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 Ghosteken/agent-harness --skill azure-ai-translation-document-py
Clone the repo
git clone --depth 1 https://github.com/Ghosteken/agent-harness

Made for: Claude Code.

Or install agent-harness, the plugin that ships this one along with the rest of its 173 skills, 14 commands, 12 agents.

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/ghosteken/agent-harness/azure-ai-translation-document-py/github.svg)](https://agentmods.dev/skills/ghosteken/agent-harness/azure-ai-translation-document-py)
Your own site
<a href="https://agentmods.dev/skills/ghosteken/agent-harness/azure-ai-translation-document-py"><img src="https://agentmods.dev/badge/skills/ghosteken/agent-harness/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/ghosteken/agent-harness/azure-ai-translation-document-py"><img src="https://agentmods.dev/badge/skills/ghosteken/agent-harness/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,470 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 80% 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.01470
Opus 5 $0.00020 $0.00735
Sonnet 5 $0.00008 $0.00294
Haiku 4.5 $0.00004 $0.00147

Measured 9d ago against content hash 971bb7681e95, 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 9d 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

80% identical to azure-ai-translation-document-py — 11 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.

archive/skills-community/azure-ai-translation-document-py/SKILL.md · 258 lines

How it starts

The opening of the file, as written. The whole thing — 258 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 · 258 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. 9d ago First seen · 258 lines · 41 tokens per session scan A 971bb7681e95

Subscribe to this mod's changes

azure-ai-translation-document-py is a skill published in the GitHub repository Ghosteken/agent-harness (2 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,470 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 80% identical to azure-ai-translation-document-py, differing in 11 lines, and is treated as a copy.

Related

Other skills, from other repositories

gemini-omni-video

Plan and generate or edit video effectively with Google Gemini Omni Flash through current fal.ai endpoints. Use when a production selects or considers Gemini Omni, Google Omni, or Gemini Omni Flash for text-to-video, image-to-video, reference-to-video, conversational video editing, localized revisions, multimodal…

manishiitg/coding-agent-loop · 88 tokens

china-market-localization-strategist

Skill "china-market-localization-strategist" from aimerdoux/wavex-os, covering china market localization strategist, 🧠 your identity & memory, 🎯 your core mission, 1. real-time trend intelligence & signal detection and 2. market opportunity extraction (trend → action).

aimerdoux/wavex-os · 0 tokens

korean-business-navigator

Skill "korean-business-navigator" from aimerdoux/wavex-os, covering 🧠 your identity & memory, 💬 your communication style, 🚨 critical rules you must follow, 🎯 your core mission and 📋 your technical deliverables.

aimerdoux/wavex-os · 0 tokens

language-translator

Skill "language-translator" from aimerdoux/wavex-os, covering 🌐 language translator, 🧠 your identity & memory, 🎯 your core mission, 🚨 critical rules you must follow and 📋 your technical deliverables.

aimerdoux/wavex-os · 0 tokens

seo-specialist

Skill "seo-specialist" from aimerdoux/wavex-os, covering marketing baidu seo specialist, 🧠 your identity & memory, 🎯 your core mission, master baidu's unique search algorithm and build comprehensive china search visibility.

aimerdoux/wavex-os · 0 tokens

cultural-intelligence-strategist

Skill "cultural-intelligence-strategist" from aimerdoux/wavex-os, covering 🌍 cultural intelligence strategist, 🧠 your identity & memory, 🎯 your core mission, 🚨 critical rules you must follow and 📋 your technical deliverables.

aimerdoux/wavex-os · 0 tokens