| name | runtime-config-init |
| description | Use when centralizing runtime config, environment separation, or fail-fast env validation. |
Runtime Config Init
Use this skill to centralize config and environment handling.
Workflow
- Read
references/runtime-config-and-environments.md; fall back to docs/foundation/runtime-config-and-environments.md when installed.
- Centralize runtime config in one module.
- Avoid direct env reads from UI/screens/components.
- Support development, preview, staging, and production where relevant.
- Allow optional integrations to stay empty while stubbed.
- Fail fast on malformed configured values.
- Validate paired credentials as pairs.
- Add tests for safe defaults, invalid env names, missing pairs, and malformed URLs.
Security
Use framework-required public prefixes only for public client values. Keep write-capable secrets server-side.