AGENT SKILL

i18n-manager

Extract hardcoded strings into .resx or .json localization files and replace with translation keys. Use when localizing code or invoking /i18n-manager.

License 许可
MIT
最近更新
2026-11-08
Stars
★ 6
Forks
0

01 前言 Front Matter

name
i18n-manager
description
Extract hardcoded strings into .resx or .json localization files and replace with translation keys. Use when localizing code or invoking /i18n-manager.

02 资源文件 6

03 SKILL.md 正文

STOP - Read before ANY tool call

Read _shared/skill-boilerplate.md first. It holds the guardrails read, the session gate rule, the user sim rule, the one-step rule, the gate check, and the user chat language rule. The steps below are skill-specific only.


Skill: i18n-manager

Trigger

Negative signal: applies as defined in _shared/skill-boilerplate.md; the skill-specific signals are listed below.

Invoke when the user requests: /i18n-manager, localize code, or asks to internationalize a component.

Arguments (optional):

Input Meaning
Target directory Scopes the scan for string literals to a specific subfolder

Outcome

  1. Refactored code files where raw strings are replaced by framework-native translation variables or helpers (e.g. _localizer["Key"], t('Key')).
  2. Updated localization resource files (.resx for C#, .json translation dictionaries for JavaScript/TypeScript).

Lazy-load (only when needed)

When Path (after syncing the active adapter)
C# projects {{TOOLKIT_ROOT}}/skills/_shared/dotnet-guidelines/string-manipulation.md
React / Angular {{TOOLKIT_ROOT}}/skills/_shared/frontend-guidelines/frontend-practices.md
Caveman Mode (if active) {{TOOLKIT_ROOT}}/skills/_shared/caveman/CAVEMAN.md - Full cap
Reference index (routing only) {{TOOLKIT_ROOT}}/skills/i18n-manager/reference.md
Process step detail (lazy) {{TOOLKIT_ROOT}}/skills/i18n-manager/references/<section>.md

Never by default: do not preload all references/*.md, unrelated stack guideline packs, or memory-bank/PRD dumps. Load one section per Process step (SKILL-REFERENCE-RETRIEVAL.md).

Reference routing

Situation Path
Frame context / gates references/frame-context.md
Scan literals + workflow choice references/scan-and-workflow.md
Resource bundles + code refactor references/localize-apply.md
Build, verify, handoff references/build-verify-handoff.md
Must not (full) references/must-not.md

Process

Read references/<section>.md for procedural detail — not full reference.md.

Step -1b / -1. Caveman + gates

Follow references/frame-context.md.

0–1. Frame context and scan

Follow references/frame-context.md then references/scan-and-workflow.md. Wait for explicit workflow choice before writing.

2–3. Apply localization

Follow references/localize-apply.md.

4–5. Build, verify, handoff

Follow references/build-verify-handoff.md.

Must not

Enforce the full list in references/must-not.md. Critical: no generic keys (Text1); no mutating logger/config strings; no write before workflow choice.

Handoff

Situation Next
Commit refactors /commit
Large app-wide i18n via SDD /sdd-spec then plan/develop
Stack-specific coding help /developer or matching *-developer

04 同仓库更多 Skills