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
- Run jscpd on the requested path.
- Start with strict defaults to reduce noise.
- If output is too noisy, increase minimum token/line thresholds.
- Summarize findings as prioritized clone groups.
- 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 (can be slower):
npx jscpd@4.0.5 -c jscpd.json .
Configuration
Uses jscpd.json at repo root. Key settings:
NOTE: This repository config relies on
jscpdv4-compatible fields (for exampleskipBlocks), so always pin CLI invocations to4.0.5unless the config is migrated.
threshold: Minimum clone percentage to report (default: 3)skipBlocks: Skip docstrings and comment blocksignore: Paths to exclude from scanning
04 同仓库更多 Skills
ui-ux-frontend
Frontend UX, accessibility, responsive layout, and Storybook interaction quality standards.
★ 0
testing-conventions
暂无简介
★ 0
tdd
暂无简介
★ 0
shadcn-ui
shadcn/ui component conventions and composition patterns
★ 0
sdd
暂无简介
★ 0
quality-gate
暂无简介
★ 0