find-duplicates

Detect semantically equivalent code fragments across TypeScript and JavaScript repositories.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/amijadoamijado/sd003 --skill find-duplicates-amijadoamijado
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-duplicates
Source: https://github.com/amijadoamijado/sd003/tree/main/.claude/skills/find-duplicates
Command: npx skills add https://github.com/amijadoamijado/sd003 --skill find-duplicates-amijadoamijado

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Semantic duplicates detection uncovers same-intent implementations that differ in syntax but share behavior, enabling consolidation.

Core Features & Use Cases

  • Phase 1: Classical function extraction from a codebase to enumerate functions/methods, record signatures, line counts, and identify similar signatures.
  • Phase 2: LLM-driven intent clustering to group pairs by intent and recommend integrations.
  • Use Case: A large JS/TS project with many utilities where two functions implement the same behavior differently; surface candidates for consolidation and refactoring.

Quick Start

Run the skill over your repository to identify semantic duplicates and propose consolidation.

Frequently Asked Questions about find-duplicates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect semantic duplicates in a JavaScript codebase?

You detect semantic duplicates by extracting function signatures and applying LLM-driven intent clustering to group differently implemented code fragments sharing the same behavior for consolidation.

What is LLM-based intent clustering for code refactoring?

LLM-based intent clustering for code refactoring is the process of grouping semantically equivalent code fragments by their underlying behavior rather than syntax, enabling automated detection of duplication patterns and recommended consolidation paths.

Can I use this semantic duplication analysis on large TypeScript projects?

Yes, semantic duplication analysis is designed for large TypeScript and JavaScript projects with many utilities, enumerating functions and methods to surface candidates for refactoring and consolidation.

How do I identify duplicate utility functions with different implementations?

You identify duplicate utility functions through a two-phase workflow: classical function extraction records signatures and line counts, followed by LLM-based intent classification to cluster pairs by behavioral similarity.

What's the best way to find refactoring candidates for code consolidation?

The best way to find refactoring candidates for code consolidation is running an automated extraction and LLM clustering workflow that generates a report including signatures, similarity metrics, and recommended integration paths.