Curated library of 39 AI agent skills for Ruby on Rails development. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, orchestration, and workflows. Includes 5 callable workflow skills (rails-tdd-loop, rails-review-flow, rails-setup-flow, rails-quality-flow, rails-engines-flow) for complete development cycles. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation.
95
98%
Does it follow best practices?
Impact
95%
1.20xAverage score across 35 eval scenarios
Passed
No known issues
The operations team has flagged that the /dashboard endpoint on an internal Rails application takes several seconds to load for accounts with large datasets. The engineering manager wants the team to investigate, fix the problem, and make sure it cannot silently regress in the future.
The application is a standard Rails 7 app backed by PostgreSQL. The DashboardController#index action loads a list of projects, and for each project the view accesses the associated owner (a User) and the count of associated Task records. The relevant models and a simplified controller are provided below.
Produce a thorough write-up of your findings and the work done so a future developer can understand what the problem was and how it was addressed. Do not leave any large generated files on disk.
Produce the following files:
performance_analysis.md — your written analysis: what you observed about the slow query behaviour, what change you made and why, and evidence from the PostgreSQL query planner confirming the improvementapp/controllers/dashboard_controller.rb with the fix appliedspec/performance/dashboard_spec.rb — a spec that will catch the problem if it ever comes backdb/migrate/<timestamp>_add_index_for_dashboard.rb — a migration adding any index that supports the fix (if no index is needed, omit this file and note why in performance_analysis.md)The following files represent the current state of the application. Extract them before beginning.
=============== FILE: app/models/project.rb =============== class Project < ApplicationRecord belongs_to :owner, class_name: 'User' has_many :tasks end =============== END FILE ===============
=============== FILE: app/models/user.rb =============== class User < ApplicationRecord has_many :owned_projects, class_name: 'Project', foreign_key: :owner_id end =============== END FILE ===============
=============== FILE: app/models/task.rb =============== class Task < ApplicationRecord belongs_to :project end =============== END FILE ===============
=============== FILE: app/controllers/dashboard_controller.rb =============== class DashboardController < ApplicationController def index @projects = Project.all end end =============== END FILE ===============
=============== FILE: app/views/dashboard/index.html.erb =============== <% @projects.each do |project| %>
<div> <h2><%= project.name %></h2> <p>Owner: <%= project.owner.name %></p> <p>Tasks: <%= project.tasks.count %></p> </div> <% end %> =============== END FILE ===============docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20
scenario-21
scenario-22
scenario-23
scenario-24
scenario-25
scenario-26
scenario-27
scenario-28
scenario-29
scenario-30
scenario-31
scenario-32
scenario-33
scenario-34
scenario-35
mcp_server
skills
api
api-rest-collection
rails-graphql-best-practices
code-quality
rails-architecture-review
rails-code-conventions
rails-code-review
rails-review-response
rails-security-review
rails-stack-conventions
assets
snippets
refactor-safely
context
rails-context-engineering
rails-project-onboarding
ddd
ddd-boundaries-review
ddd-rails-modeling
ddd-ubiquitous-language
engines
rails-engine-compatibility
rails-engine-docs
rails-engine-extraction
rails-engine-installers
rails-engine-release
rails-engine-reviewer
rails-engine-testing
infrastructure
rails-api-versioning
rails-background-jobs
rails-database-seeding
rails-frontend-hotwire
rails-migration-safety
rails-performance-optimization
orchestration
rails-skills-orchestrator
patterns
ruby-service-objects
strategy-factory-null-calculator
yard-documentation
planning
create-prd
generate-tasks
ticket-planning
testing
rails-bug-triage
rails-tdd-slices
rspec-best-practices
rspec-service-testing