agentleFS
HanZephyrHanZephyr/dsh-generalized-skills/skills/translate-docs/SKILL.md

translate-docs

Skill0 starsChanged 3 months agoMITView on GitHub

Translate repository documentation or synchronize existing language versions while preserving meaning, technical identifiers, and the repository's localization conventions.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the source and existing counterpart, relevant terminology, and local authoring conventions.

    line 12
  2. Distinctive:

    Write natural target-language sentences, then compare them clause by clause with the source.

    line 21
  3. Distinctive:

    Follow the project's glossary.

    line 22
  4. Distinctive:

    Keep organization comparable enough to detect omissions.

    line 24
  5. Distinctive:

    Follow the target language and repository's typography.

    line 26
  6. Distinctive:

    Update existing language switchers and paired navigation when relevant.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Translate repository documentation

Use the requested document, selected passage, or changed language pair as the scope. Infer an unambiguous target from the request and existing files; ask only when the target language or scope cannot be determined and would change the result. A review reports discrepancies; a translation or synchronization request authorizes the corresponding text edits, not publication or new localization infrastructure.

Establish the pair

Read the source and existing counterpart, relevant terminology, and local authoring conventions. Discover filenames, primary language, navigation, and generated regions from the repository; do not assume a locale suffix or equal authority when the project specifies a primary source.

For an existing pair, identify the intended changes from the task and available diff or last-confirmed text. Preserve reviewed wording outside those changes. If both sides changed, reconcile facts against the owning implementation or confirmed requirements rather than automatically overwriting one side. A stored hash identifies content; it does not prove semantic agreement or guarantee that the blob remains retrievable. If prior text is unavailable, compare the current pair directly and state the limitation when it affects confidence.

For a new counterpart, translate the full requested scope. Use existing terminology and representative approved passages when available. Parallel translation is optional for independent, substantial sections when supported; maintain terminology and review the assembled result. Small updates can be completed directly.

Translate and compare

  • Preserve actors, conditions, obligations, exceptions, timing, failures, limitations, and examples. Fluent wording must not add claims or turn a planned capability into a shipped one.
  • Write natural target-language sentences, then compare them clause by clause with the source. Read the target alone to catch phrasing that only makes sense beside the original.
  • Follow the project's glossary. Use established terminology for unlisted terms; retain an identifier or briefly explain an ambiguous term when necessary. Ask about a term only if ambiguity changes technical meaning. Do not require external citations for ordinary translation choices.
  • Preserve executable commands, identifiers, configuration keys, versions, and literal API values. Translate prose comments or example display text when appropriate to the requested localization, preserving execution and expected-output relationships. Byte-identical code blocks are required only where the project requires them.
  • Keep organization comparable enough to detect omissions. Adapt sentences and paragraphs naturally; strict heading, list, table, and emphasis parity applies only when required by the project's tooling or format.
  • Resolve links using the actual locale mapping and target anchors. Translated headings may require translated fragments; do not mechanically preserve a fragment that no longer resolves. Keep external targets unless a localized equivalent is requested.
  • Follow the target language and repository's typography. Do not impose one region's terminology, punctuation, or form of address on every project.

Finish

Update existing language switchers and paired navigation when relevant. Rename or delete a counterpart only when the requested operation includes the pair or repository rules require it within the authorized scope.

Run available checks for the touched documents and inspect meaning, technical literals, links, and omissions manually. Update consistency records only if the repository already uses them and the pair has actually been verified; do not introduce sidecars, manifests, or hashes merely to complete a translation. Run an existing required corpus check once at the appropriate change boundary rather than for every passage.

Report files translated or synchronized, material terminology uncertainties, and verification performed. Keep translation notes in the response unless a separate artifact was requested.

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.