moai-lang-ruby

Provides a blueprint for building Ruby 3.3+ apps with Rails 7.2.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/yarang/fastapi-error-code --skill moai-lang-ruby-yarang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-ruby
Source: https://github.com/yarang/fastapi-error-code/tree/main/.claude/skills/moai-lang-ruby
Command: npx skills add https://github.com/yarang/fastapi-error-code --skill moai-lang-ruby-yarang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a practical blueprint for building Ruby 3.3+ applications with Rails 7.2, including patterns for models, controllers, services, and tests.

Core Features & Use Cases

  • Rails 7.2 patterns: Models, controllers, services, and concerns aligned with Rails conventions.
  • Ruby 3.3+ patterns: Modern language features like pattern matching, data classes, endless methods, and YJIT readiness.
  • Testing & UI patterns: RSpec, Capybara, Turbo Streams, and Stimulus integration with real-world examples.

Quick Start

Scaffold a Rails 7.2 API application with Ruby 3.3 features, including a User model, Post resource, a UserRegistrationService, and RSpec tests with Turbo Streams.

Frequently Asked Questions about moai-lang-ruby

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

FAQPage Schema
How do I structure models, controllers, and services in a Rails 7.2 application?

Rails 7.2 application structure uses convention-aligned patterns for models, controllers, and services. This skill provides blueprints organizing these components, using service objects to separate business logic from controllers and ActiveRecord models.

What are the best ways to use Ruby 3.3 features like pattern matching in Rails?

Ruby 3.3 features like pattern matching, data classes, and endless methods integrate into Rails using modern language patterns. This skill demonstrates applying these features for real-world tasks while maintaining YJIT readiness.

Can I use Hotwire and Turbo Streams with RSpec and Capybara testing?

Hotwire and Turbo Streams integrate with RSpec and Capybara testing. This skill provides testing and UI patterns combining Turbo Streams and Stimulus integration with real-world RSpec examples for Rails applications.

How do I scaffold a Rails 7.2 API with modern Ruby patterns?

Scaffolding a Rails 7.2 API with modern Ruby patterns involves setting up resources like a User model and Post resource. This skill outlines creating a UserRegistrationService and configuring RSpec tests with Turbo Streams.

Does this Rails blueprint support standard tooling like ActiveRecord and Stimulus?

This Rails blueprint supports standard Ruby tooling including ActiveRecord and Stimulus. It provides guidance across ActiveRecord patterns and Stimulus integration for developers building Ruby APIs and web apps.