add-setting-env

Configure default user settings via server-side environment variables in TypeScript.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/yuchenjiji/Lobehub-v2.1.41 --skill add-setting-env-yuchenjiji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-setting-env
Source: https://github.com/yuchenjiji/Lobehub-v2.1.41/tree/main/.agents/skills/add-setting-env
Command: npx skills add https://github.com/yuchenjiji/Lobehub-v2.1.41 --skill add-setting-env-yuchenjiji

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of configuring default user settings by leveraging server-side environment variables, ensuring consistency and simplifying management.

Core Features & Use Cases

  • Centralized Configuration: Define default settings that apply across all users or specific environments.
  • Environment Variable Integration: Seamlessly integrates with existing environment variable setups for server-side control.
  • Use Case: Set a default image generation limit for all users by defining AI_IMAGE_DEFAULT_IMAGE_NUM in your server's environment, overriding any hardcoded defaults.

Quick Start

Add a new environment variable YOUR_ENV_VAR to configure user settings by following the steps outlined in the documentation.

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 with environment variables in TypeScript?

Configure default user settings by defining environment variables in TypeScript, updating type definitions, and assembling them into the server configuration to merge into the user store.

What is the priority order when merging server-side environment variables with user custom settings?

The priority system ensures user custom settings take precedence over server-side environment variables, which in turn override any hardcoded default values in the application configuration.

How do I override hardcoded defaults using server-side environment variables for configuration?

Override hardcoded defaults by defining a server-side environment variable, such as AI_IMAGE_DEFAULT_IMAGE_NUM, which establishes a centralized default value that replaces hardcoded application defaults.

Can I set a default image generation limit for all users using environment variables?

Yes, you can set a default image generation limit for all users by defining the AI_IMAGE_DEFAULT_IMAGE_NUM environment variable on your server to configure centralized default settings.

What are the steps to add a new environment variable for server-side configuration?

Adding a new environment variable requires defining the variable in TypeScript, updating the type definitions, assembling the server configuration, and merging the values into the user store.