jscpd

Copy-paste detector for JavaScript, TypeScript, and many other languages.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "jscpd" with this command: npx skills add knoopx/pi/knoopx-pi-jscpd

jscpd

Copy-paste detector for JavaScript, TypeScript, and many other languages.

Quick Start

With ignore patterns

bunx jscpd --ignore "/node_modules/,/dist/" <path>

Common Options

Option Description

--min-tokens N

Minimum tokens for duplicate detection

--min-lines N

Minimum lines for duplicate detection

--threshold N

Fail if duplication % exceeds threshold

--ignore "glob"

Ignore patterns (comma-separated)

--reporters type

Output format: console , json , html

--output path

Output directory for reports

--silent

Suppress console output

Workflow

  • Run jscpd to find duplicates

  • Review the reported duplicates

  • Refactor to eliminate duplication

  • Re-run to verify cleanup

Related Skills

  • maintenance: Refactoring and technical debt management

  • design: DRY principle violations

  • ast-grep: Structural refactoring of duplicated patterns

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

codemapper

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

typescript

No summary provided by upstream source.

Repository SourceNeeds Review
General

jujutsu

No summary provided by upstream source.

Repository SourceNeeds Review