review-ruby
Installation
SKILL.md
Ruby Code Review & Refactoring Guide
Analyze Ruby code for unnecessary custom objects, class bloat, and insufficient usage of Ruby's generic data structures. Provide specific refactoring steps with before/after code examples for libraries, gems, CLI tools, and Ruby applications.
Scope Determination
Determine scope from the user's request:
- File paths (e.g.,
lib/parser.rb): analyze only those files - Directory paths (e.g.,
lib/services/): analyze all Ruby files in that directory - Branch name: compare current branch against it to review only changed files
- No scope specified: perform full codebase audit of
lib/directory - Focus area (e.g., "command objects", "data structures"): prioritize that aspect
Required Skill
MANDATORY: Load the simplifying-ruby-code skill and apply its principles throughout the analysis. Reference specific patterns explicitly (e.g., "Pattern 1: Command Objects -> Module Functions").