AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Jscpd

skill-vahidkaargar-it-department-skills-jscpd · by vahidkaargar

Copy-paste detector for 220+ languages. Detect duplicated code and measure duplication percentages.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-vahidkaargar-it-department-skills-jscpd

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-vahidkaargar-it-department-skills-jscpd)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Jscpd? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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 

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

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

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

| Option | Description | |--------|-------------| | --reporters ai | Use the AI-optimized reporter (compact clone list for agents) | | --reporters html | Generate HTML report | | --reporters json | Output JSON report | | --min-tokens N | Minimum tokens to consider a duplication (default: 50) | | --min-lines N | Minimum lines to consider a duplication (default: 5) | | --min-similarity N | Minimum similarity percentage (default: 100, range: 1-100) | | --threshold N | Exit 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 | | --gitignore | Respect .gitignore | | --output "path" | Directory to write reports to | | --silent | Suppress output (useful with --output only) | | --list-output | Print clone list to stdout (alternative to ai reporter) | | --store-path "path" | Directory for LevelDB cache | | --no-tips | Disable 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: ``bash npx skills add https://github.com/kucherenko/jscpd --skill dry-refactoring ``

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.