rails-controller
CommunityTDD-first Rails controller generator.
AuthorThibautBaissac
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Rails controllers are often created without consistent tests and project conventions. This skill guides a TDD-first workflow to scaffold RESTful controllers that align with policies (Pundit), pagination (Pagy), presentational layers, multi-tenancy, and Turbo Stream updates.
Core Features & Use Cases
- TDD-first controller generation: write failing request specs before implementing actions.
- Conforms to project conventions (Pundit authorization, Pagy pagination, Presenters, multi-tenancy via current_account, Turbo Streams).
- Supports standard CRUD actions and nested/namespace controllers.
- Use Case: when adding new resources or API endpoints, ensure tests guide implementation.
Quick Start
Write a failing request spec for the new controller under spec/requests, then implement the corresponding action to make the spec pass, and re-run the test suite until it passes.
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: rails-controller Download link: https://github.com/ThibautBaissac/rails_ai_agents/archive/main.zip#rails-controller 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.