rails-concern

Create Rails concerns with a Test-Driven Development workflow.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/mlbright/notes --skill rails-concern-mlbright
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-concern
Source: https://github.com/mlbright/notes/tree/main/.github/skills/rails-concern
Command: npx skills add https://github.com/mlbright/notes --skill rails-concern-mlbright

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of reusable code modules (concerns) in Rails applications by enforcing a Test-Driven Development (TDD) workflow, ensuring code quality and maintainability.

Core Features & Use Cases

  • TDD Workflow: Guides users through writing failing specs before implementing the concern.
  • Model & Controller Concerns: Provides examples and structure for both types of Rails concerns.
  • Common Patterns: Includes pre-built examples for UUID generation, soft deletion, searchability, auditing, and controller filtering.
  • Use Case: When you find yourself repeating the same validation logic across multiple models, use this Skill to generate a Validatable concern, write its tests first, and then include it in your models.

Quick Start

Use the rails-concern skill to generate a new concern named 'Auditable' for your Rails application.