Agent skill

UI Localization

by Torch1230 in Torch1230/CombatSolver

新增或修改 CombatSolver 玩家可见 UI 文案、胶囊附加信息、提示与本地化时使用,维护中英双语和显示边界;创意工坊介绍与发包另用 release-gate。

MITAuto-check passedFrontend & Design

Install UI Localization

skills CLI
$ npx skills add Torch1230/CombatSolver --skill ui-localization -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Torch1230/CombatSolver ui-localization --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Torch1230/CombatSolver.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ui-localization .claude/skills/ui-localization && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ui-localization
GitHub stars
119
Token cost
~521 tokens
SKILL.md length
70 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

新增或修改 CombatSolver 玩家可见 UI 文案、胶囊附加信息、提示与本地化时使用,维护中英双语和显示边界;创意工坊介绍与发包另用 release-gate。

  • Tasks that involve Internationalization
  • SKILL.md covers 当前入口, 维护边界 and 验证
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

UI Localization is an agent skill from Torch1230/CombatSolver. 新增或修改 CombatSolver 玩家可见 UI 文案、胶囊附加信息、提示与本地化时使用,维护中英双语和显示边界;创意工坊介绍与发包另用 release-gate。

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Internationalization. The repository describes itself as: Slay the Spire 2 single-player combat route solver mod. The licence is MIT.

When your agent uses it

  • Tasks that involve Internationalization

Example prompts

  • “/ui-localization”

What it can do on your machine

Read from SKILL.md and the folder at commit 5c773ca. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

UI Localization loads about 521 tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 70 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~521

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Torch1230/CombatSolver at commit 5c773ca, republished under its MIT licence (© Torch1230). 70 words, ~521 tokens.

Download SKILL.mdSave it as .claude/skills/ui-localization/SKILL.md (or your agent's skills folder).
name
ui-localization
description
新增或修改 CombatSolver 玩家可见 UI 文案、胶囊附加信息、提示与本地化时使用,维护中英双语和显示边界;创意工坊介绍与发包另用 release-gate。

CombatSolver 中英界面维护

当前入口

  • src/UI/SolverText.cs 与内嵌 src/UI/English.json:zhs / zht 使用现有中文,其他语言使用英文。当前没有独立语言开关;切换游戏语言后重启统一刷新既有窗口和路线快照。
  • 静态文案用 SolverText.Get,插值用 SolverText.Format。先翻译完整模板,再插入名称、数字和玩家输入;保留占位符及格式,不对最终拼接文本全局替换中文。
  • SolverOverlaySnapshot.CaptureAction 同时生成胶囊和悬停说明。显示新信息时检查标题、目标、击杀括号来源、遗物效果、药水类型、选牌及嵌套/空选择,避免只翻译一级标签。
  • 卡牌名称以 snapshot 的 SolverActionTextIdentity 中稳定 ID/升级为依据,由主线程 SolverUiModelNames 解析当前语言;不要重新直接显示 PlanAction.CardTitle 或从已翻译标题推断升级。已有胶囊通过 SolverLocaleRefresh 合并语言通知原位刷新,退出树后解除登记;新增显示字段同时考虑新投影和已存活控件。
  • 路线行复用须比较全部动作显示值与完整本地化身份,包括嵌套选择和遗物,不能只比较当前标题。整行构建成功后才发布可复用快照,失败半行不能复用。语言变化后Populate重新构造该行,状态页清空上一快照,部署高亮每次Populate重置;不影响Runtime的最新路线采用数据。语言通知每帧合并一次,但不能因最终语言与上次相同而跳过刷新——中途可能新建了控件。合同覆盖同帧往返、保留/替换控件、失败后重试、部署索引与退出树订阅清理。
  • SolverRelicEffectText 解析内置遗物摘要的紧凑语法。新增内置记录格式时同步中英显示与样本;第三方自定义摘要保留其原文。
  • SolverDisplayNames.Capture 在主线程获取游戏名称,捕获能力/充能球的规范 ID 与类型名别名和通用来源的语言。worker 只读取冻结名称表;根外生成敌人按主线程冻结的原版站位横向顺序和分支已知阵容生成左起编号,动作目标与击杀说明共用名称入口;已死亡敌人保留编号依据,后台不读场景节点,不把内部战斗 ID 当显示编号;卡牌、怪物、遗物等沿用游戏译名。

维护边界

翻译位于 UI 投影或主线程名称捕获,Search 不引用 SolverText / SolverRelicEffectText,不读取实时语言,不逐分支加载资源或做本地化。搜索状态键、结构化事件 ID、协议和原始异常保持原口径。现有部分详细诊断与系统通知仍是原文,新增玩家文案应同时提供英文,不把这项历史限制扩大到新功能。

英文控件使用简短措辞,说明文字适当换行;检查窄面板和数值控件,避免依赖中文字符宽度估算布局。文案和用户输入按既有纯文本/富文本边界处理,不翻译或解释用户插值内容。

验证

文案改动选择受影响的最小检查;扩展胶囊来源或格式时使用 UI-LOCALIZATION headless 合同,覆盖 eng/zhs/zht、模板占位符、名称冻结、附加标签与 tooltip 一致性。命令及已有证据见 docs/TEST_MATRIX.md。只更新本 skill 时检查 frontmatter、路径和职责,不启动游戏。

名称缓存/刷新改动还覆盖同一已保存英文路线和存活控件的中文→英文→中文往返,含升级牌、嵌套选择、JSON 恢复、订阅清理和搜索状态保持。只在每种语言下重建控件不足以验证热切换。

输入未变且已有成功证据时复用。Headless 不证明真实排版或帧率;用户明确交由自己做交互验收时按其要求执行。

  • 循环折叠保留完整平坦动作,不复用 ReplayCount 表示周期次数。snapshot 的动作结构身份及全部显示值/语言身份共同决定可折叠性;UI 投影忽略物理手牌序号,目标有 CombatId 时按该 ID 区分而非可变阵容索引,原搜索键与部署动作保持原值;三次以上重复才折叠;路线行保存区间、周期与偏移,真实动作数和部署索引保持原合同。末击/遗物效果/选择不同必须分开,循环次数与整周期动作包在同一轻量外框,次数放在动作右侧;宽面板按内容收紧,窄面板在组内换行,不新增动作间箭头。路线外层布局区分自然宽度和最小宽度,避免长循环阻止面板收窄;悬停说明随语言通知刷新。16 行之外须提示未显示回合数。验证区间中间/末次/后缀高亮、失败构造重试和折叠行复用。

© Torch1230, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/ui-localization of Torch1230/CombatSolver.

Open the folder on GitHubat commit 5c773ca

Compare with similar skills

UI Localization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

UI Localization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
UI Localization this skillTorch1230/CombatSolver119—~521Automated safety check: PassMIT
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT
Chatbox i18n Translatorchatboxai/chatbox42k—~508Automated safety check: PassGPL-3.0
Internationalization Workflow with i18niOfficeAI/AionUi33k1 repos~1.9kAutomated safety check: PassApache-2.0
Enforce Rules For I18nmoeru-ai/airi50k—~1.5kAutomated safety check: PassMIT
Claude Desktop Chinese Localizationjavaht/claude-desktop-zh-cn7.5k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Chatbox i18n Translator

    chatboxai/chatbox

    Translates new or changed i18n keys from a Chatbox Pro diff, staged changes or a commit range, writing the locale JSON files directly with a built-in glossary.

    42k GitHub stars~508 tokensUpdated 14 days ago
    Frontend & DesignAuto-check passed
  • Standards for keeping all user-facing text translatable: read the i18n config first, use namespaced keys, reuse shared strings and follow the key naming rules.

    33k GitHub starsUsed in 1 repo~1.9k tokens
    Frontend & DesignAuto-check passed
  • Review pending AIRI translations on Crowdin in a batch, then sync them into the repository.

    50k GitHub stars~1.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Claude Desktop Chinese Localization

    javaht/claude-desktop-zh-cn

    Adds missing Simplified and Traditional Chinese translations to the Claude Desktop Chinese patch across three layers, then checks how many mappings actually hit.

    7.5k GitHub stars~1.6k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Taro UI Guide

    jd-opensource/taro-ui

    Guides installing, configuring, styling and using taro-ui (At* components) in Taro apps for WeChat, Alipay, H5 and React Native.

    4.7k GitHub stars~1.3k tokensUpdated 13 days ago
    Frontend & DesignAuto-check passed

More from Torch1230/CombatSolver

All 8 skills in this repo
  • Combat Semantic Change

    Torch1230/CombatSolver

    修改 CombatSolver 的卡牌、Power、遗物、药水、球、怪物行动、死亡召唤、选择、RNG、Fork 或跨回合战斗状态时,选择正确语义层并验证根快照、分支状态和实际结算。

    119 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Release Gate

    Torch1230/CombatSolver

    用户要求准备或发布 CombatSolver 版本、生成 ZIP、创建版本标签、上传 Steam 创意工坊或夸克网盘、同步 GitHub、执行干净安装或完整发布验收时,按口令边界完成对应阶段;普通开发不触发外部发布。

    119 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Strategy Replay Iteration

    Torch1230/CombatSolver

    批量回放 CombatSolver 的“找到更优世界线”报告,筛出同根、可比较且扣除药水成本后仍成立的策略缺口,并按小批次完成定位、改进和数字记录;不用于普通语义错误分诊或全量性能审计。

    119 GitHub stars~614 tokensUpdated yesterday
    Auto-check passed
  • Architecture Boundary Refactor

    Torch1230/CombatSolver

    重构 CombatSolver 的 Search、Runtime 会话、UI snapshot、无人测试编排或 mirror registry 职责边界时使用;目标是迁移所有权和依赖,同时保持战斗语义、路线政策与协议行为不变。

    119 GitHub stars~3.2k tokensUpdated yesterday
    Auto-check passed
  • Combatsolver Community Tasks

    Torch1230/CombatSolver

    静态分析 CombatSolver 日志的首因与共同机制,每批发布五个主题、每主题一至两个代表包;重复主题删除服务器包并跳过,发布后清理暂存。用于故障与路线优化社区任务,客户端发版使用 release-gate。

    119 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Issue Bundle Triage

    Torch1230/CombatSolver

    收到 CombatSolver 玩家问题 ZIP、战斗日志、存档或复现包时,安全盘点证据、确认声明版本、定位首个差异并设计可执行 fixture;不把问题包存在等同于已经回放。

    119 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Questions about UI Localization

What does UI Localization do?

新增或修改 CombatSolver 玩家可见 UI 文案、胶囊附加信息、提示与本地化时使用,维护中英双语和显示边界;创意工坊介绍与发包另用 release-gate。. UI Localization is an agent skill from Torch1230/CombatSolver.

When should I use UI Localization?

UI Localization fits situations like: tasks that involve Internationalization.

How do I install UI Localization in Claude Code?

Run `npx skills add Torch1230/CombatSolver --skill ui-localization -a claude-code`. Or copy the skill folder (.agents/skills/ui-localization in Torch1230/CombatSolver) into .claude/skills/ui-localization in your project. Claude Code loads it when a task matches its description.

How do I install UI Localization in Codex?

Run `npx skills add Torch1230/CombatSolver --skill ui-localization -a codex`. Or copy the skill folder (.agents/skills/ui-localization in Torch1230/CombatSolver) into .agents/skills/ui-localization in your project. Codex loads it when a task matches its description.

Can I use UI Localization in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Torch1230/CombatSolver --skill ui-localization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ui-localization, .gemini/skills/ui-localization, .github/skills/ui-localization and .opencode/skills/ui-localization in your project.

What does UI Localization need to run?

SKILL.md names no scripts, command-line tools or credentials: UI Localization is instructions for the agent only.

Does UI Localization access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is UI Localization safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does UI Localization use?

UI Localization is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does UI Localization use?

About 521 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to UI Localization?

Skills that share tags, products or a category with UI Localization: Impeccable (bestofjs/bestofjs, 3.1k stars), Chatbox i18n Translator (chatboxai/chatbox, 42k stars), Internationalization Workflow with i18n (iOfficeAI/AionUi, 33k stars) and Enforce Rules For I18n (moeru-ai/airi, 50k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains UI Localization?

Torch1230 (a GitHub user) maintains it in Torch1230/CombatSolver, which has 119 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 7, 2026.

Source: Torch1230/CombatSolver on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.