golemcloud/golem/golem-add-config-scala
- community
Checking that the SKILL.md file is still in the repository.
Adding typed configuration to Scala Golem agents. Use when the user asks to add config, configuration, settings, or environment-specific parameters to an agent.
Install
npx vskill@latest install golemcloud/golem/golem-add-config-scalaSKILL.md
Adding Typed Configuration to a Scala Agent
Overview
Scala agents receive typed configuration via Config[T] from golem.config. The agent trait declares its config type by mixing in the AgentConfig[T] trait. The implementation class receives a Config[T] constructor parameter and accesses the resolved value lazily via .value.
Steps
- Define config case classes with
Schema.derivedin companion objects - Mix in `AgentConfig[T]` on the agent trait
- Accept `Config[T]` in the implementation constructor
- Access config via
config.value
Config Types
Define case classes for your configuration. Each needs an implicit val schema in its companion object:
Agent Definition
Mix in AgentConfig[T] alongside BaseAgent:
Agent Implementation
Accept Config[T] as a constructor parameter and access the value lazily:
Providing Config Values
golem.yaml — set defaults for agents:
CLI — override at agent creation:
RPC — override via the generated helper:
Key Constraints
- Config case classes need a companion object with
implicit val schema: Schema[T] = Schema.derived - The agent trait mixes in
AgentConfig[T]to declare its config type - The implementation class receives
Config[T]as a constructor parameter - Config is loaded lazily when
.valueis accessed - Config values in
golem.yamluse camelCase keys matching Scala field names - Config cascade order:
componentTemplates→components→agents, with presets resolved
within each template, component, and agent layer, not as one final global layer
- If the config includes
Secret[T]fields, also usegolem-add-secret-scalafor secret-specific declaration and CLI guidance
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggolem-skills/skills/scala/golem-add-config-scala/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/golemcloud/golem/golem-add-config-scala)