This skill should be used when users request code review, refactoring, or code quality improvements for Ruby codebases. Apply Sandi Metz's four rules for writing maintainable object-oriented code - classes under 100 lines, methods under 5 lines, no more than 4 parameters, and controllers instantiate only one object.
SkillScore88Maintained
Automatic
◆Coding pack
Last verified 8/29/2026
What it changes
Passed 22 of 25 test cases with the skill, and 20 of 25 without it.
Without skill81%
With skill88%
Checks it passed that the model alone missed
Excludes block arguments from parameter counts.
Reports the parameter count for this method as 4.
Categorizes classes between 100 and 200 lines as medium priority.
and 2 more in the full report
3 fixed20 passed either way2 still failing1 broke
Pass-rate lift
+8 pp
Tokens
+72%
Agent turns
0%
Response time
-1%
Model gemini-3.6-flashMeasured 8/29/2026v123 of 26 cases passed with skill · 25 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 3
Prompt
An application service class `OrderFulfillmentService` has 145 lines of active code (excluding comments and whitespace). What priority level should this receive in a Sandi Metz code quality review?
What was checked, without and with the skill
Checked
Without skill
With skill
Categorizes classes between 100 and 200 lines as medium priority.
Missed
Passed
case-20 · gemini-3.6-flash · 8/29/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md213 lines2 files
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.