What problem does it solve?
Rails apps often duplicate shared validations, scopes, callbacks, and helper logic across multiple models or controllers; this Skill helps you extract that duplication into reusable Rails concerns while keeping quality high through test-first development.
Core Features & Use Cases
- TDD-first Rails concern creation: Start with a failing test, confirm RED, implement the concern, then confirm GREEN.
- Model and controller concern workflows: Produces ActiveSupport::Concern modules suitable for both app/models/concerns and app/controllers/concerns.
- Common concern patterns: Covers practical templates for UUID generation, soft deletion, search scopes, auditable tracking, and controller filters/helpers.
- When to use: Extract shared behavior like validations and scopes across multiple models, or authentication/authorization and pagination/filter helpers across controllers.
Quick Start
Tell the AI to create a Rails concern and its test for a shared behavior you want extracted, including the test name, the module name, and whether it targets a model or a controller.