rbs-files

Write standalone Ruby RBS type signatures under sig/ directories.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write standalone Ruby RBS type signatures to describe code without modifying the Ruby source, enabling safer type documentation and maintenance.

Core Features & Use Cases

  • Write .rbs files under a sig/ directory to describe classes, modules, and methods for existing codebases and gems.
  • Maintain type definitions separately from source, facilitating versioning, reviews, and cross-project reuse.
  • Use with Ruby projects to progressively adopt static typing without invasive changes.

Quick Start

Place your signature files in a sig/ directory (e.g., sig/person.rbs) next to lib/, then run RBS tooling to validate or compare against implementation.

Frequently Asked Questions about rbs-files

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

FAQPage Schema
How do I add RBS type signatures to a Ruby project without modifying the source code?

You can add RBS type signatures without modifying source code by placing .rbs files under a sig/ directory. This describes classes, modules, and methods separately, enabling type documentation while keeping Ruby source files untouched.

What are standalone Ruby RBS signatures and when should I use them?

Standalone Ruby RBS signatures are type definition files that describe method and class types separately from implementation. Use them to progressively adopt static typing in existing Ruby projects or gems without invasive code changes.

Can I use RBS type signatures with existing Ruby gems and libraries?

Yes, RBS type signatures work with existing Ruby gems and libraries. You write .rbs files under sig/ to describe the gem's classes and methods, maintaining type definitions separately for versioning and cross-project reuse.

How do I structure RBS signature files for a Ruby codebase?

Structure RBS signature files by placing them in a sig/ directory next to your lib/ directory, such as sig/person.rbs. Use standard RBS syntax to define classes, modules, and methods, then run RBS tooling to validate against the implementation.

What is the best way to progressively adopt static typing in a Ruby codebase?

Writing standalone RBS type signatures is an effective approach for progressive static typing adoption in Ruby. By maintaining .rbs files separately from source code, you can introduce type definitions gradually without altering existing implementation logic.