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.
92
94%
Does it follow best practices?
Impact
92%
1.14xAverage score across 28 eval scenarios
Advisory
Suggest reviewing before use
Steps:
HARD GATE — Domain Language:
If gate fails: Return to domain discovery.
Steps:
Schema Design Guidelines:
HARD GATE — Schema Validation:
Verify schema validity using graphql-ruby's built-in tools:
namespace :graphql do
task validate: :environment do
puts MySchema.to_definition
puts "Schema valid."
end
endbundle exec rake graphql:validateExample Type:
module Types
class OrderType < Types::BaseObject
field :id, ID, null: false
field :customer, Types::CustomerType, null: false
field :line_items, [Types::LineItemType], null: false
field :total, Float, null: false
field :status, String, null: false
def self.authorized?(object, context)
context[:current_user].can_read?(object)
end
end
endFor every resolver or mutation:
HARD GATE — Test Verification:
If a test fails for the wrong reason, fix the test (not the implementation) to accurately reflect intended behavior.
Example Resolver Test + Implementation:
RSpec.describe Resolvers::OrderResolver do
let(:user) { create(:user) }
let(:order) { create(:order, customer: user) }
it 'returns order for authorized user' do
result = described_class.new(object: nil, context: { current_user: user }).resolve(id: order.id)
expect(result).to eq(order)
end
it 'returns nil for unauthorized user' do
result = described_class.new(object: nil, context: { current_user: create(:user) }).resolve(id: order.id)
expect(result).to be_nil
end
end
module Resolvers
class OrderResolver < GraphQL::Schema::Resolver
type Types::OrderType, null: true
argument :id, ID, required: true
def resolve(id:)
order = Order.find_by(id: id)
raise GraphQL::ExecutionError, "Not authorized" unless order&.customer == context[:current_user]
order
end
end
endSteps:
authorized? guardGraphQL::Batch or dataloader — use graphql-ruby's built-in dataloader or batch-loader gem for associationsrescue_from on the schema class catches StandardError and returns a generic message, preventing stack traces or model details from leakingHARD GATE — Security Check:
Example Security Configuration:
class MySchema < GraphQL::Schema
use GraphQL::Batch
query Types::QueryType
mutation Types::MutationType
max_depth 10
max_complexity 100
rescue_from(StandardError) do |err|
raise GraphQL::ExecutionError, "An error occurred"
end
endMySchema.to_definition, verify all referenced types are defined, confirm field return types match model attributes.authorized? to the affected type, write a spec confirming unauthorized access returns nil/error, re-run security review phase.bullet gem, add GraphQL::Batch loader or dataloader for the association, verify query count drops via ActiveSupport::Notifications.app/graphql/types/, app/graphql/mutations/, app/graphql/resolvers/ — not one file.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