Ruby Rails

Use when the user asks about Ruby on Rails, ActiveRecord callbacks getting out of hand, service objects, Rails API mode, Active Job / Solid Queue, N+1 with includes or RSpec. Produces Rails 8 code with thin models and controllers. Not for Ruby outside Rails or Phoenix (use backend-elixir).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill ruby-rails
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/ruby/rails ~/.claude/skills/ruby-rails

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Ruby on Rails

## Purpose
Build Rails applications with clean MVC separation, service objects, ActiveRecord optimization, API mode conventions, Sidekiq background jobs, and RSpec testing patterns.

## Agent Protocol

### Trigger
User request includes: `Rails`, `Ruby on Rails`, `Rails API`, `ActiveRecord`, `Rails controller`, `Rails model`, `Rails service`, `Rails job`, `Rails spec`, `Rails migration`.

### Input Context
- Rails version (7.0+, 7.1+)
- Ruby version (3.1+, 3.2+, 3.3+)
- Database (PostgreSQL, MySQL, SQLite)
- Mode (API-only, full MVC)
- Auth (Devise, JWT, OAuth)
- Background jobs (Sidekiq, GoodJob, Solid Queue)

### Output Artifact
Controller, model, service object, job class, migration, RSpec test.

### Response Format
Produce artifact directly. No preamble, no postamble, no explanations.

### Completion Criteria
- Controller delegates to service objects
- ActiveRecord model with scopes, validations, associations
- Service object encapsulates business logic
- Background job with retry configuration
- Request spec covers CRUD with JSON
- Migration with proper indexes

### Max Response Length
4096 tokens

## Architecture Decision Trees

### Service Objects vs PORO Models vs Concerns

| Criterion | Service Object | Fat Model | Concern |
|-----------|---------------|-----------|---------|
| Business logic location | `app/services/` | `app/models/` | `app/concerns/` |
| Testability | Easy (isolated) | Moderate (needs DB) | Moderate |
Read the full skill on GitHub

Details

Skill name
ruby-rails
Path
skills/backend/ruby/rails/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Ruby Rails skill do?

Use when the user asks about Ruby on Rails, ActiveRecord callbacks getting out of hand, service objects, Rails API mode, Active Job / Solid Queue, N+1 with includes or RSpec. Produces Rails 8 code with thin models and controllers. Not for Ruby outside Rails or Phoenix (use backend-elixir).

How do I install the Ruby Rails skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill ruby-rails. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Ruby Rails popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Rust Architecture

45

j4flmao/agent-skills

Use when the user asks about Rust backend structure, Cargo workspace layout, crate boundaries, hexagonal Rust, trait-based DI or choosing axum vs actix-web. Produces a Rust service layout with error architecture. Not for tokio, serde or ownership recipes (use rust-patterns) or language basics (use lang-rust).

Software Development

Render Graph

45

j4flmao/agent-skills

Use when the user asks about a render graph, frame graph, transient resource aliasing, automatic barriers, async compute, GPU-driven rendering or command list recording. Produces render graph design with pass and resource lifetimes. Not for raw Vulkan API usage (use vulkan).

Software Development

Rust Patterns

45

j4flmao/agent-skills

Use when the user asks about tokio patterns, axum extractors, thiserror vs anyhow, serde, Arc<Mutex> vs RwLock, tower-http middleware or sqlx queries. Produces idiomatic async Rust backend code. Not for workspace layout (use rust-architecture).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.