What problem does it solve?
This Skill converts Langium grammar type systems into TypeScript Zod v4 schemas, eliminating manual schema maintenance and keeping runtime validation aligned with DSL AST definitions.
Core Features & Use Cases
- End-to-End Schema Generation: Generate Zod schema source from parsed Langium grammars or pre-built AST type models.
- Advanced Type Handling: Map interfaces, unions, primitive aliases, arrays, keyword and regex enums, cross-references, and recursive types to appropriate Zod constructs.
- Pipeline Customization: Apply include/exclude filters, projections, internal-field stripping, regex overrides, form metadata, strict or loose object styles, and optional conformance artifacts.
- Integration Support: Use the programmatic API, CLI entry point, or Langium dependency-injection module in build pipelines, language servers, tooling, and network-boundary validation.
- Use Case: Generate schemas for an expression language so editors, import pipelines, and services can validate AST-shaped data while correctly handling recursive expressions and unresolved cross-references.
Quick Start
Use the langium-zod skill to generate Zod v4 TypeScript schemas from the parsed Langium grammar and write the result to the project's generated schemas file.