Agent skill

Doca I18n

by smartdoca in smartdoca/doca

Add interface languages to a Doca editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) or the Doca host.

MITAuto-check passedDocuments & Office

Install Doca I18n

skills CLI
$ npx skills add smartdoca/doca --skill doca-i18n -a claude-code

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

GitHub CLI
$ gh skill install smartdoca/doca doca-i18n --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/smartdoca/doca.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/doca-i18n .claude/skills/doca-i18n && 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
doca-i18n
GitHub stars
138
Token cost
~304 tokens
SKILL.md length
77 words
Files
2 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Add interface languages to a Doca editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) or the Doca host.

  • Works in 6 steps: 字典 key 用稳定的英文标识,例如… → 至少提供 en 和 zh 两份目录,key 集合相同。新增语言时只加一份目录。 → 占位符写成 {name}。需要区分数量时提供 key.one 和… → …
  • Adding Chinese/English UI copy
  • SKILL.md covers 子包要做的事 and 增加一种语言
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Doca I18n is an agent skill from smartdoca/doca. Add interface languages to a Doca editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) or the Doca host. Use when adding Chinese/English UI copy, a locale prop, message catalogs, or another language. Dictionary keys are stable English identifiers, not Chinese or full-sentence English.

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

It sits in Documents & Office, covering Internationalization, Excel spreadsheets and Slides and decks. The repository describes itself as: Document and knowledge base for individuals and small teams. The licence is MIT.

When your agent uses it

  • Adding Chinese/English UI copy
  • Message catalogs
  • Another language

Example prompts

  • “/doca-i18n”

Workflow steps

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

  1. 字典 key 用稳定的英文标识,例如 toolbar.bold、find.replaceAll。不要用中文,也不要用会随文案修改的整句英文。
  2. 至少提供 en 和 zh 两份目录,key 集合相同。新增语言时只加一份目录。
  3. 占位符写成 {name}。需要区分数量时提供 key.one 和 key.other,调用方传 count。
  4. locale 变化只更新按钮、菜单、占位符和提示。不要因此重建文档、Y.Doc、协同适配器或插件列表。
  5. 可以额外接受 messages?: Record 覆盖个别 key。没有这份 prop 也可以。
  6. 用户写进文档的文字、公式、单元格内容不翻译。

What it can do on your machine

Read from SKILL.md and the folder at commit dff4a30. 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 typescript).

    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

Doca I18n loads about 304 tokens when it runs, and up to ~1.9k if it reads all its reference files. Until then it costs about 83 tokens; SKILL.md has 77 words of instructions outside code blocks.

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

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 smartdoca/doca at commit dff4a30, republished under its MIT licence (© smartdoca). 77 words, ~304 tokens.

Download SKILL.mdSave it as .claude/skills/doca-i18n/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
doca-i18n
description
Add interface languages to a Doca editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) or the Doca host. Use when adding Chinese/English UI copy, a locale prop, message catalogs, or another language. Dictionary keys are stable English identifiers, not Chinese or full-sentence English.

Doca 界面语言

改编辑器子包或 Doca 宿主的界面文案前,先读 界面语言约定。Doca 仓库里的 docs/i18n.md 是源文件;本 skill 的 references/contract.md 是给子包安装的副本。两边要一起改,不能各写各的。

子包自己保存界面文案。不要引用 Doca 的字典,也不要读取 ui.locale 或 localStorage。

子包要做的事

  1. 给编辑器组件增加可选的 locale?: string。宿主会这样传入:
tsx
<RichTextEditor locale={locale} />

当前只有 zh 和 en。不认识的代码按 en 显示。缺省时按 zh 显示。

  1. 字典 key 用稳定的英文标识,例如 toolbar.bold、find.replaceAll。不要用中文,也不要用会随文案修改的整句英文。
  2. 至少提供 en 和 zh 两份目录,key 集合相同。新增语言时只加一份目录。
  3. 占位符写成 {name}。需要区分数量时提供 key.one 和 key.other,调用方传 count。
  4. locale 变化只更新按钮、菜单、占位符和提示。不要因此重建文档、Y.Doc、协同适配器或插件列表。
  5. 可以额外接受 messages?: Record<string, string> 覆盖个别 key。没有这份 prop 也可以。
  6. 用户写进文档的文字、公式、单元格内容不翻译。

宿主只在安装包的类型声明里已经有 locale 时才传入。类型里还没有这个 prop 时不要先传。

增加一种语言

在宿主 locales 和每个编辑器子包里同时加上同一种语言代码和一份与英文 key 相同的目录。不要改已有 key,也不要改调用方式。

© smartdoca, 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 skills/doca-i18n of smartdoca/doca.

  • SKILL.md
  • references/contract.md

Open the folder on GitHubat commit dff4a30

Compare with similar skills

Doca I18n 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.

Doca I18n compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Doca I18n this skillsmartdoca/doca138—~304Automated safety check: PassMIT
Documentszhongkaifu/TensorSharp559—~4.2kAutomated safety check: PassBSD-3-Clause
Xiaobei Skill Image To Vbaxiao24bei/xiaobei-skill584—~6.9kAutomated safety check: PassApache-2.0
Officecli Commonly TemplatesTeam-Commonly/commonly1.4k—~1.7kAutomated safety check: PassApache-2.0
Harness Useautonomous-ai/Physical-AI-Operating-System381—~8kAutomated safety check: PassApache-2.0
Office ArtifactsPrismer-AI/PrismerCloud1.6k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Documents

    zhongkaifu/TensorSharp

    Read and write real documents on the device - PDF, XLSX, DOCX, PPTX and CSV.

    559 GitHub stars~4.2k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Xiaobei Skill Image To Vba

    xiao24bei/xiaobei-skill

    A skill your agent uses when users want XiaoBei skill / xiaobei-skill / 小北在读研 style academic image-to-VBA reconstruction: convert academic figures, scientific diagrams, slides, screenshots, or other…

    584 GitHub stars~6.9k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Officecli Commonly Templates

    Team-Commonly/commonly

    A skill your agent uses when producing a polished, Commonly-branded deliverable (.docx brief / memo, .xlsx data matrix, .pptx deck) and you do not have specific brand guidance from the user.

    1.4k GitHub stars~1.7k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Harness Use

    autonomous-ai/Physical-AI-Operating-System

    Delegate digital work to agents on the computer paired through Harness; discover Store packages and prepare an agent when needed.

    381 GitHub stars~8k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Office Artifacts

    Prismer-AI/PrismerCloud

    Generate real DOCX, PPTX, XLSX, PDF, CSV files using python-docx / python-pptx / openpyxl / reportlab by writing them into the dispatch artifacts dir, then explicitly deliver each one with cloud…

    1.6k GitHub stars~2.6k tokensUpdated 9 days ago
    Documents & OfficeAuto-check passed
  • Sn Da Non Spreadsheet Analysis

    OpenSenseNova/SenseNova-Skills

    Word / PDF / PPT 文档解析与数据分析引擎。覆盖三类文件格式的全量提取、表格数值化、图表理解与跨文档汇总分析。遇到以下任一情况就主动使用本 skill:①用户上传或指定了 .docx / .doc / .pdf / .pptx / .ppt 文件并要求分析、提取或统计其中内容;②用户出现触发词:Word分析 / PDF解析 / PPT提取 / 文档分析 / 报告解析 /…

    5.7k GitHub stars~1.2k tokensUpdated today
    Documents & OfficeAuto-check passed

More from smartdoca/doca

  • Doca Collaboration

    smartdoca/doca

    Implement, review, or upgrade realtime collaboration between Doca and any document-type editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) using the shared Yjs…

    138 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Integrate or standardize any document-type editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) in Doca and online-office modules, including resource callbacks…

    138 GitHub stars~690 tokensUpdated today
    Auto-check passed

Questions about Doca I18n

What does Doca I18n do?

Add interface languages to a Doca editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) or the Doca host. Doca I18n is an agent skill from smartdoca/doca. Add interface languages to a Doca editor subpackage (rich text, spreadsheet, Markdown, canvas, slides, and future formats) or the Doca host.

When should I use Doca I18n?

Doca I18n fits situations like: adding Chinese/English UI copy; message catalogs; another language.

How do I install Doca I18n in Claude Code?

Run `npx skills add smartdoca/doca --skill doca-i18n -a claude-code`. Or copy the skill folder (skills/doca-i18n in smartdoca/doca) into .claude/skills/doca-i18n in your project. Claude Code loads it when a task matches its description.

How do I install Doca I18n in Codex?

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

Can I use Doca I18n 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 smartdoca/doca --skill doca-i18n -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doca-i18n, .gemini/skills/doca-i18n, .github/skills/doca-i18n and .opencode/skills/doca-i18n in your project.

What does Doca I18n need to run?

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

Does Doca I18n 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 Doca I18n 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 Doca I18n use?

Doca I18n 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 Doca I18n use?

About 304 tokens (SKILL.md is roughly 1.2k 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 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Doca I18n?

Skills that share tags, products or a category with Doca I18n: Documents (zhongkaifu/TensorSharp, 559 stars), Xiaobei Skill Image To Vba (xiao24bei/xiaobei-skill, 584 stars), Officecli Commonly Templates (Team-Commonly/commonly, 1.4k stars) and Harness Use (autonomous-ai/Physical-AI-Operating-System, 381 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Doca I18n?

smartdoca (a GitHub user) maintains it in smartdoca/doca, which has 138 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 9, 2026.

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