Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
kucherenko avatar

Jscpd

  • 706 installs
  • 6k repo stars
  • Updated August 4, 2026
  • kucherenko/jscpd

Helps with ai & agent building tasks.

About

jscpd is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • jscpd
  • AI & Agent Building
  • AI-coding skill

Jscpd by the numbers

  • 706 all-time installs (skills.sh)
  • +123 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #1,412 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kucherenko/jscpd --skill jscpd

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs706
repo stars6k
Last updatedAugust 4, 2026
Repositorykucherenko/jscpd

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

jscpd

Copy-paste detector for programming source code, supports 150+ languages. Use this skill to run jscpd and understand its output.

Quick Start

# Run with ai reporter (compact output optimized for agents)
npx jscpd --reporters ai <path>

# With ignore patterns
npx jscpd --reporters ai --ignore "**/node_modules/**,**/dist/**" <path>

# Scope to specific formats
npx jscpd --reporters ai --format "javascript,typescript" <path>

AI Reporter Output Format

The ai reporter produces compact, token-efficient output designed for agent consumption:

Clones:
src/ foo.ts:10-25 ~ bar.ts:42-57
src/utils/helpers.ts:100-120 ~ src/utils/other.ts:5-25
---
3 clones · 4.2% duplication

Each line represents one clone pair:

  • Same file: path/file.ts 10-25 ~ 45-60 (shared path shown once)
  • Same directory: shared/prefix/ file-a.ts:10-25 ~ file-b.ts:42-57 (common prefix factored out)
  • Different paths: path/a.ts:10-25 ~ path/b.ts:42-57

Options

OptionDescription
--reporters aiUse the AI-optimized reporter (compact clone list for agents)
--reporters htmlGenerate HTML report
--reporters jsonOutput JSON report
--min-tokens NMinimum tokens to consider a duplication (default: 50)
--min-lines NMinimum lines to consider a duplication (default: 5)
--min-similarity NMinimum similarity percentage (default: 100, range: 1-100)
--threshold NExit with error if duplication % exceeds N
--ignore "glob"Ignore patterns (comma-separated)
--format "list"Limit to specific languages (e.g. typescript,javascript)
--pattern "glob"Glob pattern to select files
--gitignoreRespect .gitignore
--output "path"Directory to write reports to
--silentSuppress output (useful with --output only)
--list-outputPrint clone list to stdout (alternative to ai reporter)
--store-path "path"Directory for LevelDB cache
--no-tipsDisable tips in output (enabled by default in CI)
--config "path"Path to .jscpd.json config file

Configuration File

Create a .jscpd.json in your project root:

{
  "threshold": 0,
  "reporters": ["ai"],
  "ignore": ["**/node_modules/**", "**/dist/**", "**/*.min.*"],
  "format": ["typescript", "javascript"],
  "minLines": 5,
  "minTokens": 50,
  "output": "./reports/jscpd"
}

Refactoring Duplicated Code

Once you've detected clones, use the dry-refactoring skill for a guided workflow to eliminate them:

dry-refactoring — step-by-step refactoring strategies and workflow for removing duplication. Install with:

  npx skills add https://github.com/kucherenko/jscpd --skill dry-refactoring

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.