Oma translation

From first-fluke/fullstack-starter · View interactive version

Oma translation is an AI agent skill from the GitHub repository first-fluke/fullstack-starter. Translate or revise localized UI strings and prose while preserving meaning, terminology, placeholders, and structure.

How to use this skill

Skill file

Translation - Context-Aware Localization

Scheduling

Goal

Translate, review, or adapt multilingual content faithfully and naturally while preserving the

parts that must remain exact: placeholders, code, links, formatting, terminology, and file

structure.

Intent signature

When to use

When NOT to use

Expected inputs

Expected outputs

Dependencies

Control-flow features

Structural Flow

Entry

  1. Identify source, target locale, content type, and whether this is translate, review, or diff-sync.
  2. Preserve exact tokens first: placeholders, code, URLs, keys, and structural markers.
  3. Load the target profile if available; read sibling translations when the target is in a project.

Scenes

  1. PREPARE: Resolve locale, output mode, target audience, and protected syntax.
  2. ACQUIRE: Read the target profile, relevant siblings, glossary, and source context. For prose or review, load the rubric; for style review, load the shared prose diagnostics and translation exceptions together.
  3. REASON: Determine meaning, register, terminology, cultural references, and any ambiguity. Decide whether an idiom should be interpreted, substituted, or retained.
  4. ACT: Write natural target-language text. Match established project patterns without adding meaning, opinion, or personality.
  5. VERIFY: Check protected syntax and structure. For substantive text, check meaning, terminology, register, and target-language naturalness against the rubric.
  6. FINALIZE: Return the requested text, patch, or review with only supported findings.

Transitions

Failure and recovery

| Failure | Recovery |

|---|---|

| Missing target context | Use the source register and state the assumption, unless the ambiguity changes meaning |

| Conflicting literal wording and project convention | Follow the established target convention and explain a material difference |

| Placeholder or structure mismatch | Revise before emitting or applying a patch |

| Missing profile | Use shared guidance and identify the coverage limit once |

| Unclear cultural reference | Add a concise note only when the target audience needs it |

Exit

Language profile loading

Resolve the BCP 47 primary subtag and load one matching profile when present:

| Target | Profile |

|---|---|

| Korean | resources/lang/ko.md |

| Japanese | resources/lang/ja.md |

| Chinese | resources/lang/zh.md; resolve the declared variant |

| English | resources/lang/en.md |

| Other | no profile; use shared guidance |

Profiles define typography, register, and target-language checks. Shared guidance explains common

risks. A profile wins if they conflict. Add a new profile from resources/lang/_template.md only

when the task is to extend this skill.

Translation method

  1. Read for meaning, intended effect, domain terms, and protected syntax. Identify figurative

wording as interpret, substitute, or retain. Do not add a new metaphor or remove an

intentional one without a reason.

  1. Choose register from the source, target audience, and sibling translations. Apply

translation_voice from .agents/oma-config.yaml only as a rhythm/formality preference:

formal, balanced (default), or interpreter. It never overrides meaning or target norms.

  1. Reconstruct in the target language. Change word order, split or merge sentences, and omit

implied subjects only when the target language calls for it.

  1. Preserve author style only where it belongs: prose, dialogue, adaptation, or explicitly

user-authored documentation. Match observable rhythm and diction, never add facts, stance,

jokes, first person, or stronger emotion.

Verification

Always check:

For substantive content and review mode, also check the rubric: meaning, naturalness,

terminology, register, cultural fit, and emotional force. Use anti-AI patterns as a diagnostic,

not a demand to make prose decorative or to remove intentional source style.

Review mode

Review from evidence, not from an expectation that every draft is machine-translated. Record zero

findings when no material defect is confirmed. Separate:

Do not rewrite a sound translation merely to produce findings.

Batch and diff-sync work

For batches, read the complete set first, translate values only, and maintain one terminology and

register decision. Verify placeholders and key structure across the set.

For diff-sync, map each source hunk by heading and surrounding context. Touch only the affected

target section; leave unrelated text byte-identical. State updated sections, skipped cosmetic

hunks, and material terminology decisions.

Output formats

For a single text, present the translation and brief notes for ambiguities or adaptations. For

files, preserve the input format and modify only requested values. For review, show the original,

the suggested revision only when warranted, and the evidence for each finding.

Logical Operations

Actions

| Action | SSL primitive | Evidence |

|---|---|---|

| Resolve locale and mode | SELECT | User request and file context |

| Read profile and siblings conditionally | READ | Target profile, glossary, nearby translations |

| Protect syntax and structure | VALIDATE | Source tokens and structural markers |

| Infer meaning and register | INFER | Source, audience, project convention |

| Translate or revise | WRITE | Target text or requested file patch |

| Review substantive content | VALIDATE | Rubric and concrete findings |

| Report result and limits | NOTIFY | Translation, patch, or review |

Tools and instruments

search/read when it is unavailable or times out.

Canonical workflow path

  1. Resolve target locale and protect exact syntax.
  2. Load the one applicable language profile and relevant siblings; load the rubric for substantive

content or review. For prose style review, load ../_shared/core/anti-ai-prose.md with

resources/anti-ai-patterns.md; apply its fidelity exceptions before any shared style fix.

  1. Infer meaning, register, terminology, and figurative-language handling.
  2. Draft in natural target order and project style.
  3. Verify exact syntax and structure, then review substantive content against the rubric.
  4. Emit the requested translation, patch, or evidence-backed review. State a missing-profile or

context limitation when material.

Resource scope

| Scope | Resource target |

|---|---|

| LOCAL_FS | Source/target files, glossaries, language profiles |

| CODEBASE | Sibling translations and code context |

| PROCESS | Native search and syntax checks |

| MEMORY | Locale, terminology, register, protected syntax, unresolved ambiguity |

Effects and side effects

Guardrails

  1. Preserve meaning, protected syntax, and file structure before stylistic preference.
  2. Do not invent facts, opinions, emotional emphasis, examples, citations, or personality.
  3. Do not use a different language's profile as a substitute.
  4. Do not change untouched sections during diff-sync.
  5. Do not claim completion of a check that the available source cannot support.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.