Ruby 3.2+ with RBS & Steep

Enforce type safety, code quality, and testing standards for Ruby 3.2+ projects.

836|66|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill ruby-3-2-with-rbs-steep-kreuzberg-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Ruby 3.2+ with RBS & Steep
Source: https://github.com/kreuzberg-dev/html-to-markdown/tree/main/.remote-cache/kreuzberg-shared-rules/.ai-rulez/skills/ruby-32-with-rbs-steep
Command: npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill ruby-3-2-with-rbs-steep-kreuzberg-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces modern Ruby development standards, ensuring type safety, code quality, and robust testing practices for Ruby 3.2+ projects.

Core Features & Use Cases

  • Type Safety: Utilizes RBS and Steep to catch type-related errors at compile time.
  • Code Quality: Enforces style guides with Rubocop and promotes clean code principles.
  • Testing: Integrates RSpec for comprehensive test coverage.
  • Use Case: Ensure a new Ruby gem adheres to strict type definitions and passes all RSpec tests before merging.

Quick Start

Apply the Ruby 3.2+ with RBS & Steep skill to review the provided Ruby code.

Frequently Asked Questions about Ruby 3.2+ with RBS & Steep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce type safety in Ruby 3.2+ projects?

Type safety in Ruby 3.2+ projects is enforced using RBS for type definitions and Steep for static type checking, catching type-related errors before runtime. This approach ensures strict adherence to modern Ruby development standards.

How do I set up RBS and Steep for Ruby type checking?

Setting up RBS and Steep involves applying modern Ruby development standards to your project, utilizing rbenv for version management. You define types with RBS and use Steep to validate type correctness across your Ruby 3.2+ codebase.

Can I use Rubocop and RSpec alongside RBS in Ruby 3.2+?

Yes, Rubocop and RSpec integrate alongside RBS and Steep to enforce code quality and robust testing. This combination ensures naming conventions, method length limits, and comprehensive test coverage for maintainable Ruby code.

What is the best way to maintain code quality in a Ruby gem?

Maintaining code quality in a Ruby gem is best achieved by enforcing style guides with Rubocop and applying strict type definitions with RBS. This ensures the gem passes RSpec tests and adheres to clean code principles before merging.

Does this Ruby type checking approach require a specific version manager?

Yes, this Ruby type checking approach requires using rbenv for version management in Ruby 3.2+ projects. This ensures the environment adheres to the expected modern Ruby development standards and type safety requirements.

Why should I use RBS for Ruby instead of standard dynamic typing?

Using RBS for Ruby catches type-related errors at compile time rather than runtime, complementing standard dynamic typing. Combined with Steep, it enforces strict type definitions and improves overall code maintainability and safety.