rails-state-machines

Community

Model complex state flows.

Authornekorush14
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill demonstrates implementing state machines (via AASM) to manage complex workflows and state transitions in Rails models.

Core Features & Use Cases

  • Explicit States & Transitions: Clearly defined states with guarded transitions.
  • Callbacks on State Changes: Hooks for side effects during state changes.
  • Single Source of Truth: State persisted in the database with consistent behavior.

Quick Start

Implement an Order model with states: pending -> confirmed -> shipped -> delivered and an optional cancel path.

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-state-machines
Download link: https://github.com/nekorush14/dotfiles/archive/main.zip#rails-state-machines

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.