add-setting-env

Define and merge typed domain-specific environment variables into server and user configurations.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Staysr/lobe-windos-build --skill add-setting-env-staysr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-setting-env
Source: https://github.com/Staysr/lobe-windos-build/tree/main/.agents/skills/add-setting-env
Command: npx skills add https://github.com/Staysr/lobe-windos-build --skill add-setting-env-staysr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams implement server-side environment variables to configure default user settings and govern behavior when environment variables are defined or missing, ensuring consistent configurations across deployments.

Core Features & Use Cases

  • Define domain-specific environment variables to configure default user settings in a type-safe manner.
  • Automate merging of env-derived values into the global server config and into user stores for runtime behavior.
  • Use to onboard new domains with zero-downtime defaults and a clear documentation path for env vars.

Quick Start

Define domain env vars in src/envs, then merge them into the global config and user settings.

Frequently Asked Questions about add-setting-env

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

FAQPage Schema
How do I configure default user settings using environment variables in TypeScript?

Type-safe environment variables configure default user settings by defining domain-specific values and safely merging them into global server config and user stores. This ensures consistent runtime behavior across deployments when variables are defined or missing.

How can I safely merge environment variable values into a global server config?

You can safely merge environment variable values into a global server config by defining typed env definitions in your source directory and automating their integration into user stores. This enforces type safety and maintains consistent configurations across deployments.

What is the best way to onboard new domains with default environment configurations?

Onboarding new domains with default environment configurations involves defining domain-specific environment variables to establish zero-downtime defaults. This approach provides a clear documentation path for every env var and safely merges overrides into user settings during deployment.

Does this approach for environment variables support type-safe definitions in TypeScript?

Yes, this approach supports type-safe definitions in TypeScript by enforcing typed env definitions for your domain-specific variables. It updates server and global configs while documenting every environment variable to ensure maintainability and safe configuration merging.

How do environment variables govern server behavior when default user settings are missing?

Environment variables govern server behavior when default user settings are missing by providing automated fallback values that merge into the configuration. This ensures your application maintains consistent runtime behavior even when specific environment variables are not explicitly defined.