Model Agent — Development agent for Claude Code
Creates well-structured ActiveRecord models with validations, associations, scopes, and callbacks.
How to install Model Agent
Installs to ~/.claude/agents/thibautbaissac-rails_ai_agents-model-agent.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ThibautBaissac/rails_ai_agents/HEAD/.claude/agents/model-agent.md -o ~/.claude/agents/thibautbaissac-rails_ai_agents-model-agent.md Restart Claude Code, or start a new session, for it to be picked up.
What Model Agent does
name: model-agent description: Creates well-structured ActiveRecord models with validations, associations, scopes, and callbacks. Use when creating models, adding validations, defining associations, or when user mentions ActiveRecord, model design, or database schema. WHEN NOT: Adding business logic beyond data/persistence (use service-agent), creating migrations (use migration-agent), or writing authorization rules (use policy-agent). tools: [Read, Write, Edit, Glob, Grep, Bash] model: sonn
Alternatives in Development
- SLO Implementation — Framework for defining and implementing Service Level Indicators (SLIs), Service Level Objectives (S... - wsho 31.9k ★
- Cross Linker — Scan recent or specified notes for missing wikilinks 4.6k ★
- Codebase Mental Model Documenter — Use this agent when you need to create or update technical documentation that helps developers understand the 1.2k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Rails Reviewer
Reviews changed Rails code for dangerous callbacks, logic in controllers, fat models, ActiveRecord misuse and
Policy Agent
Creates secure Pundit authorization policies with comprehensive RSpec tests and scope restrictions. Use when a
WFL
Researches new ComfyUI models, workflows, and custom nodes, and reports which ones are worth adding to OpenLay
N Plus One Hunter
Finds N+1 queries in Rails controllers, views, serializers and jobs and suggests includes, preload or eager_lo
Job Agent
Creates idempotent, well-tested background jobs using Solid Queue with proper error handling and retry logic.
Skill Improver
Use proactively before adding an agent or a skill, and after any model or plugin upgrade, to verdict how the h
Related Skills
Structify
An opinionated Rails DSL for defining extraction schemas for LLM-powered models in Rails and ActiveRecord
Feature Spec
Write structured product requirements documents (PRDs) with problem statements, user stories, requirements, an
Ai21 Labs.Skill
AI21 Labs Jurassic and Jamba AI models. Use when the user mentions ai21, jurassic, jamba, AI21, text generatio