dry-monads-patterns

Official

Standardize kw-app service objects with drymonads

Authorrockcodelabs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill standardizes the creation of service objects in kw-app by guiding the use of the dry-monads library to enforce explicit Success/Failure handling and do-notation, eliminating ad-hoc Result classes.

Core Features & Use Cases

  • Provides a consistent pattern for building service objects with Dry::Monads[:result, :do], enabling clean, predictable control flow.
  • Replaces deprecated custom Result, Success, and Failure classes with a unified approach.
  • Covers common workflows: single-step operations, multi-step pipelines, and multiple failure types within controllers.

Quick Start

Create a new operation under a module using Dry::Monads[:result, :do], implement a small multi-step workflow, and hook it into a controller action to handle Success and Failure in a user-friendly way.

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: dry-monads-patterns
Download link: https://github.com/rockcodelabs/kw-app/archive/main.zip#dry-monads-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 223,000+ vetted skills library on demand.