rails-model-design

Community

Design clean ActiveRecord models.

Authornekorush14
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides guidelines for designing robust ActiveRecord models with validations, associations, scopes, and domain methods to keep business logic in the model layer.

Core Features & Use Cases

  • Associations & Validations: Clear patterns for belongs_to, has_many, and custom validators.
  • Scopes & Class Methods: Encapsulated queries for common filters.
  • Domain Methods: Rich model APIs for business logic.

Quick Start

Create an Order model with associations to User and OrderItems, add validations, scopes, and a sample domain method like confirm!.

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-model-design
Download link: https://github.com/nekorush14/dotfiles/archive/main.zip#rails-model-design

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.