Agent skill

Dota2 Localization

by XavierCHN in XavierCHN/x-template

为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(addon.csv)。触发词:本地化、翻译、loc、i18n、addon.csv、文本、tooltip、多语言。Use when user asks to generate localization entries for abilities/units/items/modifiers, translate Chinese to…

MITAuto-check passedFrontend & Design

Install Dota2 Localization

skills CLI
$ npx skills add XavierCHN/x-template --skill dota2-localization -a claude-code

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

GitHub CLI
$ gh skill install XavierCHN/x-template dota2-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/XavierCHN/x-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/dota2-localization .claude/skills/dota2-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
dota2-localization
GitHub stars
216
Token cost
~567 tokens
SKILL.md length
99 words
Files
2 (incl. references)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(addon.csv)。触发词:本地化、翻译、loc、i18n、addon.csv、文本、tooltip、多语言。Use when user asks to generate localization entries for abilities/units/items/modifiers, translate Chinese to…

  • Works in 4 steps: 用户提供中文文本(技能名称、描述、数值标签) → 计算中文文本的显示宽度 → 生成对其他语言的翻译,确保在不同语言 UI 中显示宽度大致平衡 → …
  • User asks to generate localization entries for abilities/units/items/modifiers
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Translate Chinese to English based on character width balance

What it does

Dota2 Localization is an agent skill from XavierCHN/x-template. 为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(addon.csv)。触发词:本地化、翻译、loc、i18n、addon.csv、文本、tooltip、多语言。Use when user asks to generate localization entries for abilities/units/items/modifiers, translate Chinese to English based on character width balance, or add entries to game/resource/addon.csv.

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/naming-conventions.md`).

It sits in Frontend & Design, covering Internationalization and CSV and tabular files. The repository describes itself as: DOTA2自定义游戏开发模板项目,使用typesscript和react开发; Xavier's DOTA 2 custom game template using typescript and react-panorama. The licence is MIT.

When your agent uses it

  • User asks to generate localization entries for abilities/units/items/modifiers
  • Translate Chinese to English based on character width balance
  • Add entries to game/resource/addon.csv

Example prompts

  • “/dota2-localization”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 用户提供中文文本(技能名称、描述、数值标签)
  2. 计算中文文本的显示宽度
  3. 生成对其他语言的翻译,确保在不同语言 UI 中显示宽度大致平衡
  4. 写入 game/resource/addon.csv(遵循现有的 CSV 格式)

What it can do on your machine

Read from SKILL.md and the folder at commit ba97b00. 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 (its code samples are csv).

    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

Dota2 Localization loads about 567 tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 75 tokens; SKILL.md has 99 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~567
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.1k

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 XavierCHN/x-template at commit ba97b00, republished under its MIT licence (© XavierCHN). 99 words, ~567 tokens.

Download SKILL.mdSave it as .claude/skills/dota2-localization/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
dota2-localization
description
为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(addon.csv)。触发词:本地化、翻译、loc、i18n、addon.csv、文本、tooltip、多语言。Use when user asks to generate localization entries for abilities/units/items/modifiers, translate Chinese to English based on character width balance, or add entries to game/resource/addon.csv.

为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(game/resource/addon.csv)。

本地化规则

CSV 格式
csv
Tokens,English,SChinese
DOTA_Tooltip_ability_arcane_hawk_x,Arcane Hawk,奥法鹰隼
  • kv_generated.csv 的列序是 Tokens,SChinese,English(注意区别)
Token 命名规则
实体Token 模板对应文件
技能名DOTA_Tooltip_ability_<技能名>npc/abilities/
技能描述DOTA_Tooltip_ability_<技能名>_Description
技能数值标签DOTA_Tooltip_ability_<技能名>_<AbilityValues键名>
单位名npc_dota_unit_<单位名>npc/custom_units/
英雄名npc_dota_hero_<英雄名>npc/heroes.txt
物品名DOTA_Tooltip_ability_item_<物品名>npc/items_list/
物品描述DOTA_Tooltip_ability_item_<物品名>_Description
物品数值标签DOTA_Tooltip_ability_item_<物品名>_<键名>
Modifier 名DOTA_Tooltip_modifier_<修饰器名>src/modifiers/
Modifier 描述DOTA_Tooltip_modifier_<修饰器名>_Description
本地化工作流
  1. 用户提供中文文本(技能名称、描述、数值标签)
  2. 计算中文文本的显示宽度:
    • 1 个 CJK 字符 ≈ 2 个拉丁字符的显示宽度
    • 例如 5 个中文字 → 英文长约 10 个字符
  3. 生成对其他语言的翻译,确保在不同语言 UI 中显示宽度大致平衡
  4. 写入 game/resource/addon.csv(遵循现有的 CSV 格式)
翻译准则
  • 技能名称:简短有力,1-5 个中文词 → 1-3 个英文词
  • 技能描述:根据中文长度控制英文长度,保持 UI tooltip 不溢出(中文 30-60 字 → 英文 60-120 字符)
  • 数值标签:保持简洁,关键词对齐,例如 基础伤害 → Base Damage、智力系数 → Intelligence Multiplier
  • 单位名称:保持与技能风格一致
示例

用户提供:技能名 奥法鹰隼,描述 施放出缓慢移动的奥术鹰群,对敌方单位造成基于智力值的魔法伤害。,AbilityValues 有 base_damage、int_multiplier、projectile_speed、vision_radius

生成:

csv
DOTA_Tooltip_ability_arcane_hawk_x,Arcane Hawk,奥法鹰隼
DOTA_Tooltip_ability_arcane_hawk_x_Description,Releases slowly moving arcane hawks that damage enemy units based on intelligence.,施放出缓慢移动的奥术鹰群,对敌方单位造成基于智力值的魔法伤害。
DOTA_Tooltip_ability_arcane_hawk_x_base_damage,Base Damage,基础伤害
DOTA_Tooltip_ability_arcane_hawk_x_int_multiplier,Intelligence Multiplier,智力系数
DOTA_Tooltip_ability_arcane_hawk_x_projectile_speed,Projectile Speed,弹道速度
DOTA_Tooltip_ability_arcane_hawk_x_vision_radius, Vision Radius,视野范围

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

Files

SKILL.md and 1 other file (references) in .agents/skills/dota2-localization of XavierCHN/x-template.

  • SKILL.md
  • references/naming-conventions.md

Open the folder on GitHubat commit ba97b00

Compare with similar skills

Dota2 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.

Dota2 Localization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dota2 Localization this skillXavierCHN/x-template216—~567Automated safety check: PassMIT
I18nerupts/erupt-web116—~706Automated safety check: PassApache-2.0
Odoo 16unclecatvn/agent-skills143—~1.4kAutomated safety check: PassMIT
Odoo 17unclecatvn/agent-skills143—~1.4kAutomated safety check: PassMIT
Odoo 18unclecatvn/agent-skills143—~1.3kAutomated safety check: PassMIT
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT

Similar skills

  • I18n

    erupts/erupt-web

    i18n — add multilingual translations. An agent skill from erupts/erupt-web.

    116 GitHub stars~706 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Odoo 16

    unclecatvn/agent-skills

    Odoo 16 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    143 GitHub stars~1.4k tokensUpdated 14 days ago
    Frontend & DesignAuto-check passed
  • Odoo 17

    unclecatvn/agent-skills

    Odoo 17 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    143 GitHub stars~1.4k tokensUpdated 14 days ago
    Frontend & DesignAuto-check passed
  • Odoo 18

    unclecatvn/agent-skills

    Odoo 18 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    143 GitHub stars~1.3k tokensUpdated 14 days ago
    Frontend & DesignAuto-check passed
  • 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

More from XavierCHN/x-template

  • Dota2 Game Logic

    XavierCHN/x-template

    DOTA2 自定义游戏服务端逻辑开发指南。触发词:游戏逻辑、服务端、server、game mode、游戏模式、GameRules、modifier、timer、lua、TSTL。Use when user asks to create or modify DOTA2 custom game server-side logic, game mode configuration…

    216 GitHub stars~2.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Dota2 UI

    XavierCHN/x-template

    DOTA2 自定义游戏 UI(Panorama)开发指南。触发词:UI、界面、面板、panorama、frontend、前端、HUD、layout、xml、css、样式。Use when user asks to create or modify DOTA2 custom game UI panels, React components, CSS styles, layout XML…

    216 GitHub stars~5.5k tokensUpdated 4 mo ago
    Auto-check passed
  • Dota2 Ability

    XavierCHN/x-template

    Dota 2 自定义技能编写指南。触发词:技能、ability、spell、被动、主动. An agent skill from XavierCHN/x-template.

    216 GitHub stars~3.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Dota2 Item

    XavierCHN/x-template

    Dota 2 自定义物品编写指南。触发词:物品、item、装备、道具、配方、recipe、合成. An agent skill from XavierCHN/x-template.

    216 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Dota2 Unit

    XavierCHN/x-template

    Dota 2 自定义单位编写指南。适用于编写/修改单位 KV 配置文件(game/scripts/npc/customunits/)。触发词:单位、unit、creature、怪物、召唤物、建筑、塔、npc。

    216 GitHub stars~2.4k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Dota2 Localization

What does Dota2 Localization do?

为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(addon.csv)。触发词:本地化、翻译、loc、i18n、addon.csv、文本、tooltip、多语言。Use when user asks to generate localization entries for abilities/units/items/modifiers, translate Chinese to…. Dota2 Localization is an agent skill from XavierCHN/x-template.csv.

When should I use Dota2 Localization?

Dota2 Localization fits situations like: user asks to generate localization entries for abilities/units/items/modifiers; translate Chinese to English based on character width balance; add entries to game/resource/addon.csv.

How do I install Dota2 Localization in Claude Code?

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

How do I install Dota2 Localization in Codex?

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

Can I use Dota2 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 XavierCHN/x-template --skill dota2-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/dota2-localization, .gemini/skills/dota2-localization, .github/skills/dota2-localization and .opencode/skills/dota2-localization in your project.

What does Dota2 Localization need to run?

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

Does Dota2 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 Dota2 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 Dota2 Localization use?

Dota2 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 Dota2 Localization use?

About 567 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 500 tokens, read only when the agent opens those files.

What are the alternatives to Dota2 Localization?

Skills that share tags, products or a category with Dota2 Localization: I18n (erupts/erupt-web, 116 stars), Odoo 16 (unclecatvn/agent-skills, 143 stars), Odoo 17 (unclecatvn/agent-skills, 143 stars) and Odoo 18 (unclecatvn/agent-skills, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dota2 Localization?

XavierCHN (a GitHub user) maintains it in XavierCHN/x-template, which has 216 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on May 23, 2026.

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