用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nomos-guild/cgov --skill i18n命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Scaffold a new dashboard chart component with registry, types, and proper theme integration.
Create a new customizable dashboard with its own chart registry, provider, and page. Use when adding dashboards like DRep or SPO dashboard.
Context window conservation rules. Invoke when approaching context limits or before large tasks.
正在显示 SKILL.md
基于 SOC 职业分类
| name | i18n |
| updated | "2026-02-11T00:00:00.000Z" |
| description | Add or update translations across all 7 locale files and wire them into React components or pure utility functions. |
| argument-hint | ["scope description"] |
| allowed-tools | Read, Edit, Write, Glob, Grep |
$0 - What to translate (e.g., "DRep dashboard labels", "new filter buttons")Locales: en, de, fr, es, pt, ja, zh — files at src/messages/{locale}.json
Library: next-intl — useTranslations("namespace") in components, typed labels object for lib/ utilities
CRITICAL: All 7 files must stay in sync. Missing keys cause runtime errors.
en.json (find neighboring keys)const t = useTranslations("namespace"); t("key")| Namespace | Purpose |
|---|---|
common | Shared UI: loading, retry, search, showMore |
meta | Page titles/descriptions |
landing | Landing page |
dashboard | Dashboard page |
stats | Stat cards |
status | Status labels: Active, Ratified, Enacted |
actionTypes | NoConfidence, UpdateCommittee, etc. |
filters | Filter UI |
table | Table headers |
voting | drep, spo, cc, yes, no, abstain, threshold |
charts | Dashboard chart titles |
sort | Sort controls |
proposal | Proposal detail page |
export | Export file labels |
drep | DRep dashboard |
drep.profile | DRep profile page |
tabs | Tab labels |
expiry | Proposal expiry |
errors | Error states |
download | Download dropdown |
accessibility | Screen reader labels |
Max one nesting level (e.g., charts.proposalStatus.title).
"Show {count} more" — ensure {count} in all locales"\uFEFF") for Excel compatibilityFunctions in lib/ can't use hooks. Pass a typed labels object from the component:
// lib/export.ts
export interface ExportLabels { noRationale: string; voteYes: string; }
export function exportToCSV(data: Data[], labels: ExportLabels) { ... }
// Component
const labels: ExportLabels = useMemo(() => ({
noRationale: t("noRationale"), voteYes: t("voteYes"),
}), [t]);
getVoteBadgeClasses(vote.vote)), translated values only for displayuseLocale() for date/number formatting: new Date(ts).toLocaleDateString(locale, {...})