·finding-duplicate-functions
</>

finding-duplicate-functions

obra/superpowers-lab

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.

93Installs·1Trend·@obra

Installation

$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 |

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. Source: obra/superpowers-lab.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/obra/superpowers-lab --skill finding-duplicate-functions
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is 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. Source: obra/superpowers-lab.

How do I install finding-duplicate-functions?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/obra/superpowers-lab --skill finding-duplicate-functions Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

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

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-01