action-controller-best-practices

Community

Slim 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 PlayersController with an index action that has over 20 lines of complex filtering and sorting logic, and a create action 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.