rigor-builtin-import

Import Ruby core class types into Rigor's static analysis catalog.

96|1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/rigortype/rigor --skill rigor-builtin-import
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rigor-builtin-import
Source: https://github.com/rigortype/rigor/tree/main/.codex/skills/rigor-builtin-import
Command: npx skills add https://github.com/rigortype/rigor --skill rigor-builtin-import

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to incorporate Ruby's core and stdlib class types into Rigor's static analysis catalog, improving type inference accuracy and coverage.

Core Features & Use Cases

  • Type Importation: Import Ruby built-in class types from CRuby reference sources into Rigor's catalog for comprehensive static analysis.
  • Workflow Extension: Extend per-class catalog coverage for classes like Hash, Range, Set, Time, and more, allowing for accurate type reasoning and bug detection.
  • Use Case: When adding support for a new core class or refining existing ones, this Skill facilitates importing and regenerating catalog data with decision points for mutation handling and classification.

Quick Start

Use the Skill to import Ruby core class types into Rigor's catalog, then regenerate catalog YAML files and update runtime loaders accordingly.

Frequently Asked Questions about rigor-builtin-import

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

FAQPage Schema
How do I import Ruby built-in class types into a static analysis catalog?

Importing Ruby built-in class types requires incorporating CRuby reference source files and RBS signatures to regenerate catalog YAML data. This process updates the catalog to reflect new or updated class definitions for accurate type inference across your projects.

Why does Ruby type inference fail for core classes like Hash and Time?

Ruby type inference fails for core classes like Hash and Time when the static analysis catalog lacks their built-in method types. Importing these types from CRuby reference sources into the catalog extends coverage and enables accurate type reasoning and bug detection.

What is needed to add Ruby core class types to a static analysis catalog?

Adding Ruby core class types to a static analysis catalog requires source files, RBS signatures, and the regeneration of catalog YAML data. You must also update runtime loaders to reflect the newly imported or refined class definitions.

Can I use RBS signatures to update Ruby static analysis catalog YAML files?

Yes, you can use RBS signatures to update Ruby static analysis catalog YAML files. By incorporating the RBS signatures alongside CRuby reference source files, you can regenerate the catalog data to support improved type inference for built-in classes.

How do I handle mutations when importing Ruby stdlib types for type inference?

When importing Ruby stdlib types for type inference, you handle mutations through decision points during catalog data regeneration. This classification process ensures accurate type reasoning when extending per-class catalog coverage for stdlib classes like Set and Range.