adrielc/helios-alpha/golem-add-config-rust
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Adding typed configuration to a Rust Golem agent. Use when the user asks about agent config, Config<T>, ConfigSchema, #[agent_config], or passing configuration values to agents.
Install
npx vskill@latest install adrielc/helios-alpha/golem-add-config-rustSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Adding Typed Configuration to an Agent (Rust)
Golem agents can receive typed configuration via Config<T> from golem_rust::agentic::Config. Configuration values are validated against a schema derived from your Rust struct.
1. Define a Config Struct
Derive ConfigSchema on a struct whose fields become config keys:
- All fields must implement the
ConfigSchematrait. - Nested structs require the
#[config_schema(nested)]annotation. Option<T>fields are optional and default toNoneif not provided.
2. Add Config<T> to the Agent Constructor
Annotate the config parameter with #[agent_config]:
- The
#[agent_config]annotation is required on theConfig<T>parameter. - Do not call
Config::new()yourself in user code.Config<T>metadata is discovered from the#[agent_config]constructor parameter, and manual construction bypasses that registration path. - Config is loaded lazily when
.get()is called.
3. Set Config in golem.yaml
Provide default values under agents.<Name>.config (or components.<Name>.config):
Config values in golem.yaml use camelCase keys — Rust snake_case fields are converted automatically.
4. Pass Config via CLI
Override or supply config when creating an agent instance:
Dot-separated keys address nested struct fields.
5. RPC Config Overrides
When calling an agent via RPC, use the generated *ConfigRpc type and get_with_config to override config at call time:
Config Cascade
Config values follow the same cascade as environment variables:
componentTemplates → components → agents → presets
- Values in
golem.yamlact as defaults. - Values passed via
golem agent new --configor RPCget_with_configoverride those defaults. - If the config includes
Secret<T>fields, also usegolem-add-secret-rustfor secret-specific declaration and CLI guidance.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggolem/.agents/skills/golem-add-config-rust/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
configConfiguration overrides
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/adrielc/helios-alpha/golem-add-config-rust)