Skill Detail

Detect copy-pasted code hotspots before refactors, audits, or review

Use jscpd when an agent needs to scan a codebase for duplicated blocks and turn clone findings into a focused cleanup or review queue. The skill is about duplication detection and hotspot reporting, not general linting, testing, or automated refactoring by itself.

Code Quality & ReviewMulti-Framework
Code Quality & Review Multi-Framework Published
Tool match: jscpd โฌ‡ 703.6k/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill detect-copy-pasted-code-hotspots-before-refactors-audits-or-review Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Node.js and npm
Install & setup
npm install -g jscpd
Author
Andrey Kucherenko
Publisher
Individual Maintainer
Last updated
Apr 13, 2026
Quick brief

Tool: jscpd. This skill is for agents that need to inspect a repository and find duplicated code blocks before humans waste time reviewing the same logic in three places or refactoring the wrong area first. jscpd tokenizes source files, compares them across many languages and formats, and returns concrete clone reports that an agent can rank, summarize, or route into a cleanup plan.

How it works

What this skill actually does

When to use it: invoke this skill before a large refactor, during a technical-debt audit, ahead of a code review, or when an agent is trying to explain why a codebase feels harder to change than it should. Without the skill, a user would have to eyeball similar files, depend on vague intuition, or run a generic quality suite that does not isolate duplication as its own maintenance risk. With jscpd, the agent can hand back exact files, repeated fragments, and a prioritized list of hotspots worth deduplicating first.

Scope boundary: this is not a full static-analysis platform, secure-code scanner, or automatic refactoring engine. It does not prove correctness, find vulnerabilities, or rewrite the code for you. Its boundary is tighter and more useful: detect copy-paste duplication and make that duplication visible early enough for a human or downstream tool to act on it.

Integration points: local repository scans, CI checks, pull-request review workflows, architecture audits, and AI-assisted refactor loops. Upstream evidence includes the official jscpd repository, the published npm package, active maintenance, and current package adoption.