AGENT SKILL

jscpd

Run jscpd clone detection and produce actionable duplication findings before dry refactoring.

License 许可
MIT
最近更新
2026-07-20
Stars
★ 0
Forks
0

01 前言 Front Matter

name
jscpd
description
Run jscpd clone detection and produce actionable duplication findings before dry refactoring.

03 SKILL.md 正文

jscpd

Use this skill before dry-refactoring when you need to identify copy/paste duplication in the codebase.

Workflow

  1. Run jscpd on the requested path.
  2. Start with strict defaults to reduce noise.
  3. If output is too noisy, increase minimum token/line thresholds.
  4. Summarize findings as prioritized clone groups.
  5. Hand off highest-impact clone groups to dry-refactoring.

Recommended command patterns

npx jscpd@4.0.5 --reporters ai --min-lines 10 --min-tokens 80 <path>

For full-repo scan:

npx jscpd@4.0.5 -c jscpd.json .

04 同仓库更多 Skills