action-controller-best-practices
CommunitySlim down Rails controllers.
AuthorCodySwannGT
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the issue of large, complex Rails controller files that become difficult to maintain, refactor, and understand. It helps developers adhere to the principle of "thin controllers."
Core Features & Use Cases
- Refactoring Large Controllers: Breaks down lengthy controller actions and large controller files into more manageable and reusable components.
- Applying Design Patterns: Implements patterns like Service Objects, Query Objects, Form Objects, Controller Concerns, and Presenters/Decorators to improve code organization.
- Use Case: You have a
PlayersControllerwith anindexaction that has over 20 lines of complex filtering and sorting logic, and acreateaction that handles multiple business rules. This Skill will help you extract that logic into appropriate classes.
Quick Start
Use the action-controller-best-practices skill to refactor the PlayersController to extract business logic into service objects.
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: action-controller-best-practices Download link: https://github.com/CodySwannGT/lisa/archive/main.zip#action-controller-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.