dry-rb-patterns

Community

Leverage dry-rb gems for robust Rails patterns.

Authorslbug
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ruby on Rails teams often struggle with maintaining clean validation, strong typing, and predictable domain logic across services. This Skill shows how to apply the dry-rb ecosystem (dry-validation, dry-types, dry-structs, dry-monads, dry-transaction, dry-system) to build resilient Rails code.

Core Features & Use Cases

  • Structured contracts for params and forms via dry-validation.
  • Strongly typed data with dry-types and immutable value objects via dry-struct.
  • Composable service objects and transactions using dry-monads and dry-transaction.
  • Dependency wiring and modular design with dry-system for scalable Rails apps.
  • Use Case: validate input in controllers, compose operations in services, and propagate errors cleanly.

Quick Start

Create a sample Dry::Validation contract and demonstrate applying it in a Rails controller to validate params.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dry-rb-patterns
Download link: https://github.com/slbug/claude-ruby-grape-rails/archive/main.zip#dry-rb-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.