本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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内で追加と削除が対になっている(リネーム)場合は指摘しない。

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

<What this skill does>

日本語の概要は準備中です。原文の説明を表示しています。

s977043/river-review42026年10月12日 更新

a11y Accessible Name Basics

無料日本語概要

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

s977043/river-review42026年10月12日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

s977043/river-review42026年10月12日 更新

adversarial-review

無料日本語概要

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

s977043/river-review42026年10月12日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

s977043/river-review42026年10月12日 更新

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-review42026年10月12日 更新

s977043 のスキルをすべて見る

このスキルの問題を報告する