controller-agent

Generate thin RESTful Rails controllers with strong parameters and Pundit authorization.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/reckerswartz/resume_builder --skill controller-agent-reckerswartz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: controller-agent
Source: https://github.com/reckerswartz/resume_builder/tree/main/.windsurf/skills/controller-agent
Command: npx skills add https://github.com/reckerswartz/resume_builder --skill controller-agent-reckerswartz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates thin, maintainable Rails controllers that delegate business logic to services, enforce strong parameters, and ensure consistent error handling and testing.

Core Features & Use Cases

  • Thin controllers that orchestrate requests and delegate to services.
  • Standard RESTful actions with proper authorization and error handling.
  • Request specs and policies integrated to enforce security and correctness.

Quick Start

Create a new RESTful controller and wire it to a service object to handle business logic.

Frequently Asked Questions about controller-agent

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

FAQPage Schema
How do I generate thin Rails controllers that delegate to service objects?

To generate thin Rails controllers that delegate to service objects, use this Skill to automate creating RESTful controllers. It wires controllers to services, enforces strong parameters, and ensures business logic stays outside the controller layer.

How do I add Pundit authorization and RSpec request specs to a new Rails controller?

Adding Pundit authorization and RSpec request specs to a new Rails controller is automated by this tool. It generates standard CRUD actions with integrated Pundit policy checks and loads comprehensive request specs to enforce security and correctness.

What is the best way to structure RESTful controllers in a Ruby on Rails application?

The best way to structure RESTful controllers in Ruby on Rails is keeping them thin by delegating business logic to services. This approach enforces REST conventions, standardizes error handling, and maintains strong parameter security.

Does this Rails controller generator work with Ruby 3.3 and Rails 8.1?

Yes, this Rails controller generator works specifically with Ruby 3.3 and Rails 8.1 or later applications. It targets modern Rails environments to automate generating thin controllers with Pundit authorization and RSpec request specs.

Can I use this to create CRUD actions with built-in strong parameters and error handling?

Yes, you can use this to create CRUD actions with built-in strong parameters and error handling. It automates generating standard RESTful actions that orchestrate requests, delegate to services, and manage errors consistently across new controllers.

Why should I move business logic out of my Rails controllers into service objects?

You should move business logic out of Rails controllers into service objects to keep controllers thin and maintainable. Delegating to services ensures controllers only orchestrate requests, improving code clarity, security, and testability.