字面の同一性ではなく意図(目的)の同一性に基づいてコードの共通化を判断するスキル。 DRY原則の誤適用(字面が同じだが意図が異なるコードの共通化)を検出し、正しい共通化判定を 支援する。コードレビュー、リファクタリング、新規実装時に重複コードの扱いを判断する場合に使用。 対象言語: 言語非依存(Rust, Java, TypeScript, Go, Python, Kotlin, Scala等すべて)。 トリガー:「重複コードを共通化したい」「DRYに従いたい」「似たコードがある」 「この2つの関数をまとめたい」「コードの重複を減らしたい」「共通化すべきか」 「リファクタリングで共通関数にしたい」といった重複コード・共通化関連リクエストで起動。
$npx -y skills add j5ik2o/takt-sdd --skill intent-based-dedupInstalls into the current project.
Run `npx skills use "https://github.com/j5ik2o/takt-sdd" --skill "j5ik2o/takt-sdd/intent-based-dedup"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/j5ik2o/takt-sdd" that are relevant to the current task. Run `npx skills add "https://github.com/j5ik2o/takt-sdd"` and select the relevant skills, then follow their instructions.