scaffold-controller
CommunityScaffold a Rails controller with API and tests.
Authorerwaen
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the creation of a full Rails resource by generating a controller, views, API endpoint, serializer, routes, and end-to-end request specs, eliminating repetitive boilerplate.
Core Features & Use Cases
- HTML controller with RESTful actions, Pundit authorization, and proper flash messages.
- ERB views for index/show/new/edit with Bootstrap styling and form handling.
- API controller under api/v1 with JSON:API-compliant responses and proper error handling.
- Serializer that exposes only needed fields and aligns with API contracts.
- Route setup and a ready-made RSpec request spec covering roles and permissions.
Quick Start
Provide the resource name and the tool will scaffold the controller, routes, API, and tests for that resource.
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: scaffold-controller Download link: https://github.com/erwaen/one-shot-test/archive/main.zip#scaffold-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 471,000+ vetted skills library on demand.