add-setting-env

Configure server-side environment variables for domain-specific user settings.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/mabdulrauf/wazone-back --skill add-setting-env-mabdulrauf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-setting-env
Source: https://github.com/mabdulrauf/wazone-back/tree/main/.agents/skills/add-setting-env
Command: npx skills add https://github.com/mabdulrauf/wazone-back --skill add-setting-env-mabdulrauf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure server-side environment variables to control default values for user settings.

Core Features & Use Cases

  • Define environment variables for each domain in src/envs.
  • Update type definitions to reflect new or updated settings.
  • Assemble server config and merge into the global user store.
  • Update .env.example and documentation to reflect changes.
  • Example: AI_IMAGE_DEFAULT_IMAGE_NUM style variable for default values.

Quick Start

Define environment variables for a new domain in src/envs/<domain>.ts and wire them into the global server config.

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 server-side environment variables for default user settings?

Define domain-wide variables in src/envs/<domain>.ts, update server config types, and merge them into the global user store to control default user values.

What is the correct way to expose server config through a global getter?

Assemble server config from domain definitions and wire it into a global getter function to expose configuration values across the application for user-store merging.

Do I need to update .env.example when adding new environment variables?

Yes, maintaining .env.example and documentation is required to reflect new variables, ensuring developers know required configurations and expected default values.

Can I use environment variables to set domain-wide defaults for user configurations?

Yes, defining variables such as AI_IMAGE_DEFAULT_IMAGE_NUM in src/envs/<domain>.ts establishes server-side defaults that merge into the user store for domain-wide configuration.

What are the steps to merge server config into the user store?

Define domain variables, update type definitions, assemble server config, expose it via a global getter, then merge it directly into the user store to apply default settings.