controller-patterns
OfficialStandardize Rails controllers with best practices
AuthorRoleModel
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Rails applications often suffer from inconsistent controller patterns, weak authorization, and scattered error handling, making maintenance hard and security risky.
Core Features & Use Cases
- Authorization integration: ensures every action is checked against policies and scopes.
- RESTful action scaffolding: promotes standard index/show/new/create/edit/update/destroy patterns.
- Before actions and strong params: centralizes resource loading and parameter whitelisting for security.
- Consistent messaging and status codes: standardizes redirects, flash notices, and HTTP responses.
- Guided code generation: provides templates and examples to jumpstart new controllers with best practices.
Quick Start
To review a controller or generate a new one, ask the AI to apply Rails controller patterns to your ProductsController with strong params for name, description, and price.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: controller-patterns Download link: https://github.com/RoleModel/rolemodel-skills/archive/main.zip#controller-patterns 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 471,000+ vetted skills library on demand.