Finding Duplicate Functions
Hunts functions that solve the same problem twice under different names.
Install
Ships scriptsclaude-code plugin install https://github.com/obra/superpowers-lab
Used before a large refactor or on a codebase that grew fast, once syntactic copy-paste duplicates are already handled.
- Author
- Jesse Vincent (obra)
- License
- MIT
Copy-paste detectors match text, so they miss the kind of duplication that piles up in agent-written code: two functions with unrelated names and unrelated implementations that mean the same thing. The run starts with a script that extracts a catalogue of every function, sorts them into domains with a cheap model, then sends each domain to a stronger model that only has to compare a handful of candidates. The output is a report a human still has to sign off on before anything is consolidated.
Similar skills
Understand Anything
SkillBuilds a browsable graph of a codebase you did not write.
Humanizer
SkillRewrites machine-sounding prose without touching the facts.
Systematic Debugging
SkillForces reproduce-first debugging instead of speculative patching
Comments(0)
Sign in to comment