add-setting-env

Wire server-side environment variables into the user data store.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/andershi666/lobehub-hr-demo --skill add-setting-env-andershi666
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-setting-env
Source: https://github.com/andershi666/lobehub-hr-demo/tree/main/lobehub/.agents/skills/add-setting-env
Command: npx skills add https://github.com/andershi666/lobehub-hr-demo --skill add-setting-env-andershi666

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide explains how to add environment variables to configure default values for user settings, enabling server-side control over user preferences.

Core Features & Use Cases

  • Provides a standard approach to introducing domain-specific environment variables.
  • Updates types, server config, and user store to reflect new defaults automatically.
  • Keeps documentation and examples in sync with code changes across envs, types, and docs.

Quick Start

Follow the steps to add a new environment variable and wire it into the user configuration.

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 via server environment variables?

To configure default user settings via server environment variables, you wire server-side environment variables into the user data store. This process enables server-side control over domain-specific user preferences by updating types, compiling server config, and merging changes.

What steps are needed to wire environment variables into the user data store?

Wiring environment variables into the user data store requires creating env files, updating types, compiling server config, merging changes into the user store, updating the .env example, and synchronizing documentation. This end-to-end workflow ensures settings reflect new defaults automatically.

When do I need to update types and server config for environment variables?

You need to update types and server config for environment variables when introducing domain-specific settings to ensure the user store reflects new defaults. Keeping documentation and examples in sync with these code changes across multiple environments is also required.

Does adding environment variables for user settings require updating the .env example?

Yes, adding environment variables for user settings requires updating the .env example. The workflow enforces steps to synchronize documentation and examples with code changes across envs, types, and docs to maintain consistency.

What's the best way to manage domain-specific environment variables across multiple environments?

The best way to manage domain-specific environment variables across multiple environments is using a standard approach that updates types, server config, and the user store automatically. This keeps documentation and examples in sync with code changes.

Why are my user settings not reflecting changes made to server environment variables?

User settings may not reflect changes made to server environment variables if the server config is not compiled or changes are not merged into the user store. The workflow requires updating types and synchronizing documentation to ensure defaults apply.