scan

Detect and rank code duplication using jscpd across project scopes.

7|3|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/nikhaldi/drywall --skill scan-nikhaldi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scan
Source: https://github.com/nikhaldi/drywall/tree/main/skills/scan
Command: npx skills add https://github.com/nikhaldi/drywall --skill scan-nikhaldi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scan for duplicated code across a codebase to reduce maintenance costs and improve reusability.

Core Features & Use Cases

  • Detects and ranks duplicated code using jscpd
  • Presents actionable refactoring suggestions and summaries
  • Supports scanning entire projects or targeted paths for focused analyses

Quick Start

Ask Claude Code to run the scan on your repository to obtain a ranked report of duplicated code with suggested refactors.

Frequently Asked Questions about scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect and rank code duplication across a codebase?

To detect and rank code duplication, run an automated scan using jscpd on your repository. This identifies and quantifies duplicated code, producing a structured list of duplicates ranked by severity.

What is the best way to find duplicated code for refactoring?

Finding duplicated code for refactoring is best handled by static analysis tools like jscpd. They scan your project paths to locate matching code blocks and provide actionable remediation guidance.

Can I scan a specific directory path instead of an entire project for code duplication?

Yes, you can scan specific directory paths instead of an entire project. The scan supports targeted analyses, allowing you to focus the static analysis on particular areas of your codebase.

How do I integrate code duplication reports into code quality workflows?

You can integrate code duplication reports into code quality workflows by using the concise, structured output generated from the scan. This report includes summaries and detailed duplicates suitable for automated processing.

Do I need jscpd installed to identify duplicated code?

Yes, the skill uses jscpd as its automated scanning tool to identify and quantify code duplication. It relies on jscpd to produce the ranked list of duplicates and remediation suggestions.