generating-rbs

Generate RBS type signatures for Ruby sources into sig/ files.

26|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/DmitryPogrebnoy/ruby-agent-skills --skill generating-rbs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-rbs
Source: https://github.com/DmitryPogrebnoy/ruby-agent-skills/tree/main/plugins/ruby-type-signature-skills/skills/generating-rbs
Command: npx skills add https://github.com/DmitryPogrebnoy/ruby-agent-skills --skill generating-rbs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates or updates RBS type signatures for Ruby source files, writing them to separate .rbs files in a sig/ directory to keep type declarations in sync with code.

Core Features & Use Cases

  • Generates RBS signatures for Ruby sources and places them in the corresponding sig/ path.
  • Updates existing signatures when source files change, ensuring signatures reflect current code structure.
  • Supports both full generation from scratch and incremental updates for modified files in large projects.

Quick Start

Run the skill on a Ruby project to generate RBS signatures and populate the sig/ directory.

Frequently Asked Questions about generating-rbs

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

FAQPage Schema
How do I generate RBS type signatures for existing Ruby source files?

The skill generates RBS type signatures by analyzing Ruby sources and writing declarations to separate .rbs files in the sig/ directory, keeping types in sync with your code structure.

What is the best way to update RBS signatures when Ruby code changes?

Updating RBS signatures is handled through incremental generation, which modifies existing .rbs files to reflect current code structure without requiring full regeneration of the entire project.

Can I use this to add type signatures to a large Ruby project incrementally?

Yes, you can add type signatures to large Ruby projects incrementally. The skill supports updates for modified files, ensuring signatures reflect current code structure across the project.

Does generating RBS signatures require executing my Ruby project code?

Generating RBS signatures does not require executing your Ruby project code. The skill follows a deterministic, multi-file workflow using static analysis without running your application.

How are RBS type signature files organized when generated for Ruby?

Generated RBS type signature files are organized in a sig/ directory, placing declarations in corresponding paths separate from the Ruby source files to keep type declarations isolated.