The Rails Anti-Patterns skill is a specialized diagnostic and refactoring tool designed to keep Ruby on Rails applications maintainable, performant, and clean. It provides deep analysis across the entire Rails stack—including controllers, models, ActiveRecord queries, views, background jobs, and migrations—to spot problematic patterns like 'Fat Controllers,' 'God Models,' and N+1 queries. By offering side-by-side comparisons of problematic code versus industry-standard solutions, this skill helps developers implement best practices such as Service Objects, idempotent background jobs, and proper Hotwire integration, making it an essential companion for code reviews and legacy system modernization.
주요 기능
01Detects and refactors 'Fat Controllers' and 'God Models' into modular components.
02Audits background jobs for idempotency and transaction-safe enqueueing.
03Provides guidance on separating schema and data migrations for safer deployments.
04Identifies N+1 query patterns and suggests optimal eager loading strategies.
050 GitHub stars
06Optimizes Hotwire implementations by favoring Turbo Frames and Stimulus best practices.