Ruby Coder
Generates clean, idiomatic Ruby 3.x code adhering to Sandi Metz’s maintainability standards and modern syntax best practices.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Guidance on composition over inheritance and thread safety
- Strict adherence to Sandi Metz's 4 Rules for Developers
- Modern Ruby 3.x syntax and hash shorthand implementation
- Idiomatic use of Enumerable methods and semantic logic
- Application of guard clauses and early returns for clarity
Use cases
- Refactoring bloated classes and methods to improve maintainability
- Implementing the Facade pattern in Rails controllers to satisfy object limits
- Drafting new Ruby files with modern 3.x syntax
FAQ
How does this skill apply Sandi Metz's rules?
The skill strictly enforces Metz's four rules for developers: classes are limited to 100 lines, methods to 5 lines, and parameters to 4 per method. It also ensures controllers only instantiate one object, utilizing facades and composition to keep your codebase lean.
When should I activate the Ruby Coder skill?
Use this skill whenever you are initializing new Ruby projects, writing complex methods, or refactoring legacy code. It is especially useful when you want to ensure your team's code adheres to industry-standard best practices and modern Ruby 3.x conventions.
What does the Ruby Coder skill do?
The Ruby Coder skill is a specialized capability for Claude Code that ensures all generated Ruby code follows modern 3.x syntax and strict maintainability standards. It prioritizes clarity, simplicity, and the idiomatic patterns that make Ruby expressive and readable.
How does this skill improve my development workflow?
By automating the enforcement of clean code principles, the Ruby Coder skill reduces technical debt and speeds up code reviews. It helps you transition from 'clever' code to 'clear' code, making your applications easier to maintain and scale.
Does it support modern Ruby 3.x syntax features?
Yes. The skill is optimized for Ruby 3.x, specifically implementing modern features like hash shorthand syntax (e.g., `{ name:, age: }`), symbol-based keys, and advanced Enumerable methods to write more concise and efficient code.
Related skills
PDF Report Generator
Generates professional, distribution-ready PDF documents featuring advanced layouts, data visualizations, and custom branding.
Productivity Workflow29712 ptsSpreadsheet Generator
Generates professional Excel spreadsheets featuring structured data, complex formulas, dynamic charts, and professional formatting.
Productivity Workflow29712 ptsPrompt Optimizer
Transforms vague or incomplete requests into clear, actionable, and well-structured prompts using systematic analysis or guided interactive questionnaires.
Productivity Workflow11212 pts