gen-types

Generate type definitions from build artifacts in a deterministic order.

37|5|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/BellaBe/lean-os --skill gen-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gen-types
Source: https://github.com/BellaBe/lean-os/tree/main/.claude/skills/engineering-gen-types
Command: npx skills add https://github.com/BellaBe/lean-os --skill gen-types

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate actual type definition files, with mandatory order.

Core Features & Use Cases

  • Effects module first: ensures base types exist
  • Type generation: user/domain/api/storage types
  • Validation: verifications of outputs

Quick Start

Provide artifacts; returns type files.

Frequently Asked Questions about gen-types

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

FAQPage Schema
How do I generate type definitions from build artifacts?

Type definition generation reads your build artifacts and outputs actual source files with type schemas for domain models, effects, API endpoints, and storage. The process enforces a mandatory generation order—effects modules first—to ensure base types exist before dependent types are created.

What file formats and languages does type generation support?

Type generation produces artifacts under artifacts/v{N}/gen/{language}/src, supporting multiple language targets. The output includes domain models, effects modules (Result, App, Errors), API schemas, and storage models as actual source files in your chosen language.

Why does the generation order matter for type definitions?

Mandatory generation order ensures effects modules—base types like Result, App, and Errors—are created first. This validates that core dependencies exist before other types reference them, preventing missing dependency errors in downstream code.

Can I use type generation with existing domain models and API schemas?

Yes. Type generation applies to end-to-end code-generation workflows for domain models, effects modules, API schemas, and storage models. It ingests your build artifacts and produces corresponding type files with deterministic ordering and validation.

What validation does the type generation process perform?

Type generation validates that core effect modules (Result, App, Errors) exist before completion. It enforces the mandatory generation order and confirms all required outputs are present in the artifacts directory before finishing.

How do I know if type generation completed successfully?

Type generation succeeds when it produces all required source files under artifacts/v{N}/gen/{language}/src in the correct order and validates the existence of mandatory effects modules without errors.