Curated library of AI agent skills for Ruby on Rails development. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and workflow automation.
98
99%
Does it follow best practices?
Impact
98%
1.38xAverage score across 26 eval scenarios
Passed
No known issues
The billing team at FinTrack, a SaaS accounting platform, needs automated payment reminders sent to customers with overdue invoices. Currently, a manual process runs each morning to email customers, but it's error-prone and has caused double-charges in the past when retries fired unexpectedly. The engineering team has decided to move this to a background job system.
The application is a Rails 8 app already configured with a working mailer (InvoiceMailer) and an Invoice model with the following relevant attributes: id, customer_id, reminder_sent_at (timestamp, nil until reminder is sent), status (string, values: "pending", "paid", "overdue"). The platform also needs a nightly sweep that finds overdue invoices and enqueues reminders for each one.
Your task is to implement two Active Job classes:
SendInvoiceReminderJob — sends the reminder email for a single invoice and marks it as remindedNightlyOverdueInvoiceSweepJob — scans for overdue invoices and enqueues a reminder job for eachThe sweep job must run nightly at 08:00 UTC. The team has had painful incidents with jobs running multiple times due to queue failures, so reliability is a top priority.
Produce the following files:
app/jobs/send_invoice_reminder_job.rb — the reminder job implementationapp/jobs/nightly_overdue_invoice_sweep_job.rb — the sweep job implementationconfig/recurring.yml — schedule configuration for the nightly sweepspec/jobs/send_invoice_reminder_job_spec.rb — RSpec spec for the reminder jobspec/jobs/nightly_overdue_invoice_sweep_job_spec.rb — RSpec spec for the sweep jobprocess_log.md — a brief log of implementation decisions made (e.g. idempotency approach, error handling choices, backend choice)api-rest-collection
create-prd
ddd-boundaries-review
ddd-rails-modeling
ddd-ubiquitous-language
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
generate-tasks
mcp_server
rails-architecture-review
rails-background-jobs
rails-bug-triage
rails-code-conventions
rails-code-review
rails-engine-compatibility
rails-engine-docs
rails-engine-extraction
rails-engine-installers
rails-engine-release
rails-engine-reviewer
rails-engine-testing
rails-graphql-best-practices
rails-migration-safety
rails-review-response
rails-security-review
rails-skills-orchestrator
rails-stack-conventions
rails-tdd-slices
refactor-safely
rspec-best-practices
rspec-service-testing
ruby-service-objects
strategy-factory-null-calculator
ticket-planning
yard-documentation