golem-add-config-ts

Add typed configuration to TypeScript Golem agents via Config<T> detection.

Updated May 17, 2026
One-click install
npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-config-ts-rust-soham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-add-config-ts
Source: https://github.com/Rust-soham/golem-claw/tree/main/packages/golem/.agents/skills/golem-add-config-ts
Command: npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-config-ts-rust-soham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you add strongly typed configuration to a TypeScript Golem agent so users can provide settings safely via golem.yaml or CLI instead of relying on unstructured parameters.

Core Features & Use Cases

  • Typed config models: Define plain TypeScript type literals that describe the config shape.
  • Automatic wiring: Use @agent() with a Config<T> constructor parameter so the framework detects and loads config automatically.
  • Flexible configuration entry points: Set values in golem.yaml, via CLI --config flags, or pass overrides when calling another agent (e.g., getWithConfig).
  • Controlled precedence: Apply config cascade rules (componentTemplates → components → agents → presets) so narrower scopes override broader ones.

Quick Start

Tell me to add typed configuration to my TypeScript Golem agent, including a Config<T> constructor parameter and example golem.yaml plus CLI --config usage.

Frequently Asked Questions about golem-add-config-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add typed configuration to a TypeScript Golem agent?

To add typed configuration to a TypeScript Golem agent, define a plain TypeScript type literal describing your config shape and bind it using a Config<T> constructor parameter in the @agent() decorator so the framework detects and loads it automatically.

How does config precedence work when using golem.yaml and CLI flags?

Config precedence follows a cascade where narrower scopes override broader ones: componentTemplates override components, which override agents, which override presets, ensuring per-call RPC overrides and CLI --config flags take priority over golem.yaml defaults.

Can I pass configuration overrides during agent-to-agent RPC calls?

Yes, you can pass configuration overrides during agent-to-agent RPC by using methods like getWithConfig, allowing per-call settings to take precedence over values defined in golem.yaml or supplied via CLI --config flags.

What is the correct way to access typed config values inside a Golem agent?

You access typed configuration values inside a Golem agent by using the config.value syntax on your injected Config<T> parameter, ensuring settings supplied via golem.yaml or CLI flags are safely read as strongly typed data.

Does Golem typed config support interfaces or classes for the config model?

No, Golem typed config requires using plain TypeScript type literals to define the config shape rather than interfaces or classes, ensuring the framework can properly detect and bind the configuration through Config<T>.

Why supply settings via golem.yaml instead of unstructured agent parameters?

Supplying settings via golem.yaml and CLI flags provides strongly typed, structured configuration management for Golem agents, replacing unstructured parameters with a safe config precedence cascade and validation through TypeScript type literals.