active-record-model-best-practices
CommunityRefactor Rails models for clarity.
AuthorCodySwannGT
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the common issue of large, complex Ruby on Rails models that become difficult to maintain by providing a structured approach to refactoring them into more organized, reusable components.
Core Features & Use Cases
- Code Organization: Breaks down monolithic models into concerns, service objects, query objects, form objects, and value objects.
- Maintainability: Improves code readability and reduces cognitive load for developers.
- Use Case: When a Rails model exceeds 100 lines and handles multiple responsibilities, use this skill to extract logic into appropriate design patterns, making the model easier to understand and modify.
Quick Start
Use the active-record-model-best-practices skill to refactor the User model by extracting its complex query logic into a query object.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: active-record-model-best-practices Download link: https://github.com/CodySwannGT/lisa/archive/main.zip#active-record-model-best-practices 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 223,000+ vetted skills library on demand.