detectcopy-pastedcodehotspotsbeforerefactorsauditsorreview

When an agent must scan a codebase for duplicated blocks and convert clone findings into targeted cleanup or review queues, uses jscpd, focusing on duplication detection and hotspot reporting rather than general code checks or automated refactoring.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "detectcopy-pastedcodehotspotsbeforerefactorsauditsorreview" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1c7e46b432e8e3c9bf3cf35ac9699ad8a581210648b5a5cfb1b43e8478fdde04. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/detect-copy-pasted-code-hotspots-before-refactors-audits-or-review before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

When an agent must scan a codebase for duplicated blocks and convert clone findings into targeted cleanup or review queues, uses jscpd, focusing on duplication detection and hotspot reporting rather than general code checks or automated refactoring.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "Detect copy-pasted code hotspots before refactors, audits, or review"
slug: "detect-copy-pasted-code-hotspots-before-refactors-audits-or-review"
version: "1.0.0"
displayName: "Detect copy-pasted code hotspots before refactors, audits, or review"
summary: "当代理需要扫描代码库中的重复代码块并将克隆发现结果转化为有针对性的清理或审查队列时,请使用 jscpd。该技能专注于重复检测和热点报告,而不是独立的一般性代码检查、测试或自动化重构。"
license: "MIT"
description: "当代理需要扫描代码库中的重复代码块并将克隆发现结果转化为有针对性的清理或审查队列时,请使用 jscpd。该技能专注于重复检测和热点报告,而不是独立的一般性代码检查、测试或自动化重构。"
verification: "listed"
source: "https://www.npmjs.com/package/jscpd"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  npm_package: "jscpd"
  npm_weekly_downloads: 703581

在重构、审计或审查之前检测复制粘贴的代码热点

当代理需要扫描代码库中的重复代码块并将克隆发现结果转化为有针对性的清理或审查队列时,请使用 jscpd。该技能专注于重复检测和热点报告,而不是独立的一般性代码检查、测试或自动化重构。

先决条件

Node.js 和 npm

安装

无法自动提取基于源码的安装或使用说明。在敏感工作流程中运行此技能之前,请先查看上游项目。

文档

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 精准定位代码重复检测这一明确且高频的开发痛点
  • 专注于热点报告而非泛化功能,边界清晰,实用性强
Trigger Precision92/100

Highlights

  • 触发描述完整覆盖多种变体,明确指定工具 jscpd 及其专用场景
  • 清晰界定与一般性代码检查、测试或重构的边界,避免误触
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档未明确说明何时使用此技能的具体场景或触发条件

    Recommendation: 建议添加 When to Use 章节,列举典型使用场景(如:准备重构前、代码审计时、PR 审查中等)

  • 缺少端到端使用示例 Reported severity: Minor

    未提供具体的 jscpd 命令示例、配置示例或输出结果示例

    Recommendation: 建议添加完整的使用示例,包括安装命令、扫描命令、输出解读等,帮助用户快速上手

Highlights

  • 文档结构清晰,包含先决条件、安装和文档链接
  • frontmatter 完整,单文件长度适中
Execution Reliability68/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未覆盖主要异常场景(如 Node.js/npm 未安装、网络问题、权限问题等)

    Recommendation: 建议添加常见异常的处理建议或排查步骤,提升用户执行成功率

Highlights

  • 工具来源明确,提供了 npm 包链接和周下载量数据,可信度高
Evidence Verifiability (mean of the first four)78/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • www.npmjs.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.