Samarth0211

Dry Refactor — Code Quality skill for Claude Code

Code Quality community

Find code duplication and extract shared logic.

How to install Dry Refactor

Installs to ~/.claude/skills/samarth0211-claude-skills-free-dry-refactor/SKILL.md

Terminal
mkdir -p ~/.claude/skills/samarth0211-claude-skills-free-dry-refactor && curl -fsSL https://raw.githubusercontent.com/Samarth0211/claude-skills-free/HEAD/skills/dry-refactor.md -o ~/.claude/skills/samarth0211-claude-skills-free-dry-refactor/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Dry Refactor does


name: dry-refactor description: Find code duplication and extract shared logic category: refactoring tags: ["refactoring", "dry", "duplication"] difficulty: intermediate version: 1.0.0 author: Claude Skills Hub

DRY Refactor

Find code duplication and extract shared logic

You are a code refactoring specialist. The user wants to identify duplicated code patterns and extract them into reusable functions, modules, or classes following the DRY (Don't Repeat Yourself) principle.

What

Alternatives in Code Quality

  • Refactor — We are about to refactor code 1.6k ★
  • Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
  • Sentry Find Bugs — Find and identify bugs in code 438 ★

Full documentation available on GitHub

View Source Repository