Translation Coordinator 标志

Translation Coordinator

社区
artemnovichkov
translation-coordinator

协调将 Xcode 项目或其 String Catalog(.xcstrings)翻译成其他语言。有人要求翻译字符串、添加语言或处理 .xcstrings 文件时,应优先启用此技能。它涵盖完整工作流程:为项目添加新语言做准备、获取未翻译字符串、分派翻译工作并验证结果。

Add to TypingMind

概览

发布者artemnovichkov
代码仓库xcode-skills
技能名称translation-coordinator
星标数
67
复刻数
1
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 artemnovichkov 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Translation Coordinator AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/artemnovichkov/xcode-skills/tree/main/skills/translation-coordinator
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/artemnovichkov/xcode-skills.git /tmp/xcode-skills
mkdir -p .claude/skills
cp -r /tmp/xcode-skills/skills/translation-coordinator .claude/skills/translation-coordinator
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Translation Coordinator,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Translation Coordinator。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Translation Coordinator 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Localization Coordinator

Orchestrate the translation of an Xcode project by preparing it, fetching untranslated strings, and delegating translation work to sub-agents. Access String Catalogs only through the tools below—never write .xcstrings files directly. Never translate strings directly. Instead, fetch the context that sub-agents need to succeed as translators.

Quick Reference

ToolPurpose
LocalizationPlannerPrepare project for new language (creates String Catalogs, adds locale) or other localization changes
StringCatalogReadGet string keys by translation state (new, needs_review, translated, machine_translated)

Workflow

1. Prepare the Project (Optional)

Call LocalizationPlanner first when adding a new language to a project. Skip if the user instructs you to, or if the user only requested translation of a few specific strings.

If the tool's nextStep output says to build the project, build the project—only building extracts strings from code into newly created String Catalogs.

2. Select Relevant String Catalogs

Identify all String Catalogs relevant to the user's request. If the user's request is very broad, all catalogs may be relevant.

3. Get Strings to Translate

If the prompt already contains per-locale key lists, skip this step, as you have already been given the keys and languages to translate. Otherwise, call StringCatalogRead with the file path, target locale, and requestedState: "new" to get untranslated strings. You can also request "needs_review" or "machine_translated" states to improve existing translations.

If totalForRequestedState exceeds the number of returned keys, paginate by increasing offset until you have collected all keys. Collect all keys before moving to step 4.

The keys are unique identifiers to strings in this String Catalog. Use them exactly as returned by this tool in any operations or operations in sub-agents that you conduct.

4. Delegate Translations

Split the fetched strings into batches and delegate each batch to a sub-agent.

  1. Split the strings you fetched from StringCatalogRead into batches of up to 15 strings each. Smaller batches produce better translations because sub-agents can dedicate more attention to context and terminology per string.
  2. Create sub-agents for each batch. You MUST tell each sub-agent to use the xcode-integration:translation skill to translate their batch. Tell them to skip the LocalizationPlanner tool—you ran it for them.
  3. Limit concurrency to 5 sub-agents at a time. Launch at most 5 sub-agents in parallel, then wait for all of them to complete before launching the next group of up to 5. This prevents overloading the system with too many concurrent translation tasks.
  4. Use the keys exactly as returned by the StringCatalogRead tool, and tell each agent to use them verbatim (including any escaping).
  5. Instruct each sub-agent to invoke the xcode-integration:translation Skill, and provide the target locale, the tab identifier, the String Catalog path, and the key list to them. See the examples below for the exact format.
  6. Forward the user's request, terminology and style choices to sub-agents (they don't have access to the user's original prompt, you have to forward it to them). State that any guidance you include takes precedence over the style guide, and that the sub-agent must still read the style guide as the baseline for anything your guidance and existing translations don't cover.

If you have any string keys that represent an app name (e.g. CFBundleDisplayName, CFBundleName), make sure to put them at the top of the first batch to translate. This way subsequent translations can reuse chosen terminology.

5. Verify Results

Once all sub-agents have completed their tasks, use the StringCatalogRead tool to verify the strings you requested to translate are translated.

Collect anything the sub-agents flagged as needing a code change. Pass these to the user with the key and the catalog, so the call site can be fixed.

Tool Reference

LocalizationPlanner

Prepares an Xcode project for localization. Call this each time you are tasked with adding a language to the project, or to translate an entire project or feature. It is ok to skip this tool if requested explicitly.

What It Does

  1. Adds target language to all localizable containers (projects, packages)
  2. Prepares the project for translation by creating String Catalogs as necessary

Inputs

ParameterTypeRequiredDescription
tabIdentifierStringYesWorkspace tab identifier
targetLocaleIdentifierStringYesLocale identifier (e.g., de, pt-PT)

Outputs

FieldTypeDescription
nextStepStringWhat to do next (e.g. "ready for translation")
stepsFailedString?Failed steps requiring manual intervention
changesMadeString?List of changes successfully made
suggestionsString?Non-blocking suggestions the user may want to follow (e.g., migrate .strings to String Catalogs)
stringCatalogPaths[String]Absolute paths to all String Catalogs in workspace

Follow the instructions in the nextStep field.


StringCatalogRead

Returns string keys grouped by translation state for the requested locale. Includes counts of all string keys grouped by translation state. Supports pagination. Curly apostrophes and quotes are escaped (e.g., \u2019 for curly apostrophe, \u201C for curly quote).

Inputs

ParameterTypeRequiredDefaultDescription
tabIdentifierStringYes—Workspace tab identifier
filePathStringYes—Path to String Catalog (relative or absolute)
targetLocaleIdentifierStringYes—Locale to check translations for (e.g., de, pt-PT)
requestedStateString?NonilState to retrieve: new, needs_review, translated, machine_translated. If omitted, only counts for all states are returned.
keyLimitIntNo50Maximum keys to return
offsetIntNo0Keys to skip (for pagination)

Outputs

Always returned:

FieldTypeDescription
newCountIntUntranslated strings
needsReviewCountIntStrings marked needs review
translatedCountIntHuman-translated strings
machineTranslatedCountIntMachine-translated strings

When requestedState is provided:

FieldTypeDescription
requestedStateStringThe requested state bucket
totalForRequestedStateIntTotal keys in state bucket before pagination
returnedCountIntKeys returned after pagination
keys[String]Array of string keys

A key can appear in multiple state buckets if variants have different states.


Critical Rules

  1. Always delegate translation work to sub-agents. Never write a translation yourself.
  2. Use only String Catalog tools to access .xcstrings files. Never read or write them directly.
  3. Complete the entire task—continue until all requested strings are translated.
  4. Use typographically correct quotes and apostrophes for the target language (e.g., „...“ for German, «...» for French). All curly quotes must be escaped (e.g., \u201E...\u201C for German „...“), as well as apostrophes (e.g. \u2019 for curly apostrophe). NEVER XML-escape the ampersand: write a literal &, NOT &amp;. The same goes for all other HTML/XML entities — never write &lt;, &gt;, &quot;, or &apos;; write the literal <, >, ", ' characters instead. The String Catalog stores Unicode text, not XML, so any &amp; would ship verbatim into the app. Other non-ascii characters do not need extra escaping either.
  5. Do NOT skip strings to save time, even when there are hundreds of strings. Don't skip work or cut corners to save time—rather, focus on accuracy and completeness.
  6. Forward keys into sub-agents exactly as you have received them from the StringCatalogRead tool. Escaped strings with \uXXXX sequences might lose one level of escaping during transit. Keep them double-escaped them so the sub-agent receives the original form.
  7. Locale identifiers: If the user provides an explicit locale code, pass it through verbatim to tool calls and to sub-agents — do not normalize, canonicalize, or swap separators (e.g., if told pt_BR, use pt_BR; if told zh-TW, use zh-TW). If the user only names a language/region in prose (e.g., "Brazilian Portuguese", "Traditional Chinese"), derive a BCP 47 identifier with hyphens (pt-BR, zh-Hant) rather than underscores. The explicit-code rule always wins over the BCP 47 default.

Examples

Entire Project
  1. User requests translating the project into Japanese
  2. Agent calls LocalizationPlanner tool. Once completed, the project is ready for localization.
  3. Agent reviews the returned String Catalog paths and selects only those relevant to the user's request.
  4. Agent uses StringCatalogRead on the relevant String Catalogs to understand what string keys need translating.
  5. Agent divides work among subagents, prompting each subagents with the following:

============ Translate the strings for the following keys into Japanese (ja). Skip running the LocalizationPlanner tool. Do NOT spawn further sub-agents. Translate only the keys listed below. Use the xcode-integration:translation Skill.

IMPORTANT: Use the keys EXACTLY as written below, including all escaping. You must preserve this escaping exactly when passing the key to StringCatalogContext and StringCatalogEdit.

  • Tab identifier:
  • String Catalog: path/to/string/catalog.xcstrings
  • Keys:
key1
key2
key3

============

  1. Once all sub-agents have completed, agent uses StringCatalogRead to verify that each requested string has received a translation.
Specific Strings
  1. User requests translation of specific strings in a specific String Catalog into Japanese.
  2. Agent skips LocalizationPlanner and StringCatalogRead since the user already specified which strings to translate.
  3. Agent divides work among sub-agents, prompting each with the following:

============ Translate the strings for the following keys into Japanese (ja). Skip running the LocalizationPlanner tool. Do NOT spawn further sub-agents. Translate only the keys listed below. Use the xcode-integration:translation Skill.

IMPORTANT: Use the keys EXACTLY as written below, including all escaping. You must preserve this escaping exactly when passing the key to StringCatalogContext and StringCatalogEdit.

  • Tab identifier:
  • String Catalog: path/to/string/catalog.xcstrings
  • Keys:
key1
key2
key3

============

  1. Once all sub-agents have completed, agent uses StringCatalogRead to verify that each requested string has received a translation.

常见问题

Translation Coordinator AI 技能有什么作用?

协调将 Xcode 项目或其 String Catalog(.xcstrings)翻译成其他语言。有人要求翻译字符串、添加语言或处理 .xcstrings 文件时,应优先启用此技能。它涵盖完整工作流程:为项目添加新语言做准备、获取未翻译字符串、分派翻译工作并验证结果。

为什么在 TypingMind 中使用 Translation Coordinator?

因为您只需安装一次,就能搭配任何模型使用。Translation Coordinator 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Translation Coordinator?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/artemnovichkov/xcode-skills/tree/main/skills/translation-coordinator。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Translation Coordinator?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Translation Coordinator 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Translation Coordinator 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Translation Coordinator AI 技能免费吗?

artemnovichkov 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇