Token导航 LogoToken导航

Agent Skill · 研究检索

localize-ios(localize iOS 搜索)

localize-ios 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

localize-ios 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 71,596。

总安装 194周安装 8GitHub Stars 13下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:localize-ios(localize iOS 搜索)
来源仓库:https://github.com/ravnhq/ai-toolkit
仓库路径:skills/localize-ios
安装命令:
npx skills add https://github.com/ravnhq/ai-toolkit --skill localize-ios
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ravnhq/ai-toolkit --skill localize-ios

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

localize-ios 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于 iOS 应用本地化过程中的资源管理与技术文档查询。可快速获取字符串表格式、区域设置配置或 App Store 发布指南。

安装命令为 npx skills add https://github.com/ravnhq/ai-toolkit --skill localize-ios。若涉及 Xcode 工程操作,应确保具备相应编译与签名权限。

来源仓库内路径:skills/localize-ios

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ravnhq/ai-toolkit --skill localize-ios;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

localize-ios 怎么安装?

在终端执行 npx skills add https://github.com/ravnhq/ai-toolkit --skill localize-ios。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

localize-ios 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

localize-ios 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/ravnhq/ai-toolkit --skill localize-ios 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

localize-ios 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

localize-ios 用的人多吗?

公开数据是累计安装 194 次,近一周安装 8 次,下载 63 次,GitHub 13 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

localize-ios 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
localize-ios

localize iOS 搜索 · 本页

19413执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Localize Swift

Localize UIKit Views and ViewControllers and SwiftUI Views: extract hardcoded strings, generate consistent keys, replace literals with the correct Swift API, and create or update the .xcstrings String Catalog.

Overview

String Catalogs (.xcstrings, Xcode 15+) are the Apple-recommended localization format. This skill guides extraction of hardcoded strings, generation of camelCase keys, and replacement with typed APIs (String(localized:) or xcstrings-tool's .localizable(...)).

Rules

See rules index for detailed patterns covering:

  • Always use String Catalogs over legacy .strings files
  • LocalizedStringKey vs. String(localized:) API selection
  • Plural rules and string interpolation patterns
  • Accessibility label localization
  • RTL layout considerations
  • Testing localized content

Workflow

1. Check xcstrings-tool

This step is a hard gate. Do not read the target file, extract strings, propose keys, or take any other action until this step reaches a terminal outcome. The workflow does not advance until one of the two outcomes below is confirmed.

Search for xcstrings-tool in Package.swift and for XCStringsToolPlugin in project.pbxproj.

Outcome A — Already installed: note it and move to step 2.

Outcome B — Not installed: inform the user it is not present, explain the benefit (compile-time key safety), and ask: *"Would you like to install xcstrings-tool before continuing, or proceed without it?"* Then stop and wait.

  • If the user says no / skip: note that String(localized:) will be used throughout, then move to step 2.
  • If the user says yes: follow the installation steps in references/xcstrings-tool.md → Installation, ask them to build (Cmd+B), then verify XCStringsToolPlugin appears in project.pbxproj. If not found, inform the user the plugin is still missing and do not advance. Only move to step 2 once confirmed present.

2. Read the target file

Read the Swift file the user points to. Classify it as one of:

  • View layer — UIKit ViewController, UIView subclass, SwiftUI View
  • ViewModel / Presenter — class or struct that owns display-intent properties (e.g. title, message, buttonLabel) consumed by a view
  • Helper / Formatter / Enum — produces strings that eventually reach the UI (e.g. an enum with a var title: String switch, a date formatter returning display text)

The classification affects the replacement API (see step 6) but all three types can contain strings that need localization.

3. Extract hardcoded strings

Find all raw string literals that represent user-visible text. For ViewModel and helper files, apply the data-flow heuristic in references/key-naming.md → User-Facing Strings in ViewModels and Helper Classes to determine whether each string reaches the UI. See the full exclusion list there as well.

Present all candidates to the user before making changes.

4. Propose localization keys

Use camelCase — featureNameComponentNameDescription. Derive the prefix from the file name or feature folder.

Source stringProposed key
"Screen title"featureTitle
"Always ask"featureAlwaysAskToggleLabel
"Done"featureDoneButtonLabel
"No results"featureEmptyStateMessage

See references/key-naming.md for naming rules and conflict resolution. Present the full key list to the user and confirm before making any changes. Accept corrections.

5. Update the.xcstrings file

See references/xcstrings-format.md for exact JSON structure.

  1. **Search the project for all *.xcstrings files.**

- If more than one is found, ask the user which file to add the new keys to before proceeding. - If exactly one is found, use it directly. - If none is found, create one (see step 2).

  1. Creating Localizable.xcstrings — locate the Resources folder in the main target. Identify it by the presence of any of: *.xcassets directories, .mp4 files, .json files, or other static resource files. Inside Resources, create a Localization/ subfolder and write Localizable.xcstrings there using the base structure from references/xcstrings-format.md: Resources/ └── Localization/ └── Localizable.xcstrings Then immediately register it in project.pbxproj by running the bundled script: swift sh.claude/skills/localize-ios/scripts/add_to_xcodeproj.swift \ "path/to/App.xcodeproj" \ "path/to/Resources/Localization/Localizable.xcstrings" \ --group Localization The script will: Verify the script output confirms the target name, file reference UUID, and build file UUID. Unless the user explicitly requests otherwise, the .xcstrings file must always belong to the main app target. Use --target "TargetName" to override if needed.

- Detect the main app target automatically (by productType = "com.apple.product-type.application") - Create a Localization PBXGroup if it doesn't exist, nested under the parent Resources group - Add the file reference with path = Localizable.xcstrings (the group's path handles the directory) - Add the build file to the correct target's PBXResourcesBuildPhase

  1. Add each new key as an entry under "strings" with:

- "extractionState": "manual" - A "comment" describing context for translators - The source string as the English value with "state": "new"

  1. Check for existing translations. Search project.pbxproj for the knownRegions array to detect all languages configured in the project. Do not rely on inspecting the .xcstrings file itself. For each language code found in knownRegions other than en and Base:

- Add a "localizations" entry for that language on every new key - Provide the actual translation — do not copy the English value - Set "state": "translated" - If you are not confident in the translation accuracy, set "state": "needs_review" and add a note in the report

6. Replace strings in the Swift file

Apply API selection in this order:

  1. xcstrings-tool installed → use typed API (.localizable(...)) everywhere in the target.
  2. xcstrings-tool not installed → use String(localized:).
  3. Cross-target exception: file belongs to a target without XCStringsToolPlugin → use String(localized:, table:).

See references/xcstrings-tool.md → Usage by Context for code patterns covering UIKit, SwiftUI, and switch statements.

7. Report results

After all changes, output:

  • A table of replaced strings → keys
  • Path to the created/updated .xcstrings file
  • xcstrings-tool recommendation if not installed
  • Next steps: add translations in Xcode's String Catalog editor, then build to regenerate typed accessors

Examples

Positive Trigger

User: "Localize ProfileViewController.swift"

Expected behavior: Read the file, extract all hardcoded user-facing strings, propose camelCase keys, confirm with the user, replace strings with String(localized:), and create/update Localizable.xcstrings.

Non-Trigger

User: "Fix the layout bug in ProfileViewController where the button is clipped."

Expected behavior: Do not use this skill. Investigate and fix the layout issue directly without invoking the localization workflow.

Troubleshooting

Switch statement strings not replaced

  • Error: Raw string literals inside switch cases remain hardcoded after running the workflow.
  • Cause: Each switch case returns a String and must be wrapped individually — there is no single call site.
  • Solution: Replace each case's string literal with String(localized: "key") or .localizable(.key) one by one.

.xcstrings file not found

  • Error: No Localizable.xcstrings file exists in the project.
  • Cause: The project has not been localized yet.
  • Solution: Create Resources/Localization/Localizable.xcstrings using the base structure from references/xcstrings-format.md, then run scripts/add_to_xcodeproj.swift (via swift sh) to register it in project.pbxproj. Both steps are required — the file must exist on disk AND be referenced in the project.

.xcstrings file created but missing in Xcode

  • Error: Localizable.xcstrings exists on disk but does not appear in Xcode's project navigator and is not bundled.
  • Cause: The file was written to disk but project.pbxproj was not updated.
  • Solution: Run scripts/add_to_xcodeproj.swift (via swift sh) with the correct .xcodeproj path and file path. Confirm the script output shows the target and group where the file was added, then reopen the project in Xcode.

xcstrings-tool typed accessors missing after adding keys

  • Error: After adding keys to .xcstrings, .localizable(...) properties are not available.
  • Cause: xcstrings-tool runs as a build-time plugin — it regenerates Swift types only when the project builds.
  • Solution: Build the project (Cmd+B in Xcode) to trigger code generation. If the types still do not appear, verify the plugin is added to the app target's Build Phases.

.xcstrings file added to wrong target

  • Error: Localizable.xcstrings is registered in project.pbxproj but xcstrings-tool does not generate typed accessors, or the strings are not found at runtime.
  • Cause: The file was added to an extension target's PBXResourcesBuildPhase instead of the main app target's.
  • Solution: The add_to_xcodeproj.swift script automatically finds the main app target by productType =.application. If you need a specific target, use --target "TargetName". For manual fixes, move the build file entry from the extension target's PBXResourcesBuildPhase to the main app target's phase.

Localizable.xcstrings registered under wrong group in Xcode navigator

  • Error: Xcode build error "The file 'Localizable.xcstrings' couldn't be opened because there is no such file" even though the file exists on disk.
  • Cause: scripts/add_to_xcodeproj.swift created the Localization PBXGroup but nested it under the wrong parent group (e.g. UI instead of Resources). Xcode resolves the file path by walking the group chain, so the wrong parent causes the resolved path to differ from the actual disk path.
  • Solution: Verify in project.pbxproj that the Localization group appears in the children array of the Resources group (not any other group). If it is under the wrong parent, remove the entry from the wrong group's children array and add it to the Resources group's children array.

Key naming conflict with existing entries

  • Error: A proposed key already exists in .xcstrings with a different source string.
  • Cause: The same key was reused across different UI contexts.
  • Solution: Make the key more specific by adding more context segments, e.g. featureConfirmButtonLabel instead of featureLabel.

平台分布

Codex

36.06%
按下载量换算23

Claude

28.03%
按下载量换算18

Cursor

17.22%
按下载量换算11

Gemini CLI

8.82%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/ravnhq/ai-toolkit --skill localize-ios 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills