37signals-crud

Generate RESTful Rails controllers enforcing CRUD actions for Rails 8.2+ projects.

1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/joshyorko/agent-skills --skill 37signals-crud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 37signals-crud
Source: https://github.com/joshyorko/agent-skills/tree/main/plugins/rails-37signals-patterns/skills/37signals-crud
Command: npx skills add https://github.com/joshyorko/agent-skills --skill 37signals-crud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of RESTful Rails controllers by enforcing CRUD-based design, ensuring no custom actions are added and every behavior maps to CRUD.

Core Features & Use Cases

  • Enforces RESTful architecture by mapping all actions to standard CRUD routes and generating controllers accordingly.
  • Creates new resources and nested controllers instead of introducing custom member or collection routes.
  • Provides guidance for routing, tests, and strong parameters, aligning with Rails conventions.

Quick Start

Create RESTful controllers for a new resource following the CRUD conventions.

Frequently Asked Questions about 37signals-crud

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

FAQPage Schema
How do I generate RESTful Rails controllers that strictly follow CRUD conventions?

To generate RESTful Rails controllers following CRUD conventions, use a scaffolding approach that maps every action to standard CRUD routes. This enforces RESTful architecture by creating new resources and nested controllers instead of introducing custom member or collection routes.

What is the best way to avoid custom actions in Rails controllers?

The best way to avoid custom actions in Rails controllers is to enforce a pure CRUD design pattern. By mapping all state-changing behavior to standard RESTful routes and creating new resources instead of custom member or collection routes, you maintain strict RESTful architecture.

Can I use pure CRUD scaffolding for nested resources in Rails 8.2+?

Yes, you can use pure CRUD scaffolding for nested resources in Rails 8.2+. The scaffolding approach applies to feature development tasks involving controllers, routing, and state-changing behavior, including the generation of conventional routing tests and strong parameters for nested controllers.

How do I handle state-changing behavior in Rails without adding custom routes?

To handle state-changing behavior without adding custom routes, use singular resources mapped to standard CRUD operations. This approach enforces REST-only actions, ensuring all state modifications route through conventional RESTful architecture rather than custom member or collection routes.

Does Rails CRUD scaffolding include test generation for routes?

Yes, Rails CRUD scaffolding includes conventional testing patterns. It provides scaffolding for route tests alongside strong parameters, ensuring that generated RESTful controllers align with standard Rails conventions and are fully tested out of the box.

What are the limitations of enforcing pure CRUD in Rails controllers?

The limitation of enforcing pure CRUD in Rails controllers is that no custom actions can be added. Every behavior must map directly to standard CRUD routes, requiring developers to create new resources or nested controllers to represent state changes instead of using custom member or collection routes.