Curated library of 28 public AI agent skills for Ruby on Rails development. Organized by category: testing, code-quality, engines, infrastructure, api, and context. 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. Repository agents remain documented in GitHub but are intentionally excluded from the Tessl tile.
93
95%
Does it follow best practices?
Impact
93%
1.78xAverage score across 28 eval scenarios
Passed
No known issues
Orchestrates systematic GraphQL API development with Domain-Driven Design principles, ensuring proper domain boundaries, type-safe schemas, TDD implementation, and security best practices.
Steps:
HARD GATE — Domain Language:
If gate fails: Return to domain discovery. A schema without a clear domain model will be inconsistent.
Steps:
Schema Design Guidelines:
HARD GATE — Schema Validation:
Verify schema validity using graphql-ruby's built-in tools:
# lib/tasks/graphql.rake
namespace :graphql do
task validate: :environment do
puts MySchema.to_definition
puts "Schema valid."
end
endbundle exec rake graphql:validateIf gate fails: Fix schema validation errors before proceeding.
Example Type:
# app/graphql/types/order_type.rb
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 test fails for wrong reason: Fix the test (not the implementation) to accurately reflect intended behavior.
Example Resolver Test:
# spec/graphql/resolvers/order_resolver_spec.rb
RSpec.describe Resolvers::OrderResolver do
let(:current_user) { create(:user) }
let(:order) { create(:order, customer: current_user) }
it 'returns order for authorized user' do
result = described_class.new(object: nil, context: { current_user: }).resolve(id: order.id)
expect(result).to eq(order)
end
it 'returns nil for unauthorized user' do
unauthorized_user = create(:user)
result = described_class.new(object: nil, context: { current_user: unauthorized_user }).resolve(id: order.id)
expect(result).to be_nil
end
endExample Resolver Implementation:
# app/graphql/resolvers/order_resolver.rb
module Resolvers
class OrderResolver < GraphQL::Schema::Resolver
type Types::OrderType, null: true
argument :id, ID, required: true
def resolve(id:)
Order.find_by(id: id).tap do |order|
raise GraphQL::ExecutionError, "Not authorized" unless order&.customer == context[:current_user]
end
end
end
endSteps:
authorized? guardGraphQL::Batch or dataloaderHARD GATE — Security Check:
If gate fails: Address all security issues before deploying. Never ship a GraphQL API without passing this gate.
Example Security Configuration:
# app/graphql/schema.rb
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
endagents
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
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
testing
plan-tests
test-service
write-tests