generating-sorbet-inline

Generate and update Sorbet inline type signatures in Ruby source files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates or updates Sorbet inline type signatures directly in Ruby source files using sig blocks, enabling gradual typing and improved maintainability.

Core Features & Use Cases

  • Generates inline sig { } blocks for methods, enabling Sorbet type checking without separate RBI files.
  • Preserves existing signatures when present and updates only changed files to minimize churn.
  • Works across Ruby projects using Sorbet inline typing to incrementally adopt static types.

Quick Start

Apply Sorbet inline signatures to a set of Ruby files to start type checking.

Frequently Asked Questions about generating-sorbet-inline

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

FAQPage Schema
How do I generate Sorbet inline type signatures for Ruby methods?

To generate Sorbet inline type signatures for Ruby methods, you can automate the creation of sig { } blocks directly in your source files. This enforces static typing without needing separate RBI files.

What is the best way to add static typing to multiple Ruby files at once?

The best way to add static typing to multiple Ruby files is using an automated tool that applies sig { } blocks across your project. It tracks changes per-file to ensure no files are missed and minimizes churn.

Does generating Sorbet signatures preserve existing typed sigils?

Yes, generating Sorbet signatures preserves existing # typed: sigils in your Ruby files. It also avoids T.untyped by inference where possible and updates only changed files to minimize churn.

Can I update existing Sorbet inline signatures without losing my custom types?

Yes, you can update existing Sorbet inline signatures without losing custom types. The process preserves existing sig { } blocks when present and avoids T.untyped by inference where possible.

Why use inline Sorbet sig blocks instead of separate RBI files?

You use inline Sorbet sig blocks instead of separate RBI files to enable gradual typing directly within Ruby source code. This approach improves maintainability and enforces type checking without managing external definition files.

What are the limitations of automating Sorbet signature generation?

A limitation of automating Sorbet signature generation is that it avoids T.untyped by inference where possible, but complex dynamic Ruby patterns may still require manual type annotations to achieve full static type coverage.