ruby-rbs

Generate and manage RBS type signatures for Ruby projects.

19|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/stevegeek/claude-ruby-plugins --skill ruby-rbs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruby-rbs
Source: https://github.com/stevegeek/claude-ruby-plugins/tree/main/plugins/ruby-rbs/skills/ruby-rbs
Command: npx skills add https://github.com/stevegeek/claude-ruby-plugins --skill ruby-rbs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill enables Ruby projects to manage and generate RBS type signatures for both inline and standalone formats.

Core Features & Use Cases

  • Inline RBS support: annotate Ruby sources directly using rbs-inline to add type information close to code.
  • Standalone RBS support: generate and maintain .rbs signatures under sig/ for gems and libraries, enabling library authors and users to publish typed APIs.
  • Steep integration and scaffolding: integrates with Steep for type checking, collection of signatures, and workflow automation.

Quick Start

Use the ruby-rbs skill to annotate and generate RBS signatures for your Ruby project using either inline or standalone workflows.

  • Generate inline RBS: bundle exec rbs-inline lib
  • Generate standalone RBS: bundle exec rbs prototype rb lib/my_class.rb > sig/my_class.rbs

Frequently Asked Questions about ruby-rbs

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

FAQPage Schema
How do I add inline RBS type signatures to Ruby source files?

Inline RBS type signatures are added directly to Ruby source files using the rbs-inline tool, allowing you to annotate code close to the source by running `bundle exec rbs-inline lib` to process the annotations.

What is the best way to generate standalone RBS signatures for a Ruby gem?

The best way to generate standalone RBS signatures for a Ruby gem is using `bundle exec rbs prototype rb lib/my_class.rb > sig/my_class.rbs` to produce and maintain .rbs files under the sig/ directory for a typed API.

Does Steep work with RBS signatures for type checking Ruby projects?

Steep integrates with RBS signatures for type checking Ruby projects, validating signatures and enabling workflow automation and scaffolding for both inline and standalone formats.

When do I need standalone RBS files instead of inline annotations?

You need standalone RBS files instead of inline annotations when you are a library author wanting to publish typed APIs for gems, generating .rbs signatures under sig/ without modifying the original Ruby source code.

Can I use rbs-inline to manage type signatures alongside existing standalone .rbs files?

You can use rbs-inline to manage inline type signatures alongside existing standalone .rbs files, with Steep integration validating both formats to maintain consistent type checking across the Ruby project.