Dry Refactor — Code Quality skill for Claude Code
Find code duplication and extract shared logic.
How to install Dry Refactor
Installs to ~/.claude/skills/samarth0211-claude-skills-free-dry-refactor/SKILL.md
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 RepositoryRelated Skills
Refactor Safe
Refactor internals without changing public API. Fixes structural problems (long functions, duplication, poor n
Logic Diff
Check two code versions for semantic equivalence — use after a refactor or rewrite
Fec TDD
Use front-end TDD workflow to implement functions, fix bugs, or refactor logic: first write failing tests, the
Paperclip Refactor
Despacha um Refactor para os robôs do Paperclip (VPS). Classifica complexidade localmente, mostra a árvore em
V Artifact Formats
Artifact Format Contracts — Shared Reference
Video Ad Reverse Engineer
Deconstruct any video ad into a reusable creative template — extract the format, structure, hooks, and strateg
Related Agents
Wasp Refactor Executor
Execute mechanical refactorings (DRY, extract function, rename) while maintaining test green status. Optimized
Code Deduplicator
Remove code duplication by extracting shared logic into reusable components
Design Component Generator
Generates UI components via AI-native design tools (21st.dev Magic MCP or Magic Patterns). Proposal→confirm, d