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
Steps:
Example Domain → Schema Mapping:
| Domain Concept | GraphQL Construct | Owning Context |
|---|---|---|
| Order (entity) | Types::OrderType | Orders |
| Customer (entity) | Types::CustomerType | Accounts |
| PlaceOrder (command) | Mutations::PlaceOrder | Orders |
| Order.lineItems | Types::LineItemType (connection) | Orders |
HARD GATE — Domain Language:
If gate fails: Return to domain discovery.
Steps:
authorized? on sensitive types and fields (see Phase 4 for the full security checklist)errors fieldHARD 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 :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:
Example Resolver Test:
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
endThis is the authoritative phase for all authorization and security requirements.
Steps:
authorized? guardGraphQL::Batch or dataloaderrescue_from on the schema class catches StandardError and returns a generic messageHARD 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
end| Problem | Remediation |
|---|---|
| Schema validation fails | Check circular references with MySchema.to_definition; verify all referenced types are defined |
| Authorization bypass detected | Add authorized? to the affected type, write a failing spec, re-run Phase 4 |
| N+1 queries | Identify with bullet gem; add GraphQL::Batch loader or dataloader for the association |
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