# moai-lang-ruby > Ruby 3.4+ best practices with RSpec 4, RuboCop 2, Bundler, and Rails - Author: Claude - Repository: jg-chalk-io/Nora-LiveKit - Version: 20251124122753 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-08 - Source: https://github.com/jg-chalk-io/Nora-LiveKit - Web: https://mule.run/skillshub/@@jg-chalk-io/Nora-LiveKit~moai-lang-ruby:20251124122753 --- --- name: moai-lang-ruby version: 4.0.0 updated: '2025-11-19' status: stable stability: stable description: Ruby 3.4+ best practices with RSpec 4, RuboCop 2, Bundler, and Rails allowed-tools: - Read - Bash - WebSearch - WebFetch --- # Lang Ruby Skill ## Skill Metadata | Field | Value | | ----- | ----- | | **Skill Name** | moai-lang-ruby | | **Version** | 2.0.0 (2025-10-22) | | **Allowed tools** | Read (read_file), Bash (terminal) | | **Auto-load** | On demand when keywords detected | | **Tier** | Language | --- ## What It Does Ruby 3.4+ best practices with RSpec 4, RuboCop 2, Bundler, and Rails 8 patterns. **Key capabilities**: - ✅ Best practices enforcement for language domain - ✅ TRUST 5 principles integration - ✅ Latest tool versions (2025-10-22) - ✅ TDD workflow support --- ## When to Use **Automatic triggers**: - Related code discussions and file patterns - SPEC implementation (`/alfred:2-run`) - Code review requests **Manual invocation**: - Review code for TRUST 5 compliance - Design new features - Troubleshoot issues --- ## Tool Version Matrix (2025-10-22) | Tool | Version | Purpose | Status | |------|---------|---------|--------| | **Ruby** | 3.4.0 | Primary | ✅ Current | | **RSpec** | 4.0.0 | Primary | ✅ Current | | **RuboCop** | 2.0.0 | Primary | ✅ Current | | **Rails** | 8.0.0 | Primary | ✅ Current | --- ## Inputs - Language-specific source directories - Configuration files - Test suites and sample data ## Outputs - Test/lint execution plan - TRUST 5 review checkpoints - Migration guidance ## Failure Modes - When required tools are not installed - When dependencies are missing - When test coverage falls below 85% ## Dependencies - Access to project files via Read/Bash tools - Integration with `moai-foundation-langs` for language detection - Integration with `moai-foundation-trust` for quality gates --- ## References (Latest Documentation) _Documentation links updated 2025-10-22_ --- ## Changelog - **v2.0.0** (2025-10-22): Major update with latest tool versions, comprehensive best practices, TRUST 5 integration - **v1.0.0** (2025-03-29): Initial Skill release --- ## Works Well With - `moai-foundation-trust` (quality gates) - `moai-core-code-reviewer` (code review) - `moai-essentials-debug` (debugging support) --- ## Best Practices ✅ **DO**: - Follow language best practices - Use latest stable tool versions - Maintain test coverage ≥85% - Document all public APIs ❌ **DON'T**: - Skip quality gates - Use deprecated tools - Ignore security warnings - Mix testing frameworks