finding-duplicate-functions
Use when auditing a codebase for semantic duplication - functions that do the same thing but have different names or implementations. Especially useful for LLM-generated codebases where new functions are often created rather than reusing existing ones.
Install
With your agent
Install OMGSkills skill "obra/superpowers-lab:finding-duplicate-functions" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/obra/superpowers-lab /tmp/superpowers-lab && ln -s /tmp/superpowers-lab/skills/finding-duplicate-functions ~/.claude/skills/finding-duplicate-functions
From README
Finding Duplicate-Intent Functions Overview 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. When to Use Codebase has grown organically with multiple contributors (human or LLM) You suspect utility functions have been reimplemented multiple times Before major refactoring to identify consolidation opportunities After jscpd has been run and syntactic duplicates are already handled Quick Reference | Phase | Tool | Model | Output | |-------|------|-------|--------| | 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.
