code-refactoring-dry

Installation
SKILL.md

Code Refactoring: Don't Repeat Yourself

Remove code duplication you just introduced by refactoring duplicated code to follow the DRY principle.

When to Use This Skill

Use this skill when:

  • You notice the same logic appearing in multiple places
  • Code has been copied and pasted with minor variations
  • A change needs to be made in multiple locations
  • Following the "NO DUPLICATED CODE!" rule from code review

Instructions

Step 1: Identify the Duplication

Review your recent changes (committed or uncommitted) to find:

  • Duplicated code patterns
  • Duplicated logic or structures
Related skills

More from majiayu000/claude-skill-registry

Installs
1
GitHub Stars
299
First Seen
Feb 5, 2026