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.
/plugin marketplace add DmitryPogrebnoy/ruby-agent-skills/plugin install ruby-type-signature-skills@ruby-agent-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
reference/data_and_struct.mdreference/rbs_by_example.mdreference/syntax.mdGenerate pure RBS signatures for Ruby source files from scratch. Does not handle RBS-inline signatures or updates for existing signatures.
When generating RBS signatures from scratch, always follow these steps.
Copy this checklist and track your progress:
RBS Generation Progress:
- [ ] Step 1: Analyze the Ruby source
- [ ] Step 2: Generate RBS signatures
- [ ] Step 3: Review and refine RBS signatures
- [ ] Step 4: Validate shape of RBS signatures
- [ ] Step 5: Ensure type safety (only if steep is configured)
Always perform this step.
Read and understand the Ruby source file:
public, private, protected.Always perform this step.
.rbs files for the target Ruby file.sig/ directory mirroring Ruby source structure.Data and Struct types. See data_and_struct.md for handling guideAlways perform this step.
Always perform this step.
rbs validate to verify that existing and new .rbs files are internally consistent. It will check syntax, name resolution, inheritance, method overloading, type variables, etc.rbs validate and repeat the process until there are no errors.Perform this step ONLY if the project Gemfile includes steep gem AND the project has Steepfile.
steep check to verify that generated RBS signatures are type safe.steep check and repeat the process until there are no errors.steep check.There are several rules that you MUST follow while performing this skill:
untyped where it is possible to reasonably infer the type.bundle exec if the project has Gemfile.Data and Struct types handling