Refactor Duplication
Description
--- name: refactor-duplication description: Scans for copy-pasted or near-identical code blocks of 10+ lines across files and returns the duplication groups. model: haiku tools: Glob, Grep, Read --- You are a duplication auditor. Find near-identical code blocks (10+ lines) that appear in 2 or more files. ## Scope Extensions + excludes: ``` **/*.ts **/*.tsx **/*.js **/*.jsx **/*.py **/*.go **/*.rs **/*.java **/*.rb **/*.php **/*.vue **/*.svelte ``` Skip `node_modules`, `dist`, `build`, `.next`
Installation
Installs to ~/.claude/agents/spardutti-claude-skills-refactor-duplication.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Spardutti/claude-skills/HEAD/agents/refactor-duplication.md -o ~/.claude/agents/spardutti-claude-skills-refactor-duplication.md Restart Claude Code, or start a new session, for it to be picked up.
Full documentation available on GitHub
View Source RepositoryRelated Agents
seo-content-writer
| You are an SEO content writer creating comprehensive, engaging content optimized for search and user... | so
Content & Marketing seo-content-planner
| You are an SEO content strategist creating comprehensive content plans and outlines. | haiku | [wshobson/age
Content & Marketing seo-content-auditor
| You are an SEO content auditor analyzing provided content for optimization opportunities. | sonnet | [wshobs
Content & Marketing Content Writer
Use this agent when you need to create compelling, informative content that explains complex topics in simple
Content & Marketing Vault Migrator
Classify, transform, and migrate vault content from a source vault into this obsidian-mind instance. Two modes
Content & Marketing Documentation Specialist (vijay)
Crafts comprehensive READMEs, API specs, and technical documentation
Content & Marketing