Ruby Refactor
Ruby refactoring guide covering 45 community rules across design, conditionals, coupling, idioms, and Ruby 3.x features.
- CCM score
- 46 of 100
- skills.sh installs
- 313
- GitHub stars
- 228
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers 8 categories ordered by impact: structure, conditionals, coupling, idioms, data objects, design patterns, modern Ruby 3.x, and naming
- Includes a quick-reference index with one rule per entry, each linked to its own
references/file with examples - Targets code smells such as long methods, deep nesting, feature envy, primitive obsession, and
case/whenchains - Designed for developers and automated tools that refactor or review Ruby code for maintainability
Install
$ npx -y skills add pproenca/dot-skills --skill ruby-refactor -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Community Ruby Refactoring Best Practices
Comprehensive refactoring guide for Ruby applications, maintained by the community. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Refactoring Ruby code to reduce complexity and improve design
- Extracting methods, classes, or value objects from large units
- Simplifying complex conditionals and deep nesting
- Reducing coupling between classes and modules
- Adopting idiomatic Ruby patterns and modern Ruby 3.x features
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Structure & Decomposition | CRITICAL | struct- |
| 2 | Conditional Simplification | CRITICAL | cond- |
| 3 | Coupling & Dependencies | HIGH | couple- |
| 4 | Ruby Idioms | HIGH | idiom- |
| 5 | Data & Value Objects | MEDIUM-HIGH | data- |
| 6 | Design Patterns | MEDIUM | pattern- |
| 7 | Modern Ruby 3.x | MEDIUM | modern- |
| 8 | Naming & Readability | LOW-MEDIUM | name- |
Quick Reference
1. Structure & Decomposition (CRITICAL)
Details
- Repository
- github.com/pproenca/dot-skills
- Category
- Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What does the ruby-refactor skill do?
ruby-refactor gives an agent community Ruby refactoring guidelines covering 45 rules across 8 categories, from method extraction and conditional simplification to coupling reduction and Ruby 3.x idioms. It is meant for refactoring, reviewing, or restructuring Ruby code to improve design, readability, and maintainability.
How do I install the ruby-refactor skill?
Run npx -y skills add pproenca/dot-skills --skill ruby-refactor -y in your project to install ruby-refactor. Once installed, the agent can apply its refactoring rules whenever you work on code smells, method extraction, or design patterns in Ruby.
Where does ruby-refactor rank in the Code Review & Quality category?
ruby-refactor is listed in the Code Review & Quality category next to improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its focus is Ruby-specific, with rules ordered by impact from structure and conditionals down to naming.
More from pproenca/dot-skills
All 100- Think313
- Ios Xcode311
- Restful Hateoas308
- Ios Ui Refactor307
- Rails Dev303
- Swift Optimise297
- Ruby Optimise296
- Ios Testing293
- Swift Refactor293
- Dev Rfc290
- Ios Taste288
- Swift Ui Architect287
- Ios Storyboard281
- Rails Design System280
- Ios Navigation279
- Swift Data279
- Ios Chaos Monkey278
- Nginx C Module Perf271
- Bug Review269
- React Native Elements269
- Effect Ts267
- Nginx C Module Debug264
- Rust Write Tests262
- Rails Application Ui Blocks261
Similar to Ruby Refactor
More Code Review & Qualityrefactorpproenca/dot-skills668 installsStructured refactoring guide of 43 rules across eight prioritized categories, drawn from Fowler's catalog and Clean Code.
code-simplifierpproenca/dot-skills1.7K installsConcise guide that simplifies recently modified code while preserving exact behavior across 47 rules.
refactoring-surgeoncuriositech/some_claude_skills264 installsBehavior-preserving refactoring guide that enforces tests first and catalogs code smells with fixes.
refactor-advisorlaolaoshiren/claude-code-skills-zh117 installsSystematic code refactoring advisor that scans for smells, ranks issues by severity, and outlines fixes.
clean-coderatacat/claude-skills361 installsCoding guide that applies Robert C. Martin's Clean Code rules to naming, functions, classes, errors, and tests.