Layered Rails is a specialized Claude Code skill designed to help developers architect, review, and refactor Ruby on Rails applications using the principles of layered design. Based on the 'Layered Design for Ruby on Rails Applications' methodology, it enforces unidirectional data flow across Presentation, Application, Domain, and Infrastructure layers. Whether you are analyzing a legacy codebase for 'fat models,' planning new feature implementations, or extracting complex logic into Service Objects and Form Objects, this skill provides the architectural guardrails needed to maintain a clean, maintainable, and scalable Rails codebase.
주요 기능
01Automated architectural analysis to identify layer violations and 'God' objects.
02Pattern selection guidance for extracting Service Objects, Form Objects, and Query Objects.
03Pull request reviews focused on identifying model callback anti-patterns and logic leaks.
04Support for advanced Rails patterns including ViewComponents, AI agents, and multi-channel notifications.
05198 GitHub stars
06Specification testing to ensure objects adhere to their specific layer responsibilities.
사용 사례
01Refactoring 'Fat Models' or 'God Objects' into discrete, manageable architectural layers.
02Automating architectural code reviews to ensure new features follow unidirectional data flow.
03Planning and executing the gradual adoption of layered design in existing monolithic Rails apps.