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. Use when users mention "Sandi Metz", "code quality", "refactoring", or when reviewing Ruby code for maintainability.
81
71%
Does it follow best practices?
Impact
100%
1.17xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./tests/ext_conformance/artifacts/agents-mikeastock/skills/sandi-metz-rules/SKILL.mdPrecise code measurement rules
Method line counting
100%
100%
Blank lines excluded from methods
100%
100%
Block param excluded
100%
100%
Keyword args counted as params
100%
100%
Default params counted
50%
100%
Class line counting
100%
100%
Violation prioritization
100%
100%
Routes DSL acceptable
100%
100%
Specific line numbers
100%
100%
Method extraction suggestion
100%
100%
Parameter object suggestion
0%
100%
Full codebase review with refactoring examples
File locations and line numbers
100%
100%
Largest violations identified first
100%
100%
Parameter violation flagged
100%
100%
Method length violation flagged
25%
100%
Prioritized severity list
100%
100%
Named pattern for long method
70%
100%
Named pattern for too many params
100%
100%
Before/after for parameter violation
100%
100%
Before/after for method length
80%
100%
Refactoring benefit explained
100%
100%
Summary statistics
100%
100%
Fat controller refactoring and automation
Single object instantiation
100%
100%
Finder calls not counted
0%
100%
Named extraction pattern
100%
100%
Before/after controller comparison
100%
100%
RuboCop ClassLength limit
100%
100%
RuboCop MethodLength limit
0%
100%
RuboCop ParameterLists limit
100%
100%
Additional tools mentioned
100%
100%
Violation counts identified
100%
100%
Service object handles full flow
100%
100%
47823e3
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.