rails-service-object

Official

Streamline Rails logic with dry-monads services.

Authorrockcodelabs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill codifies the service object pattern in Rails apps using dry-monads to manage multi-step business logic, improving maintainability, testability, and separation of concerns.

Core Features & Use Cases

  • Guides when to use service objects: when business logic touches multiple models, involves external calls, or requires transactional boundaries.
  • Structure & Patterns: demonstrates the Namespace::Operation::Action convention and how to compose steps with do-notation.
  • Testing & Integration: provides testing approaches and controller integration patterns to ensure safe, observable changes.

Quick Start

Instantiate and run a service object via its operation class, then handle Success or Failure results in the controller or workflow.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: rails-service-object
Download link: https://github.com/rockcodelabs/kw-app/archive/main.zip#rails-service-object

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.