·finding-duplicate-functions
</>

finding-duplicate-functions

obra/superpowers-lab

コードベースのセマンティック重複、つまり同じことを行うが名前や実装が異なる関数を監査するときに使用します。既存の関数を再利用するのではなく、新しい関数が作成されることが多い LLM で生成されたコードベースに特に役立ちます。

93インストール·0トレンド·@obra

インストール

$npx skills add https://github.com/obra/superpowers-lab --skill finding-duplicate-functions

SKILL.md

LLM-generated codebases accumulate semantic duplicates: functions that serve the same purpose but were implemented independently. Classical copy-paste detectors (jscpd) find syntactic duplicates but miss "same intent, different implementation."

This skill uses a two-phase approach: classical extraction followed by LLM-powered intent clustering.

| 1. Extract | scripts/extract-functions.sh | - | catalog.json | | 2. Categorize | scripts/categorize-prompt.md | haiku | categorized.json | | 3. Split | scripts/prepare-category-analysis.sh | - | categories/.json | | 4. Detect | scripts/find-duplicates-prompt.md | opus | duplicates/.json | | 5. Report | scripts/generate-report.sh | - | report.md |

コードベースのセマンティック重複、つまり同じことを行うが名前や実装が異なる関数を監査するときに使用します。既存の関数を再利用するのではなく、新しい関数が作成されることが多い LLM で生成されたコードベースに特に役立ちます。 ソース: obra/superpowers-lab。

原文を見る

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/obra/superpowers-lab --skill finding-duplicate-functions
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-01
更新日
2026-02-18

クイックアンサー

finding-duplicate-functions とは?

コードベースのセマンティック重複、つまり同じことを行うが名前や実装が異なる関数を監査するときに使用します。既存の関数を再利用するのではなく、新しい関数が作成されることが多い LLM で生成されたコードベースに特に役立ちます。 ソース: obra/superpowers-lab。

finding-duplicate-functions のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/obra/superpowers-lab --skill finding-duplicate-functions インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/obra/superpowers-lab

詳細

カテゴリ
</>開発ツール
ソース
skills.sh
初回登録
2026-02-01