agentleFS
StefanoZaghi1987StefanoZaghi1987/ClaudeSkills/skills/technical-translation/SKILL.md

technical-translation

Skill2 starsChanged 22 days agoApache-2.0View on GitHub

Translate technical manuals, specs, safety guides between any languages, formatting preserved. Use for 'traduci questo manuale', 'translate this manual', a glossary file, XLSX. Output: DOCX, PDF, MD.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Pasted text: use it directly; derive the filename from the title or first heading (spaces → underscores, punctuation dropped except …

    line 19
  2. Distinctive:

    If no file, text, or URL arrives, ask for the document before anything else.

    line 22
  3. Distinctive:

    Ask only what the user's request has not already stated

    line 100
  4. Distinctive:

    If the user's reply does not choose, the defaults apply (English, .docx)

    line 101
  5. Very specific:

    If the user asks for a format outside A/B/C, say so now and offer Markdown.

    line 102
  6. Distinctive:

    After the answers: "Proceeding with automated translation to [LANGUAGE] as a [FORMAT] file.

    line 105
  7. Distinctive:

    Use industry-standard terminology exclusively

    line 112
  8. Distinctive:

    Never weaken hazard severity.

    line 122
  9. Distinctive:

    Create the deliverable in the format chosen in Phase 4:

    line 167
  10. Distinctive:

    Use closest industry-standard equivalent

    line 201

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Technical Translation System

Expert technical translator for industrial, automation, and manufacturing documentation, with Italian as its core source language and 20+ years domain expertise. Translates with fidelity to structure and formatting, technical accuracy, and regulatory compliance.

Automatic Workflow Execution

Execute all phases automatically once the Phase 4 configuration is answered. No intermediate user approvals required. Write every user-facing message, including the quoted templates, in the language of the user's request.

Phase 1: Document Intake and Size Evaluation (Automatic)

Receive the source document by whichever path the user provides:

  • Uploaded file: read the full content. A binary format the environment does not read directly (PDF, DOCX, XLSX) is extracted with the platform's document skills when available, otherwise with a short Python script - the routes are in references/local-python.md, "Reading the input" (python-docx for DOCX, pypdf for PDF, openpyxl for XLSX; ask the user before any pip install); if neither path is available (for example an XLSX file on a platform with no document skill for it and no way to run scripts), say so and ask the user to paste the text or upload a different format. A scanned, image-only PDF has no extractable text: say so and ask the user for a text version or a different file
  • Pasted text: use it directly; derive the filename from the title or first heading (spaces → underscores, punctuation dropped except hyphens, adjacent separators collapsed to one underscore), else use documento
  • URL: retrieve the page with the environment's web tools if it can; if it cannot, ask the user to paste the text or upload the file. A retrieved page takes its filename from its title or first heading, by the pasted-text rule, else from the last segment of its URL cleaned the same way (a segment can carry ?query or %20, which no filename may hold)

If no file, text, or URL arrives, ask for the document before anything else.

Several source documents in one request are translated one at a time. Each document runs through this workflow and gets its own deliverable, named by the Phase 7 rule. The Phase 4 configuration is asked once and applies to every document.

Then, automatically:

  1. Estimate token count of source document
  2. Determine processing strategy:
    • Single-chunk: Documents ≤30,000 tokens (~45 pages); the source, its translation, and the rebuilt output file must all fit one context window — when in doubt, use multi-chunk
    • Multi-chunk: Larger documents, segment at logical boundaries
  3. Inform user: "Document size: [X] tokens. Using [strategy]. Proceeding with analysis."

Multi-Chunk Protocol:

  • Segment at chapter/section boundaries
  • Maintain shared terminology database across chunks
  • Preserve formatting context between segments
  • Persist each translated segment as it completes — write it to the output file where the environment supports incremental writes — so completed work survives context limits before the final assembly; where the platform cannot write incrementally, keep the completed segments in the conversation and assemble the file at the end, and if the document exceeds what one run can hold, say so and suggest splitting the request or using Claude Code
  • Seamless reconstruction with unified quality control

Phase 2: Document Analysis (Automatic)

Analyze WITHOUT prompting user:

Document Classification:

  • Type: e.g. manual, specification, safety guide, installation, troubleshooting, parts catalog
  • Technical domains: e.g. mechanical, electrical, automation/control, safety, process engineering
  • Industry sector: e.g. automotive, food processing, packaging, manufacturing

Structure Mapping:

  • Complete hierarchy: sections, subsections, appendices, TOC, index
  • Critical elements: safety warnings (DANGER/WARNING/CAUTION/NOTICE), specifications, regulatory references (ISO/IEC/CE), part numbers
  • Formatting: fonts, styles, spacing, tables, lists, visual elements

Phase 3: Pre-Translation Preparation (Automatic)

Build automatically:

Terminology Database:

  • Technical terms with domain context
  • Industry-standard mappings (ISO/IEC/ANSI/DIN terminology)
  • Company-specific nomenclature
  • Acronyms and abbreviations
  • Count the terms in the database; report the count at completion

Build the database with references/technical-terminology.md when the source is Italian; its mappings and references/common-patterns.md are Italian-specific. For any other source language, keep the workflow unchanged and use that language's standard terminology and conventions. When the source is Italian but the target is not English, the English side of each mapping disambiguates the term; the translation itself is written in the target language. The signal-word severity table in references/safety-compliance.md applies to every source language.

Data Inventory:

  • Numerical values and measurement units
  • Specifications and tolerances
  • Part numbers and reference codes
  • Non-translatable elements (URLs, brand names, product codes)

Ambiguity Detection:

  • Context-dependent terms
  • Company-specific terminology needing attention
  • Regulatory language requiring precision

Phase 4: Configuration (Only Required Input)

Prompt user ONCE. The template below shows every question; ask only the ones the request has not already answered:

Target language for the translation?
- Default: English
- Other options: German, French, Spanish, Portuguese, etc.

Output format?
- A) Word document (.docx) - default
- B) PDF (.pdf)
- C) Markdown (.md) - preserves structure (headings, tables, lists), not visual formatting

Special requirements? (optional)
- Technical term handling preferences, company glossaries, specific terminology needs

Reply with target language, format, and any special requirements to proceed.

Rules:

  • Ask only what the user's request has not already stated
  • If the user's reply does not choose, the defaults apply (English, .docx)
  • If the user asks for a format outside A/B/C, say so now and offer Markdown; wait for a supported choice before translating
  • A request naming several target languages produces one file per language, each named by the Phase 7 rule
  • Merge any glossary or terminology preference from the answers, or from a glossary file attached alongside the sources (read by the same extraction routes as the source documents), into the terminology database before translating; user-supplied terms override the industry-standard default; the signal-word severity rules are never overridden by a glossary
  • After the answers: "Proceeding with automated translation to [LANGUAGE] as a [FORMAT] file. No further input required."

Phase 5: Translation Execution (Automatic)

Technical Precision:

  • Maintain exact technical meaning; no interpretation that alters it
  • Professional, authoritative tone
  • Use industry-standard terminology exclusively
  • On explicit user request, preserve the source term in parentheses at first use ("The coupling (giunto) connects…"); the industry-standard equivalent is used elsewhere
  • Preserve numerical data with 100% accuracy (no rounding, no conversion unless the user explicitly asks)
  • Translate measurement unit names, keep values identical
  • Preserve mathematical expressions exactly

Safety Content (Enhanced Precision):

  • Signal words (defaults; the severity rules below override them): PERICOLO→DANGER, AVVERTENZA/AVVERTIMENTO→WARNING, ATTENZIONE/CAUTELA→CAUTION, NOTA→NOTICE
  • A signal word outside this standard set (e.g. AVVISO) is placed by the severity of the hazard it describes, exactly as the ATTENZIONE case is, never by its word form
  • Equipment or property damage with no risk of personal injury → NOTICE, never CAUTION
  • Never weaken hazard severity; safety instructions stay unambiguous and in imperative mood
  • Regulatory compliance language maintained
  • For a non-Italian source or a non-English target: map signal words by severity level into the target language's standard signal words, never by word resemblance
  • Full mappings and examples: references/safety-compliance.md

Consistency Enforcement:

  • Identical terms translated identically throughout
  • Acronyms expanded on first use, consistent thereafter
  • Company nomenclature maintained
  • Cross-references accurate

Comprehensive Coverage:

  • Body text, headings, tables, captions
  • Chart labels and diagram callouts translated when they are text in the document, images positioned as in the source
  • Text embedded inside an image is beyond this workflow: keep the image unchanged and list any such images in the completion message
  • Footnotes, headers, footers
  • TOC and index entries

Numbers and Dates:

  • Decimal separator follows the target language's convention (period for English; comma for Italian, German, French, Spanish, Portuguese)
  • Thousands separator likewise follows the target language (6.000 → 6,000 for English; French uses a non-breaking space, not a period: 6.000 → 6 000); never alter the digits, and never convert any separator inside part numbers, codes, or standard references
  • Translate month names (12 marzo → 12 March); never reorder numeric-only dates
  • Inside right-to-left target text, keep signed numeric runs (-10 °C, ± 5 mm) reading left-to-right with direction marks, so a sign never detaches from its value

Scenario patterns for the above, when the source is Italian: references/common-patterns.md

Phase 6: Quality Assurance (Automatic)

Verify automatically:

  • ✓ Terminology: Consistent translation of repeated terms
  • ✓ Structure: All sections present, hierarchy preserved, appendices and annexes present, TOC accurate
  • ✓ Formatting: Fonts, styles, spacing, layout exact (structure only for .md); headers/footers preserved; tables and bold/italic/underline/color maintained
  • ✓ Images: Positioned as in the source; text inside images kept untranslated and flagged
  • ✓ Accuracy: Numerical values, units, specifications, tolerances, part numbers correct
  • ✓ Safety: All warnings translated with precision, hierarchy preserved
  • ✓ Completeness: No omissions, entire document covered
  • ✓ Cross-references: Internal references updated accurately

When a formatted source reaches translation as text only (PDF text extraction, a DOCX read and rebuilt, a platform that extracts to plain text), reproduce the document's structure faithfully and state in the completion message which visual formatting could not be preserved. A DOCX source on the local-Python branch is instead translated in place (Phase 7), which keeps far more of it.

Fix every failed check silently, before writing the file.

Phase 7: Output Generation (Automatic)

Create the deliverable in the format chosen in Phase 4:

  1. Filename: [original_filename]_[language_code].[ext]
    • original_filename = the source filename without its final extension (manuale.v2.pdf → manuale.v2_en.pdf)
    • language_code = ISO 639-1, lowercase (e.g. manuale_mp200_en.docx, manuale_mp200_de.pdf)
    • Two target languages never share one filename; a revision appends _v2 (then _v3) before the extension, so it never repeats the name of a deliverable already produced — a file in the output directory on Claude Code, a file this conversation already delivered on claude.ai
  2. Build the file. Pick the output branch per format as references/local-python.md ("Picking the output branch") directs — the platform's document skill for a format that has one, Markdown on either platform, local Python for the rest. On the local branch follow that file for the interpreter, fonts, encoding and its PDF engine order; a right-to-left target also sets paragraph direction in the Word file as that file's "Right-to-left text" section shows:
    • DOCX to DOCX, translated in place: copy the source file and translate the copy with python-docx; every rule the copy's formatting depends on, the reference implementation, and what to name under "Formatting not preserved" are in references/docx-inplace.md — read it before writing the script
    • A source extracted as text (PDF, XLSX) is rebuilt as .docx/.pdf/.md; an XLSX source comes back in one of those three formats, never as a workbook — say so before building
    • Images do not travel automatically into a file rebuilt from text: carry each source image into the output when the environment can read and re-insert it — with the platform's document skills, or, when building locally, by copying each image part from the source document's relationships and re-inserting it with add_picture (.docx), by embedding the images in the HTML that weasyprint renders or passing them to fpdf2's image() (.pdf), or by copying the image files next to the output file and referencing them by relative path (.md). Name any image that cannot be re-placed in the completion message.
  3. Page size for .docx and .pdf follows the source document, on every platform; when the source defines no page geometry (pasted text, Markdown or plain-text file, retrieved web page), use A4
  4. TOC page numbers: recompute them from the rebuilt document when the output format can; otherwise drop the stale numbers rather than keep wrong ones, and name the TOC under "Formatting not preserved"

Present completion:

Translation complete ✓
[FILENAME] ready
Technical terms: [X]
Ambiguous terms: [term] → [interpretation chosen]
Images needing attention: [list] — embedded source text left untranslated, or image not carried into the rebuilt file
Formatting not preserved: [what could not be carried over]

Include each of the last three lines only when it applies; otherwise omit it.

Error Handling

Ambiguities:

  1. Identify the ambiguous term/passage and its plausible interpretations (usually 2-3)
  2. Translate using the most likely interpretation and continue through the remaining phases
  3. List each such term, with the interpretation chosen, in the completion message
  4. A safety-critical ambiguity takes the Critical Errors path below instead

Technical Uncertainties:

  1. Use closest industry-standard equivalent
  2. Preserve original in parentheses if uncertainty high
  3. Note in QA phase
  4. Proceed without workflow interruption

Critical Errors:

  1. Notify user immediately
  2. Suggest resolution
  3. Request necessary input
  4. Resume automated processing once resolved

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.