Ruby Sorbet Type Generator
Generates Sorbet inline type signatures in Ruby source files to enable robust static and runtime type checking.
The Ruby Sorbet Type Generator skill automates the implementation of Sorbet type signatures by inserting 'sig' blocks directly into your Ruby code. It intelligently analyzes classes, modules, and methods to infer precise types, effectively eliminating the need for 'T.untyped'. By automatically managing 'extend T::Sig' declarations and validating signatures via 'srb tc', this tool ensures your Ruby projects maintain high standards of type safety and documentation without the manual overhead of traditional annotation.
Key Features
01Intelligent type inference to minimize T.untyped usage
02Automatic management of extend T::Sig declarations
03114 GitHub stars
04Automated inline sig block generation for Ruby methods
05Preservation of existing file-level typed sigils
06Seamless integration with srb tc for signature validation
Use Cases
01Automating type signature creation during new feature development
02Documenting complex method interfaces with static type safety
03Migrating legacy Ruby applications to a gradually typed codebase