Curated library of 16 public Ruby AI agent skills: 10 atomic skills (YARD docs, service objects, calculator pattern, API clients, DDD, bug triage, code review, skill routing), 5 process-discipline skills (TDD, refactoring, review, security, test planning), and 1 planning skill (TDD task generation). Zero agents — this is a foundational library consumed by framework-specific tiles like rails-agent-skills and hanakai-yaku.
95
96%
Does it follow best practices?
Impact
95%
1.05xAverage score across 16 eval scenarios
Passed
No known issues
# frozen_string_literal: true
module PricingCalculator
class BaseService
def initialize(order)
@order = order
end
def calculate
return nil unless should_calculate?
compute_result(@order.base_price)
end
private
def should_calculate? = @order.present? && @order.plan&.active?
def compute_result(_price)
raise NotImplementedError, "#{self.class}#compute_result must be implemented"
end
end
end# frozen_string_literal: true
module PricingCalculator
class NullService < BaseService
private
def should_calculate? = false
def compute_result(_price) = nil
end
end# frozen_string_literal: true
module PricingCalculator
class StandardPricingService < BaseService
DISCOUNT = 0.10
private
def should_calculate?
super && @order.plan.name == 'standard'
end
def compute_result(base_price)
base_price * (1 - DISCOUNT)
end
end
enddocs
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
skills
code-quality
respond-to-review
ddd
define-domain-language
model-domain
review-domain-boundaries
docs
write-yard-docs
orchestration
skill-router
patterns
create-service-object
implement-calculator-pattern
planning
generate-tdd-tasks
process
testing
triage-bug