---
name: translating-documentation
description: Use when localizing technical documentation while preserving code, commands, identifiers, diagrams, references, and technical terminology for guides, API references, READMEs, and developer documentation.
title: translating-documentation
canonical_url: https://skilld.dev/gh/brunomiguens/translating-products-skill/translating-documentation
last_updated: 2026-09-18T08:00:03.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install brunomiguens/translating-products-skill/translating-documentation`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/translating-documentation`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/brunomiguens/translating-products-skill/translating-documentation) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/translating-documentation`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/translating-documentation --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/translating-documentation --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Translating Documentation

## Overview

Define the technical-document surface around a translation. Preserve executable examples, identifiers, references, and document topology while exposing explanatory prose with enough technical context for accurate translation.

## Capabilities

- `surface:documentation`
- `code-preservation`
- `technical-terminology`

## Input Inspection

Parse the whole document and inventory:

- format, frontmatter, headings, paragraphs, lists, tables, admonitions, footnotes, and generated regions
- code fences, inline code, commands, prompts, output, placeholders, variables, identifiers, API methods/paths, schemas, enums, and example data
- internal/external links, anchors, reference definitions, includes, citations, image/media paths, and cross-references
- diagrams, node IDs, edges, syntax, display labels, captions, and alt text
- source and target locale, audience expertise, product/version scope, technical glossary, protected terms, style guide, and publication constraints

Determine whether a code comment, sample value, diagram label, or inline span is executable, user-facing, or both. When uncertain, protect it and ask the technical owner for its contract.

## Translation Surface

Send explanatory prose, headings, table prose, admonitions, captions, meaningful alt text, link labels, and confirmed display-only diagram labels to `translating-core`. Attach the surrounding section, audience, concept definition, approved technical glossary, protected-token inventory, and reference target.

Translate code comments or display-only sample values only when the brief explicitly authorizes them and their executable effect is understood. This skill does not generate target prose, choose technical terminology beyond approved inputs, or apply language mechanics.

## Non-Translatable Elements

Preserve byte-for-byte unless an authoritative technical change is separately approved:

- code fences and language labels, inline code, commands, flags, prompts, environment variables, placeholders, and identifiers
- API methods, paths, versions, parameters, schemas, property names, enum values, response values, and protocol literals
- URLs, link destinations, anchors, reference IDs, include paths, citation identifiers, image paths, and generated markers
- diagram syntax, node IDs, edges, classes, attributes, and identifiers
- product names and protected technical glossary terms

Translate a link label, not its destination. Translate a diagram's confirmed display label, not its node identity or connectivity. Never “fix” an API detail, command, or example because it looks outdated during localization.

## Documentation Constraints

- Preserve document topology: heading levels/order, lists, table shape, callout type, code/inline boundaries, references, media, and diagrams.
- Keep each executable example runnable and semantically equivalent. Do not translate a literal token merely because readers can see it.
- Apply the approved technical glossary consistently by concept and context. Record a missing term as a draft terminology decision for core/domain ownership; do not silently coin an approved term.
- Keep references resolvable. A localized link or anchor requires a verified mapping supplied by documentation ownership; otherwise retain the source destination.
- Keep prose and examples aligned: parameter names, return fields, sequence, prerequisites, outcomes, and version scope must agree.
- Preserve deliberately mixed-language technical terms and distinguish them from accidental untranslated prose.

## Targeted Research

Research only technical facts that may be current and materially affect the document: the documented product version, endpoint, CLI flag, schema, enum, behavior, localized reference mapping, or official component name. Prefer authoritative version-matched product documentation, source code, or release notes and record the source/version/date.

Treat a verified technical correction as a separate documentation change owned by engineering/documentation, not as translation. Do not research ordinary target wording, infer API migrations, or rewrite an example before that change is approved in the source.

## Authority and Conflict Boundary

Follow explicit user requirements, approved technical/product configuration, core semantic fidelity, domain terminology, and language mechanics before documentation formatting preferences. Engineering owns executable behavior and technical facts; documentation owners own structure, reference maps, examples, and publication configuration.

This skill owns document field classification, protected technical structures, reference/example constraints, and documentation QA. `translating-core` owns meaning and target prose; installed domain/language specialists own terminology and linguistic mechanics; `reviewing-translations` owns final review. If natural prose conflicts with an exact identifier, code example, or approved glossary term, preserve the technical contract and report the affected segment.

## QA Handoff

Pass source and target documents, locale pair, product/version scope, technical glossary, protected-token inventory, reference map, executable examples, diagram manifest, and these checks to `reviewing-translations`:

- protected-token diff confirms code fences, inline code, commands, flags, variables, identifiers, API/schema literals, URLs, anchors, paths, diagram IDs, and protected names retain parity
- document parser confirms headings, lists, tables, callouts, links, references, code blocks, media, and generated markers preserve topology
- examples parse, compile, or run using the project's safe documented test method; JSON/YAML/XML and command syntax remain valid
- link and anchor checks confirm internal and external cross-references resolve to approved destinations
- diagram renderer confirms valid syntax, unchanged nodes/edges, and complete translatable display labels
- glossary, concept, parameter, return-value, prerequisite, and version references remain consistent across prose and examples
- no accidental untranslated prose or full-width/localized characters enter protected literals

Block publication for broken executable content, changed technical behavior, corrupted identifiers, unverified version/API correction, broken cross-reference, altered diagram connectivity, glossary conflict, or accidental mixed-language prose. Route the exact affected span or enclosing example to its responsible installed skill.
