sandi-metz-rules
CommunityAutomate Ruby code quality with Sandi Metz's rules.
Software Engineering#code quality#code review#refactoring#maintainability#ruby#object-oriented design#sandi metz
Authornateberkopec
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers ensure their Ruby code adheres to Sandi Metz's maintainability rules, preventing "code smells" and improving object-oriented design. It automates the process of identifying violations and suggesting refactorings, saving manual review time and reducing complexity.
Core Features & Use Cases
- Automated Code Review: Automatically identifies violations of Sandi Metz's four rules (class/method length, parameter count, controller object instantiation).
- Refactoring Guidance: Provides concrete, actionable refactoring strategies and code examples for each type of violation, making code easier to understand, test, and maintain.
- Use Case: A developer submits a Ruby codebase for review. This Skill analyzes the code, flags methods over 5 lines and classes over 100 lines, and suggests specific refactorings like "Extract sub-methods with descriptive names" or "Introduce Parameter Object."
Quick Start
Review the attached Ruby file 'my_service.rb' for Sandi Metz rule violations and suggest refactorings.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sandi-metz-rules Download link: https://github.com/nateberkopec/dotfiles/archive/main.zip#sandi-metz-rules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.