Curated library of 28 atomic skills and 9 personas for Ruby on Rails development. Organized by category: testing, code-quality, engines, infrastructure, api, context, and personas. Covers code review, architecture, security, testing (RSpec), engines, Hotwire, and TDD automation. Shared Ruby skills (YARD docs, DDD, service objects) have moved to ruby-core-skills.
93
95%
Does it follow best practices?
Impact
93%
1.16xAverage score across 28 eval scenarios
Advisory
Suggest reviewing before use
Use this complete, production-ready example to format your output when asked to perform a safe refactoring of Rails code.
/orders with parameter structure: { order: { product_id: Integer, quantity: Integer } }.# spec/requests/orders_spec.rb
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe "Orders creation current behavior", type: :request do
describe "POST /orders" do
let(:valid_params) { { order: { product_id: 1, quantity: 2 } } }
it "creates order and enqueues warehouse notification" do
expect { post orders_path, params: valid_params }
.to change(Order, :count).by(1)
expect(NotifyWarehouseJob).to have_been_enqueued
end
end
endVerification Run Command:
bundle exec rspec spec/requests/orders_spec.rbObserved output
.
Finished in 0.01524 seconds (files took 1.12 seconds to load)
1 example, 0 failures# app/services/orders/create_order.rb
# frozen_string_literal: true
module Orders
class CreateOrder
def self.call(params:)
order = Order.new(params)
if order.save
NotifyWarehouseJob.perform_later(order.id)
{ success: true, order: order }
else
{ success: false, order: order }
end
end
end
end# spec/services/orders/create_order_spec.rb
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Orders::CreateOrder do
describe '.call' do
let(:params) { { product_id: 1, quantity: 2 } }
subject(:result) { described_class.call(params: params) }
it "creates the order record" do
expect { result }.to change(Order, :count).by(1)
end
end
endVerification Run Command:
bundle exec rspec spec/services/orders/create_order_spec.rbObserved output
.
Finished in 0.01021 seconds (files took 1.10 seconds to load)
1 example, 0 failures# app/controllers/orders_controller.rb
# frozen_string_literal: true
class OrdersController < ApplicationController
def create
result = Orders::CreateOrder.call(params: order_params)
if result[:success]
redirect_to order_path(result[:order]), notice: 'Order created.'
else
@order = result[:order]
render :new, status: :unprocessable_entity
end
end
private
def order_params
params.require(:order).permit(:product_id, :quantity)
end
endVerification Run Command:
bundle exec rspec spec/requests/orders_spec.rbObserved output
.
Finished in 0.01633 seconds (files took 1.14 seconds to load)
1 example, 0 failuresVerification Run Command:
bundle exec rspecObserved output
....................................
Finished in 0.45120 seconds (files took 1.50 seconds to load)
36 examples, 0 failures| Check Level | Command | Status |
|---|---|---|
| Characterization Spec | bundle exec rspec spec/requests/orders_spec.rb | 1 example, 0 failures |
| Extracted Service Spec | bundle exec rspec spec/services/orders/create_order_spec.rb | 1 example, 0 failures |
| Broader Suite | bundle exec rspec | 36 examples, 0 failures |
| Code Linter | bundle exec rubocop app/controllers/orders_controller.rb app/services/orders/create_order.rb | no offenses detected |
.tessl-plugin
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
skills
api
generate-api-collection
implement-graphql
code-quality
apply-code-conventions
apply-stack-conventions
assets
snippets
code-review
refactor-code
review-architecture
security-check
context
load-context
setup-environment
engines
create-engine
create-engine-installer
document-engine
extract-engine
release-engine
review-engine
test-engine
upgrade-engine
infrastructure
implement-background-job
implement-hotwire
optimize-performance
review-migration
seed-database
version-api
personas
testing
plan-tests
test-service