What problem does it solve?
Scala Golem agents need a structured way to receive environment-specific settings like database hosts, ports, and application names without hardcoding values. This Skill guides you through declaring typed configuration schemas and wiring them into agent traits and implementations.
Core Features & Use Cases
- Typed Config Schemas: Define configuration as Scala case classes with derived ZIO Blocks Schema instances for compile-time safety.
- Agent Integration: Mix in the AgentConfig trait on the agent definition and accept Config[T] in the implementation constructor, accessing values lazily via .value.
- Multi-Source Values: Set defaults in golem.yaml, override at agent creation with the Golem CLI, or pass overrides through generated RPC client helpers.
- Use Case: You are building a Scala agent that connects to a database. Use this Skill to declare a DbConfig case class, wire it into your agent, and supply different host and port values per deployment environment.
Quick Start
Add typed configuration with a database host and port setting to my Scala Golem agent.