Agent skill · software engineering · aiskillstore
generating-rbs
Generates RBS type signatures from Ruby source files. Triggers when creating type definitions, adding types to Ruby code, or generating .rbs files for classes/modules without existing RBS signatures.
Why this skill is useful
Adds specific commands and procedures for generating RBS signatures that the AI wouldn't reliably generate on its own.
What it needs
Requires rbs, steep installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
RBS Generate Skill Generate pure RBS signatures for Ruby source files from scratch. Does not handle RBS-inline signatures or updates for existing signatures. Instructions When generating RBS signatures from scratch, always follow these steps. Copy this checklist and track your progress: Rules There are several rules that you MUST follow while performing this skill: You MUST not run Ruby code of the project. You MUST not use untyped. Infer the proper type instead. You MUST ask the user to provide more details if something is not clear. You MUST prepend any command with bundle exec if the project has Gemfile. 1. Analyze the Ruby Source Always perform this step. Read and understand the Ruby source file: Identify all classes, modules, methods, constants and instance variables. Note inheritance, module inclusion and definitions based on metaprogramming. Note visibility modifiers - public, private, protected. Note type parameters for generic classes. 2. Generate RBS Signatures Always perform this step. Create necessary .rbs files for the target Ruby file. Place generated RBS files in sig/ directory mirroring Ruby source structure. You need to strongly follow RBS syntax conventions to describe types for all declarations See syntax.md for the full list of RBS types. Double-check it in tricky cases. Take inspiration from RBS signature examples See rbsbyexample.md for short list of RBS signatures examples See core for RBS signatures of Ruby core library See stdlib for RBS signatures of Ruby standard library Pay extra attention to Data and Struct types. See dataandstruct.md for handling guide See gemrbscollection for RBS signature examples of different Ruby libraries. This link contains only RBS files, Ruby sources are not included. 3. Eliminate untyped types in generated signatures Always perform this step. Go through all generated signatures and replace untyped with the proper type. Use assumptions and calls examples in Ruby code and tests to infer the proper type. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/generating-rbs