agentleFS
minkhant1996minkhant1996/soemind-forge/skills/localize-content/SKILL.md

localize-content

Skill16 starsChanged 5 months agoMITView on GitHub

Produce existing content in more languages — translated copy, re-generated voiceover in the same brand voice, per-language captions and publish packs. Use when the user says "make this in Spanish", "translate my ad", "localize for Thailand", "multi-language version".

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Ask once: which languages/markets?

    line 15
  2. Very specific:

    Use generateText (or translate yourself if fluent) with instructions to:

    line 32
  3. Very specific:

    Keep the brand tone from brand.md — a warm-casual brand must stay warm-casual in every language.

    line 34
  4. Distinctive:

    Keep timing: a voiceover script must fit the same video duration — translations run 10-30% longer in many languages, so tighten wording, …

    line 40
  5. Distinctive:

    Check the voice supports the language (Gemini TTS is multilingual, but listen to the first output before batching the rest).

    line 62

≈ “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

Localize Content

One piece of content, N markets. The visuals are already paid for — localization re-generates only the cheap layers: script, voiceover (~$0.01), captions (free), and copy. A $10 video becomes 3 markets for ~$0.10.

STEP 1: Scope

Ask once: which languages/markets? Then identify what the piece contains (check its manifest — see /revise-content STEP 1):

LayerLocalize howCost
Script / voiceovertranslate → generateVoiceover per language~$0.01 each
On-screen captions (.srt)generateCaptions from translated scriptfree
Caption/post copy + hashtagstranslate + adapt (see STEP 2)~$0.001
Text baked INTO the image/videocan't swap text in-place — flag itsee below

Baked-in text warning: if the visual has burned-in text (headline on a thumbnail, text overlay in a scene), tell the user up front: that layer needs regeneration per language (/revise-content for that piece, translated prompt). Get approval before this — it's the only expensive part.

STEP 2: Translate like a marketer, not a dictionary

Use generateText (or translate yourself if fluent) with instructions to:

  • Keep the brand tone from brand.md — a warm-casual brand must stay warm-casual in every language.
  • Transcreate hooks, idioms, and CTAs — a literal pun translation is worse than a new hook with the same intent.
  • Respect restrictions (never_say lists apply in every language; add market-specific legal terms if the user names any).
  • Keep timing: a voiceover script must fit the same video duration — translations run 10-30% longer in many languages, so tighten wording, don't rush the voice.
  • Localize hashtags (research/ask — don't literally translate tags) and numbers/currency formats.

Show the user each translation before generating audio. If they don't read the language, say what you adapted and why.

STEP 3: Regenerate the cheap layers per language

# Voiceover — SAME locked voice id from the asset registry for brand continuity
node workflows/cli.cjs generateVoiceover '{"script":"<translated script>","voiceName":"Kore","outputPath":".../es/voiceover.wav"}'

# Remix onto the existing video (local, free)
node workflows/cli.cjs mixVideoAudio '{"videoPath":".../final.mp4","voiceoverPath":".../es/voiceover.wav","musicPath":".../music.wav","outputPath":".../es/final-es.mp4"}'

# Captions from the translated script (local, free)
node workflows/cli.cjs generateCaptions '{"script":"<translated script>","totalDuration":30,"outputPath":".../es/captions.srt"}'

Check the voice supports the language (Gemini TTS is multilingual, but listen to the first output before batching the rest). Non-Latin scripts (Thai, Myanmar, Arabic…): confirm caption font/rendering — see the content-preflight edge-case checklist.

STEP 4: Package per language

/package-content each localized cut into output-contents/{piece}/publish/{lang}/{platform}/ with the translated caption, localized hashtags, and link. Then report:

✅ LOCALIZED — summer-ad → ES, TH, MM
  es/  final-es.mp4 + captions + IG/TikTok packs   $0.011
  th/  final-th.mp4 + captions + IG/TikTok packs   $0.012
  mm/  final-mm.mp4 + captions + FB pack           $0.012
  Flagged: thumbnail has baked-in English headline — regenerate per language? (~$0.07 each)

recordCost the spend. Save translated scripts alongside outputs so future revisions localize from the same source.

Pipeline-first + prompts.txt (mandatory)

  • Author <content-id>.pipeline.json in each language's folder BEFORE generating (nodes = CLI commands — voiceover → mix → captions — {{node.data.field}} refs), then node workflows/cli.cjs runPipeline @<file>. See workflows/pipelines/README.md.
  • Each language folder gets a prompts.txt with the translated script (audio tags included) and voice params; update it on every retry with a one-line RESULT note.

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.