dev-dictionary
FreeNo executable scriptsNot checked开发者需要新增或修改枚举值中文映射时触发。当用户说"加字典"、"加映射"、"枚举翻译"、"label"、"中文标签"、"dictionary"、"dict"时使用本 skill。确保所有枚举值的中英文映射集中在 `packages/shared/src/i18n/`…
by pdl-openair★ 16 GitHub starsAbout this skill
Dev: Dictionary (字典表维护)
When to use
开发者需要新增、修改或检查枚举值的中文映射标签。
Rules source
Read before modifying:
docs/03_工程/工程规范/dictionary_rules.md-- 字典表使用规范(权威规则)packages/shared/src/i18n/dict.ts-- 字典数据(权威数据源)packages/shared/src/task.ts-- 枚举类型定义(类型源)
Pre-checks
- 确认枚举类型是否已在
packages/shared/src/task.ts或dict.types.ts中定义 - 确认映射值是否已在
dict.ts中收录 - 搜索
apps/web/src/确认没有组件内硬编码的Record<XxxEnum, string>映射
Workflow
- 在
dict.types.ts或task.ts中补类型定义 - 在
dict.ts中补映射常量 - 更新
i18n/index.ts和packages/shared/src/index.ts的 export - 在前端组件中用
label()/labelUnknown()替代硬拼接 - 全局搜索确认无残留散落映射
Install dev-dictionary in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the dev-dictionary skill do?
开发者需要新增或修改枚举值中文映射时触发。当用户说"加字典"、"加映射"、"枚举翻译"、"label"、"中文标签"、"dictionary"、"dict"时使用本 skill。确保所有枚举值的中英文映射集中在 `packages/shared/src/i18n/` 下维护,不散落在前端组件中。即使用户只是问"这个状态怎么显示中文",只要涉及枚举映射就应该触发。
How do I install the dev-dictionary skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the dev-dictionary skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic