Loading...
Loading...
Ruby refactoring guidelines from community best practices. This skill should be used when refactoring, reviewing, or restructuring Ruby code to improve design, readability, and maintainability. Triggers on tasks involving code smells, method extraction, conditional simplification, coupling reduction, design patterns, or Ruby idiom adoption.
npx skill4agent add pproenca/dot-skills ruby-refactor| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Structure & Decomposition | CRITICAL | |
| 2 | Conditional Simplification | CRITICAL | |
| 3 | Coupling & Dependencies | HIGH | |
| 4 | Ruby Idioms | HIGH | |
| 5 | Data & Value Objects | MEDIUM-HIGH | |
| 6 | Design Patterns | MEDIUM | |
| 7 | Modern Ruby 3.x | MEDIUM | |
| 8 | Naming & Readability | LOW-MEDIUM | |
struct-extract-methodstruct-extract-classstruct-parameter-objectstruct-compose-methodstruct-replace-method-with-objectstruct-single-responsibilitystruct-flatten-deep-nestingcond-guard-clausescond-decompose-conditionalcond-replace-with-polymorphismcond-null-objectcond-pattern-matchingcond-consolidate-duplicatescouple-law-of-demetercouple-feature-envycouple-dependency-injectioncouple-composition-over-inheritancecouple-tell-dont-askcouple-avoid-class-methods-domainidiom-prefer-enumerableidiom-keyword-argumentsidiom-duck-typingidiom-predicate-methodsidiom-respond-to-missingidiom-block-yieldidiom-implicit-returndata-value-objectdata-define-immutabledata-encapsulate-collectiondata-replace-data-clumpdata-separate-query-commandpattern-strategypattern-factorypattern-template-methodpattern-decoratorpattern-null-object-protocolmodern-pattern-matchingmodern-deconstruct-keysmodern-endless-methodsmodern-hash-pattern-guardmodern-rightward-assignmentname-intention-revealingname-consistent-vocabularyname-avoid-abbreviationsname-rename-to-remove-comments| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |