Skip to main content
Run any Skill in Manus
with one click

check-duplication-cmd

Stars0
Forks0
UpdatedJuly 8, 2026 at 12:55

当用户提到'重复代码'、'重复检查'、'代码重复'、'check-duplication'、'重复检测'、'提取共享库'、'DRY检查'、'代码复用检查'、'脚本重复'时,必须使用此技能。提供跨文件重复代码自动检测能力:扫描.agents/scripts/目录下的Python脚本,使用N元语法指纹识别跨文件重复代码块(默认≥10行),输出重复位置、行数和建议提取到共享库的位置。新增.agents/scripts/脚本前必须运行此检查,禁止重复实现已有功能。不要手动凭肉眼找重复——本工具通过归一化代码指纹精确识别,连变量名不同但逻辑相同的'变形重复'也能检测到。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly