agentleFS
Maples7Maples7/Apple-Dev-AI-Skills/skills/translate-xcstrings/SKILL.md

translate-xcstrings

Skill2 starsChanged 7 months agoMITView on GitHub

Translate or normalize Xcode .xcstrings catalogs. Use when adding missing locales, reviewing terminology consistency, adding a new language, or updating Localizable.xcstrings, InfoPlist.xcstrings, and AppShortcuts.xcstrings without breaking placeholders or Xcode formatting.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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. Distinctive:

    Treat the canonical workflow as reusable and the project's terminology as injectable.

    line 22
  2. Distinctive:

    If the repository contains a project profile, read it before translating.

    line 23
  3. Very specific:

    If no profile exists, discover catalogs and existing locales directly from the .xcstrings files before making assumptions.

    line 24
  4. Distinctive:

    Keep edits surgical so Xcode-generated formatting stays reviewable.

    line 25
  5. Very specific:

    Instead, explicitly tell the user that the project should add a project profile and point them to assets/xcstrings-project-profile.yaml.

    line 31
  6. Distinctive:

    If the user wants the change completed in the same pass, create the profile first or alongside the translation change instead of leaving …

    line 42
  7. Distinctive:

    Look for a project profile in one of these places before translating:

    line 46
  8. Distinctive:

    If none exists, use the conservative defaults in project profile reference only as a temporary fallback.

    line 53
  9. Distinctive:

    When the project has any non-trivial shipped locale set, English-only strings, protected brand tokens, or recurring domain terminology, …

    line 55
  10. Very specific:

    Use assets/xcstrings-project-profile.yaml as the template when a project needs one.

    line 57
  11. Distinctive:

    Follow workflow to discover catalogs, languages, missing keys, and requested scope.

    line 61
  12. Distinctive:

    If project-specific terminology or English-only keys exist, merge them in through the profile contract described in project profile …

    line 64

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

Translate or normalize Apple string catalogs backed by Xcode .xcstrings files.

Use This Skill When

  • the user asks to translate Localizable.xcstrings, InfoPlist.xcstrings, or AppShortcuts.xcstrings
  • a catalog has missing locales or stale terminology
  • a project is adding a new shipped language
  • Siri / Shortcuts phrases need locale coverage
  • placeholders, Markdown, or catalog structure must be preserved exactly

Required Operating Model

  1. Treat the canonical workflow as reusable and the project's terminology as injectable.
  2. If the repository contains a project profile, read it before translating.
  3. If no profile exists, discover catalogs and existing locales directly from the .xcstrings files before making assumptions.
  4. Keep edits surgical so Xcode-generated formatting stays reviewable.

First-Run Requirement

On the first substantial use in a new project, do not silently rely on inferred policy if the project clearly has shipped-locales or terminology decisions that should persist.

Instead, explicitly tell the user that the project should add a project profile and point them to assets/xcstrings-project-profile.yaml.

At minimum, ask the user to confirm or fill these fields:

  • default_target_locales for the shipped locale set
  • supported_platforms for device variation decisions and platform-specific wording
  • english_only_keys for strings that must remain identical to English in every locale
  • brand_tokens for literal product or marketing tokens and any CJK spacing rules around them
  • glossary for recurring domain terms that must stay consistent across catalogs
  • variation_policy for project-specific rules about adding plural or device variations

If the user wants the change completed in the same pass, create the profile first or alongside the translation change instead of leaving those rules trapped in prompts, instructions, or agent memory.

Project Profile

Look for a project profile in one of these places before translating:

  • xcstrings-project-profile.yaml
  • .ai/xcstrings-project-profile.yaml
  • .github/xcstrings-project-profile.yaml
  • another path explicitly provided by the user

If none exists, use the conservative defaults in project profile reference only as a temporary fallback.

When the project has any non-trivial shipped locale set, English-only strings, protected brand tokens, or recurring domain terminology, explicitly tell the user that a project profile should be created before this workflow becomes routine.

Use assets/xcstrings-project-profile.yaml as the template when a project needs one.

Procedure

  1. Follow workflow to discover catalogs, languages, missing keys, and requested scope.
  2. Apply catalog-specific rules from catalog rules.
  3. Preserve Xcode formatting and split long runs using editing safety.
  4. If project-specific terminology or English-only keys exist, merge them in through the profile contract described in project profile reference.

Exit Criteria

  • requested files, keys, and locales are covered
  • placeholders, Markdown, tokens, and AppShortcuts phrase counts are preserved
  • terminology decisions are consistent within each locale
  • the diff only touches intended keys
  • the final summary reports touched catalogs, languages, and any glossary decisions worth remembering

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.