Rails Model TDD Generator

•
384
•

Automates Ruby on Rails model creation following a strict Test-Driven Development (TDD) workflow for Rails 8.1 applications.

The Rails Model TDD Generator is a specialized skill designed to enforce high-quality engineering standards during Rails 8.1 development. It guides Claude through a structured Red-Green-Refactor lifecycle, starting with requirement definitions and failing RSpec tests before moving to migration generation and model implementation. By automating the creation of factories, associations, and validations, it ensures that every database entity is fully tested, properly indexed, and follows modern Rails best practices.

주요 기능

01Enforces a 10-step TDD workflow from requirements to green specs
02Generates standardized RSpec model tests and FactoryBot templates
03Integrated checklist for tracking model creation progress
04Automates Rails 8.1 migrations with proper null constraints and indexes
05384 GitHub stars
06Supports complex model patterns including enums, scopes, and polymorphic associations

사용 사례

01Implementing complex database schemas with nested associations and unique constraints
02Building robust data models for new Rails 8.1 applications
03Refactoring existing models to improve test coverage and validation logic