ZIO Golem Code Generation

ziobyzio
•
131
•

Automates the generation of robust Scala source code for Golem projects using Scalameta AST construction.

This skill provides specialized guidance for developing Scala code generators within the ZIO Golem ecosystem. It enforces the use of Scalameta AST nodes and quasiquotes over fragile string templates to ensure type-safe, maintainable code generation. Designed for cross-compatibility between sbt and Mill build tools, it helps developers implement pure, effect-free generation logic that integrates seamlessly into cloud-native application pipelines, ensuring consistency across the golem/ subtree.

主要功能

01Scalameta AST construction using quasiquotes for type-safe code
02Cross-compilation support for Scala 2.12 (sbt) and Scala 3.3.7 (Mill)
03Pure, effect-free generation API patterns
04Standardized build-tool integration for sbt and Mill plugins
05Pattern-based generation for agents, RPC clients, and boilerplate
06131 GitHub stars

使用场景

01Implementing cross-build compatible Scala code generation logic
02Refactoring string-based templates into structured Scalameta ASTs
03Adding new build-time source generators to the golem/ subproject