What problem does it solve?
AI coding agents generate Ruby and ERB code that violates Rails style conventions, disable lint cops instead of fixing issues, and miss XSS vulnerabilities in templates, leaving teams with inconsistent code quality and avoidable bugs. This Skill eliminates that friction by providing the exact setup and workflows the Rails core team uses for code quality.
Core Features & Use Cases
- Standardized RuboCop setup: Uses the rubocop-rails-omakase preset (Rails 8 default) with optional extensions for Rails-specific, performance, RSpec, and thread-safety cops, plus clear rules for when and how to disable cops without hiding real issues.
- CI and coverage gates: Wires RuboCop into CI with parallel runs and GitHub PR annotations, and sets up SimpleCov with branch coverage and 80% line / 70% branch thresholds to enforce meaningful test coverage.
- Template and static analysis: Includes erb_lint configuration to catch XSS risks in ERB templates, plus optional guidance for Reek/RubyCritic code smell checks and RBS type checking for stable domain code.
- Use Case: A Rails team that wants to stop arguing about code style, catch XSS bugs before they reach production, and ensure their AI coding agents write code that passes all quality checks out of the box.
Quick Start
Use the rubocop-and-code-quality skill to configure RuboCop with the Rails 8 omakase preset, SimpleCov coverage thresholds, and erb_lint for your Rails application.