rails-concern

Community

Generate reusable Rails concerns with tests-first.

AuthorThibautBaissac
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creates Rails concerns to share behavior across models or controllers, reducing duplication and making future changes safer through a test-driven approach.

Core Features & Use Cases

  • Test-driven scaffolding: generates ActiveSupport::Concern modules with accompanying specs.
  • Model and controller support: handles concerns for both models and controllers, plus common shared logic.
  • Refactoring aid: helps extract duplicated validations, callbacks, scopes, or helpers into reusable modules.

Quick Start

Write a failing spec for the desired shared behavior, then run the generator to scaffold the concern and its specs.

Dependency Matrix

Required Modules

None required

Components

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: rails-concern
Download link: https://github.com/ThibautBaissac/rails_ai_agents/archive/main.zip#rails-concern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.