generating-sorbet
Generate Sorbet RBI Signatures
Ruby teams often need type signatures without changing source files. This skill guides Claude, Codex, and Claude Code to create accurate Sorbet RBI files and validate them with Sorbet.
Stop for confirmation before installing.
Review the plan and obtain explicit user consent before changing files.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "generating-sorbet" from https://skillstore.io/skills/dmitrypogrebnoy-generating-sorbet.md and its manifest at https://skillstore.io/api/skills/dmitrypogrebnoy-generating-sorbet/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "generating-sorbet". A Ruby class with readers, an initializer, and one public method.
Expected outcome:
A matching RBI file with typed sigil, T::Sig extension, reader signatures, initializer parameters, and method return type.
Using "generating-sorbet". A Rails model that gains methods from a DSL.
Expected outcome:
An RBI description of the generated methods, expected parameter types, return types, and class structure.
Using "generating-sorbet". A Sorbet validation error for a generated signature.
Expected outcome:
A revised signature plan that explains the mismatch and updates the RBI file to satisfy Sorbet.
Security Audit
SafeAll 400 representative static findings are false positives. They arise from vendored Stripe Ruby reference files, generated RBI declarations, documentation, and broad lexical matches rather than the RBI-generation instructions. No prompt-injection, credential-exfiltration, or unauthorized network behavior was found in the skill instructions. Static review was capped at 400/22364 representative findings; omitted static matches are unconfirmed, so automatic publishing stays disabled until manual review.
Risk Factors
๐ Network access (50)
๐ Env variables (50)
โ๏ธ External commands (50)
๐ Filesystem access (19)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/dmitrypogrebnoy-generating-sorbet/audits/12?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/dmitrypogrebnoy-generating-sorbet?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/dmitrypogrebnoy-generating-sorbet?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dmitrypogrebnoy-generating-sorbet/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/dmitrypogrebnoy-generating-sorbet.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
DmitryPogrebnoy. (2026). generating-sorbet security audit report (audit version 12) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dmitrypogrebnoy-generating-sorbet/audits/12BibTeX citation
@techreport{dmitrypogrebnoy-dmitrypogrebnoy-generating-sorbet-2026,
author = {DmitryPogrebnoy},
title = {generating-sorbet security audit report (audit version 12)},
institution = {Skillstore},
year = {2026},
number = {12},
url = {https://skillstore.io/skills/dmitrypogrebnoy-generating-sorbet/audits/12},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "generating-sorbet security audit report (audit version 12)"
version: "unspecified"
type: report
authors:
- name: "DmitryPogrebnoy"
date-released: "2026-07-21"
url: "https://skillstore.io/skills/dmitrypogrebnoy-generating-sorbet/audits/12"
identifiers:
- type: other
value: "skillstore:dmitrypogrebnoy-generating-sorbet:audit:12"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Add types to a legacy Ruby library
Generate RBI files that describe existing classes and methods without editing legacy source files.
Describe gem or generated APIs
Create signatures for APIs that Sorbet cannot infer from source code alone.
Validate type coverage during migration
Iterate on generated signatures and run Sorbet checks until the RBI files are accepted.
Try These Prompts
Generate Sorbet RBI signatures for this Ruby file. Place the result in the rbi directory and avoid changing the source file.
Review the generated RBI file and replace weak or unknown types with more specific Sorbet types based on the Ruby source and tests.
Analyze this Ruby class for methods created by metaprogramming, DSLs, or method_missing. Generate RBI signatures that reflect the public API.
Run the appropriate Sorbet type check command, explain each signature error, update the RBI files, and repeat until validation passes.
Best Practices
- Read the Ruby source and surrounding tests before choosing parameter and return types.
- Keep RBI files as signatures and empty stubs only, with no method bodies.
- Validate with Sorbet after generation and refine signatures from the reported errors.
Avoid
- Do not use T.untyped as a default when source context supports a specific type.
- Do not modify Ruby source files when the task asks for separate RBI signatures.
- Do not run application code to infer types; use static analysis and Sorbet validation instead.
Frequently Asked Questions
What does this skill generate?
Does it change my Ruby source files?
Can it type dynamic Ruby methods?
Does it allow T.untyped?
How are generated files checked?
Who should use this skill?
Developer Details
Author
DmitryPogrebnoyLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
810297c4fe559b9a1b22ac0a4976bd75f052d1c3
Maintenance freshness
7/22/2026
Usage
12 downloads ยท 21 views
File structure
๐ reference/
๐ references/
๐ stripe-ruby/
๐ lib/
๐ rbi/
๐ STRUCTURE.md
๐ syntax.md
๐ SKILL.md