CtrlK
BlogDocsLog inGet started
Tessl Logo

rails-model-generator

Creates Rails models using TDD approach - spec first, then migration, then model. Use when creating new models, adding model validations, defining associations, or setting up database tables.

Install with Tessl CLI

npx tessl i github:ThibautBaissac/rails_ai_agents --skill rails-model-generator
What are skills?

93

Does it follow best practices?

Agent success when using this skill

Validation for skill structure

SKILL.md
Review
Evals

Evaluation results

100%

43%

Add BlogPost Model to Rails Application

TDD workflow and file structure

Criteria
Without context
With context

Requirements first

100%

100%

Spec before model

0%

100%

Factory before migration

0%

100%

Spec location

100%

100%

Factory location

100%

100%

Model location

100%

100%

Frozen string literal - spec

0%

100%

Frozen string literal - factory

0%

100%

Frozen string literal - model

100%

100%

Build subject

100%

100%

Spec section headers

0%

100%

Factory sequences

100%

100%

Factory trait

100%

100%

Model section headers

0%

100%

Requirements template structure

100%

100%

Without context: $0.3602 · 1m 21s · 16 turns · 17 in / 5,071 out tokens

With context: $0.7939 · 2m 16s · 33 turns · 33 in / 8,349 out tokens

100%

7%

Add Product Inventory Model to Rails API

Migration constraints and version

Criteria
Without context
With context

Migration version 8.0

100%

100%

Null constraint on name

100%

100%

Null constraint on sku

100%

100%

Null constraint on numeric fields

100%

100%

Default value on status/enum

100%

100%

Unique index on sku

100%

100%

Additional index

100%

100%

Frozen string literal - migration

100%

100%

Frozen string literal - model

100%

100%

New enum syntax

100%

100%

Model section headers

0%

100%

DB constraint pairing documented

100%

100%

Supplier foreign key null

100%

100%

Without context: $0.1743 · 38s · 9 turns · 10 in / 2,081 out tokens

With context: $0.7009 · 1m 58s · 32 turns · 2,754 in / 7,002 out tokens

100%

14%

Implement Member Model for SaaS Platform

Email validation and enum patterns

Criteria
Without context
With context

Email format constant

100%

100%

Case-insensitive uniqueness

100%

100%

New enum syntax - role

100%

100%

New enum syntax - status

100%

100%

Frozen string literal - model

100%

100%

Frozen string literal - spec

100%

100%

Frozen string literal - factory

100%

100%

Model section headers

0%

100%

Spec section headers

0%

100%

Build subject in spec

100%

100%

Factory email sequence

100%

100%

Design notes - email validation

100%

100%

Without context: $0.3019 · 1m 7s · 15 turns · 15 in / 4,050 out tokens

With context: $0.5743 · 1m 31s · 25 turns · 25 in / 5,554 out tokens

Evaluated
Agent
Claude Code

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.