rails

Develop Rails 8+ services with Dry-validation contracts and background jobs.

16|2|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/maroffo/claude-forge --skill rails-maroffo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails
Source: https://github.com/maroffo/claude-forge/tree/main/skills/rails
Command: npx skills add https://github.com/maroffo/claude-forge --skill rails-maroffo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and best practices for developing modern Ruby on Rails applications, focusing on service-oriented architecture, robust validation, and efficient background job processing.

Core Features & Use Cases

  • Service-Oriented Architecture: Enforces separation of concerns with dedicated services, forms, and filters.
  • Validation Contracts: Utilizes Dry-validation for declarative and robust input validation.
  • Background Jobs: Integrates with Sidekiq and Solid Queue for asynchronous task processing.
  • Hotwire Integration: Supports modern, real-time web interactions with Turbo and Stimulus.
  • Use Case: Develop a new feature in a Rails application, ensuring all business logic is in services, user input is validated via contracts, and any long-running tasks are handled by background jobs.

Quick Start

Use the rails skill to generate a new Rails service object for handling user registration.

Frequently Asked Questions about rails

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Ruby on Rails application using service objects?

Structure a Ruby on Rails application using service objects by enforcing separation of concerns with dedicated services, forms, and filters. This service-oriented architecture isolates business logic from controllers and models for maintainable code.

What is the best way to validate user input in Rails with dry-validation?

Validate user input in Rails with dry-validation by defining declarative validation contracts. This approach provides robust type checking and schema validation outside of standard ActiveRecord models.

Does this Rails development approach support background jobs with Solid Queue?

This Rails development approach supports background jobs with Solid Queue and Sidekiq. It integrates asynchronous task processing to handle long-running operations efficiently within Rails 8+ environments.

How do I test Rails service objects and validation contracts using RSpec?

Test Rails service objects and validation contracts using RSpec by isolating business logic and dry-validation schemas. This ensures inputs are correctly validated and services execute expected operations without full controller overhead.

Can I build real-time web interfaces in Rails 8 using Hotwire and Turbo?

You can build real-time web interfaces in Rails 8 using Hotwire integration. This approach leverages Turbo and Stimulus to deliver modern, interactive page updates without writing heavy JavaScript.