finding-duplicate-functions
✓在审核代码库是否存在语义重复时使用 - 执行相同操作但具有不同名称或实现的函数。对于 LLM 生成的代码库特别有用,其中经常创建新函数而不是重用现有函数。
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 中使用
这个 Skill 的源码在哪?
https://github.com/obra/superpowers-lab
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01