golem-add-secret-ts

Add Secret<T> fields to TypeScript Golem agent configs and retrieve them via .get().

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you safely manage sensitive configuration (like API keys and passwords) for TypeScript-based Golem agents without hardcoding secrets into agent config or source code.

Core Features & Use Cases

  • Secret<T>-based configuration: Model sensitive fields using Secret<T> in your TypeScript config types so secret values are retrieved on demand.
  • On-demand secret retrieval: Fetch the live secret value at runtime via Secret<T>.get() when connecting to external services or performing authenticated operations.
  • CLI-driven secret lifecycle: Create, list, update, and delete secrets using golem secret commands, supporting per-environment storage and secret typing.

Quick Start

Use the skill by telling an AI: “Add secrets to my TypeScript Golem agent config using Secret<T>, then show me how to create and read those secrets via the golem secret CLI for my environment.”

Frequently Asked Questions about golem-add-secret-ts

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

FAQPage Schema
How do I manage API keys and secrets in TypeScript Golem agents without hardcoding values?

To manage secrets in TypeScript Golem agents without hardcoding, model sensitive configuration as Secret<T> fields in your config types and retrieve values on demand at runtime using the .get() method. This keeps values out of golem.yaml and source code.

How does the Secret<T> type work for runtime secret retrieval in TypeScript config?

The Secret<T> type models sensitive values in TypeScript config so they are fetched on demand. At runtime, calling Secret<T>.get() retrieves the live secret value when connecting to external services or performing authenticated operations.

How do I create and update per-environment secrets using the golem secret CLI?

You can manage the secret lifecycle for per-environment storage by using golem secret commands to create, list, update, and delete secrets. This CLI-driven approach supports proper secret typing without embedding values in configuration files.

Can I store database credentials and tokens for different environments using Secret<T> in Golem?

Yes, Secret<T> supports per-environment confidential configuration including database credentials, API keys, and tokens. You declare the secret fields in your TypeScript config types and use golem secret commands to store values for each environment separately.

What is the best way to add authentication credentials to a Golem agent configuration?

The best way to add authentication credentials to a Golem agent is declaring Secret<T> fields in your TypeScript config types to model sensitive values, then retrieving them at runtime via .get() and managing their lifecycle through golem secret commands.

Why should I avoid putting secret values directly in golem.yaml for TypeScript agents?

You should avoid putting secret values in golem.yaml because it exposes sensitive configuration in source files. Instead, modeling secrets as Secret<T> fields ensures values are retrieved on demand at runtime, keeping confidential data out of source code and static config.