sandi-metz-rules
Installation
SKILL.md
Sandi Metz Rules
Overview
This skill helps apply Sandi Metz's four rules for writing maintainable object-oriented code to Ruby codebases. These rules are heuristics that encourage good design practices, making code easier to understand, test, and maintain.
The Four Rules
- Classes can be no longer than 100 lines of code
- Methods can be no longer than 5 lines of code
- Pass no more than 4 parameters into a method
- Controllers can instantiate only one object