Skip to content
pproenca avatar

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
View on GitHub

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/when chains
  • 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 -y

Installs 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

PriorityCategoryImpactPrefix
1Structure & DecompositionCRITICALstruct-
2Conditional SimplificationCRITICALcond-
3Coupling & DependenciesHIGHcouple-
4Ruby IdiomsHIGHidiom-
5Data & Value ObjectsMEDIUM-HIGHdata-
6Design PatternsMEDIUMpattern-
7Modern Ruby 3.xMEDIUMmodern-
8Naming & ReadabilityLOW-MEDIUMname-

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

Similar to Ruby Refactor

More Code Review & Quality