rubocop-and-code-quality
CommunityProduction-grade Rails code quality and linting setup.
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rubocop-and-code-quality Download link: https://github.com/sandeepmvl/rails-skills/archive/main.zip#rubocop-and-code-quality Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.