Guidance for constructing code generators in the ZIO Golem project using AST nodes instead of strings.
Install
mkdir -p .claude/skills/zio-golem-code-generation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14688" && unzip -o skill.zip -d .claude/skills/zio-golem-code-generation && rm skill.zipInstalls to .claude/skills/zio-golem-code-generation
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Generating Scala code in the golem subproject. Use when adding code generation steps, build-time source generators, scalameta AST construction, or sbt/Mill sourceGenerators to the golem/ subtree.Key capabilities
- →Construct generated code as Scalameta AST nodes using quasiquotes
- →Cross-compile code generation logic to Scala 2.12 and Scala 3.3.7
- →Parse dotted strings into Scalameta AST nodes for type and term references
- →Expose a pure, effect-free API for code generators
- →Integrate code generation with sbt and Mill build tools
How it works
The skill mandates constructing generated code as Scalameta AST nodes using quasiquotes, cross-compiling the logic to Scala 2.12 and Scala 3.3.7. It defines a pure API for generators and integrates them into sbt via `sourceGenerators` and Mill via `generatedSources`.
Inputs & outputs
When to use zio-golem-code-generation
- →Build source generators
- →Construct Scala code via AST
- →Implement sbt/Mill sourceGenerators
About zio-golem-code-generation
Ensures code generation within the Golem subproject uses Scalameta ASTs to construct Scala source files. It prevents string template errors by enforcing type-safe AST usage.
Generating Scala code in the golem subproject. Use when adding code generation steps, build-time source generators, scalameta AST construction, or sbt/Mill sourceGenerators to the golem/ subtree.
When not to use it
- →When generating Scala code using string interpolation or text templates
- →When the code generation logic is not for the `golem` subproject
- →When implementing Scala 3 macros (compile-time, not build-time code generation)
Limitations
- →The skill is specific to the `golem` subproject.
- →It requires cross-compilation to Scala 2.12 and Scala 3.3.7.
- →It explicitly forbids string interpolation or text templates for code generation.
How it compares
This skill enforces a specific, type-safe approach to Scala code generation within the `golem` subproject by using Scalameta ASTs and cross-compilation, preventing common errors associated with string templates and providing a standardized
Compared to similar skills
zio-golem-code-generation side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| zio-golem-code-generation (this skill) | 0 | 6mo | No flags | Advanced |
| godot | 1,044 | 7mo | Review | Intermediate |
| software-architecture | 333 | 8mo | No flags | Intermediate |
| drizzle | 238 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
software-architecture
davila7
Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.
drizzle
lobehub
Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.
screenshot-to-code
OneWave-AI
Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.
zustand
lobehub
Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.
codex
Lucklyric
Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.