controller-agent

Generate RESTful Rails controllers with strong parameters and request specs.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/mlbright/notes --skill controller-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: controller-agent
Source: https://github.com/mlbright/notes/tree/main/.github/skills/controller-agent
Command: npx skills add https://github.com/mlbright/notes --skill controller-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of robust, well-tested Rails controllers, ensuring adherence to best practices and reducing boilerplate code.

Core Features & Use Cases

  • Controller Generation: Creates thin, RESTful controllers with strong parameters and error handling.
  • Request Spec Creation: Automatically generates corresponding RSpec request specs for thorough testing.
  • Use Case: When building a new feature that requires managing a Product resource, use this Skill to generate the ProductsController and its associated request specs, ensuring all CRUD operations are covered and authorized.

Quick Start

Use the controller-agent skill to create a new controller for the 'User' resource with standard RESTful actions.

Frequently Asked Questions about controller-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Rails controllers with strong parameters and RSpec request specs?

You can generate Rails controllers with strong parameters and RSpec request specs by using a controller generator that builds thin, RESTful controllers with proper error handling and automatically creates the corresponding request specs for thorough testing.

What is the best way to add RESTful CRUD actions to a Rails controller?

The best way to add RESTful CRUD actions to a Rails controller is to use a generation tool that adheres to Rails conventions and REST principles, creating thin controllers with strong parameters and integrating Pundit for authorization.

Does this Rails controller generator integrate with Pundit for authorization?

Yes, this Rails controller generator integrates with Pundit for authorization, ensuring that your generated CRUD operations and user-defined routes are properly secured according to standard authorization practices.

Can I automatically create RSpec request specs when building new Rails controllers?

Yes, you can automatically create RSpec request specs when building new Rails controllers, ensuring all generated CRUD operations are covered by tests that verify proper error handling and RESTful behavior.

How do I handle user-defined routes and endpoints in Rails controller generation?

You can handle user-defined routes and endpoints in Rails controller generation by specifying your resource requirements, which generates thin controllers with proper error handling and strong parameters for those custom endpoints.

Why should I use a generator for thin Rails controllers instead of scaffolding manually?

You should use a generator for thin Rails controllers to reduce boilerplate code and ensure adherence to best practices, automatically producing RESTful controllers with strong parameters, error handling, and comprehensive RSpec request specs.