askill
ruby-refactor

ruby-refactorSafety 95Repository

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.

43 stars
1.2k downloads
Updated 2/19/2026

Package Files

Loading files...
SKILL.md

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)

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)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

76/100Analyzed 2/24/2026

Comprehensive Ruby refactoring reference skill with 45 rules across 8 well-organized categories. Clear structure with priority table, quick reference, and "When to Apply" section. The skill is highly reusable as a technical reference but lacks step-by-step actionable instructions - it's designed as a lookup guide rather than a procedural skill. Tag mismatch (ci-cd for Ruby refactoring) slightly hurts discoverability.

95
90
90
85
50

Metadata

Licenseunknown
Version-
Updated2/19/2026
Publisherpproenca

Tags

ci-cd