跳到正文
cccskills
免费在 GitHub 公开

i18n Unused Key Review

Detect i18n/locale keys that are removed from source but remain in locale files, or keys added to locale files without source usage.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(5)

  • SKILL.md2.2 KB
  • fixtures/01-removed-component-key-left-behind.md1.3 KB
  • fixtures/01-should-detect.md1.1 KB
  • fixtures/02-dynamic-key-false-positive.md1.5 KB
  • fixtures/02-should-not-detect.md871 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: i18n key管理はdiff単体では判断が難しく、ファイル全体とソース参照の両方を踏まえる必要がある

Guidance

  • Check if translation keys deleted from source code (e.g., t('key'), i18n.t('key'), $t('key')) still exist in locale JSON files — report as unused key.
  • Check if new keys added to locale JSON files are referenced in source code — report as potentially orphaned key.
  • Look for patterns like t('user.profile.name'), i18n('common.cancel'), formatMessage({ id: 'key' }).
  • When source file is deleted entirely, flag all its keys in locale files as candidates for removal.

Non-goals

  • 動的に構築されるkey(テンプレートリテラルやconcat)は誤検知になりやすいため指摘しない。
  • 外部ライブラリのkey(third-party component内部のi18n keyなど)は対象外。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。

  • 差分にi18n/locale関連ファイル(*.json, /i18n/, /locales/)の変更が含まれている
  • または差分にUI文言を削除・変更するソースコードの変更が含まれている

ゲート不成立時の出力: NO_REVIEW: i18n-unused-key — i18n/locale関連の変更が検出されない

False-positive guards

  • keyがワイルドカードや動的参照で使用されている可能性がある場合は黙る。
  • テスト用フィクスチャやstorybook内のkey定義は対象外。
  • 同一PR内で追加と削除が対になっている(リネーム)場合は指摘しない。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

<What this skill does>

中文简介正在准备中。当前显示原文说明。

s977043/river-review72026年10月24日 更新

画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。

中文简介正在准备中。当前显示原文说明。

s977043/river-review72026年10月24日 更新

Ensure ADRs capture context, decision, alternatives, tradeoffs, and follow-ups in a way that prevents future drift.

中文简介正在准备中。当前显示原文说明。

s977043/river-review72026年10月24日 更新

敵対的分析手法を統合したレビューの entry skill。認知バイアス対策の3手法 (Pre-mortem / War Game / Logic Torturing)と、宣言・主張と実態の乖離を突く claim-vs-actual 検出3パターン(Self-Contradiction / Refactor-Claim Audit / Cross-File Leakage)へルーティングし、通常のレビューでは見えない設計の盲点・ 防御の穴・論理の弱点・宣言と実装のズレを可視化する。

中文简介正在准备中。当前显示原文说明。

s977043/river-review72026年10月24日 更新

Review changes to the Agent Skills import/export bridge for path safety, round-trip fidelity, and validation correctness.

中文简介正在准备中。当前显示原文说明。

s977043/river-review72026年10月24日 更新

Checks whether AI-assisted work defines review criteria, accessible context, explicit review loop, human judgment boundary, and feedback capture before delegating to an agent.

中文简介正在准备中。当前显示原文说明。

s977043/river-review72026年10月24日 更新

查看 s977043 的全部技能

报告此技能的问题