askill
jscpd

jscpdSafety 95Repository

Finds duplicate code blocks and analyzes duplication metrics across files. Use when identifying copy-pasted code, measuring technical debt, or preparing for refactoring.

20 stars
1.2k downloads
Updated 3/28/2026

Package Files

Loading files...
SKILL.md

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

OptionDescription
--min-tokens NMinimum tokens for duplicate detection
--min-lines NMinimum lines for duplicate detection
--threshold NFail if duplication % exceeds threshold
--ignore "glob"Ignore patterns (comma-separated)
--reporters typeOutput format: console, json, html
--output pathOutput directory for reports
--silentSuppress console output

Workflow

  1. Run jscpd to find duplicates
  2. Review the reported duplicates
  3. Refactor to eliminate duplication
  4. Re-run to verify cleanup

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

60/100Analyzed 3/30/2026

Solid foundational skill for a well-known copy-paste detection tool. Provides essential commands, options table, and a 4-step workflow. Falls short of higher scores due to minimal depth—no output examples, no interpretation guidance, and limited practical context. Well-organized and safe to use, making it accessible for developers unfamiliar with jscpd.

95
75
70
45
55

Metadata

Licenseunknown
Version-
Updated3/28/2026
Publisherknoopx

Tags

github-actions