# Ruby

> This skill should be used when conducting spec interviews or implementing specs for Ruby projects, or when the spec mentions "Ruby", "RSpec", "service objects", "Struct", or Ruby class/module patterns. Provides Ruby-specific interview and implementation checklist items. Use when this capability is needed.

- Skill: `tomevault-io/ruby` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/ruby`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/ruby/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/ruby

---


# Ruby Spec Interview Guide

Ruby-specific checklist for spec interviews and implementation. For underlying Ruby conventions, consult the `sorah-guides:ruby` skill. Project-specific conventions always take priority.

## Interview Checklist

When interviewing a spec for a Ruby project, verify these areas are fully specified:

### Architecture & Design
- Service object class names, method signatures, and return types
- Module/namespace hierarchy and file layout
- Which value objects use Struct/Data vs plain classes
- `include` vs `extend` decisions for shared behavior

### Behavior & Logic
- Method signatures: keyword arguments, required vs optional parameters
- Error handling: which specific exceptions are rescued and why
- Nil handling strategy for each interface boundary

### Testing
- RSpec structure: which spec types cover each component (unit, integration)
- Factory definitions needed for test data
- Error path and edge case coverage expectations

### Security
- Password/credential hashing algorithm and cost factor
- Token storage format (hashed, never plaintext)
- Secret comparison approach (constant-time)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/sorah) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

