Skip to content
A

add-setting-env

Add server-side environment variables

by lobehubFree

Launch
#1007in AI Skills
0In stores

Description

add-setting-env is an agent skill from the LobeHub repository for adding server-side environment variables that set the default values of us…

Highlights

  • Adds server environment variables for user setting defaults
  • Explains the priority: user value, then server variable, then default
  • Defines variables with createEnv and zod
  • Keeps the @/envs/<domain> import path working

Ratings & Reviews

No ratings yet

Be the first to rate add-setting-env.

People also visit

A

add-provider-doc

Add documentation for a new AI provider

AI Skills
Launch
H

hotkey

Keyboard shortcuts, registration, key combinations, scope

AI Skills
Launch
D

debug

Debug package usage guide

AI Skills
Launch
D

desktop

Electron desktop development guide

AI Skills
Launch
M

microcopy

UI copy and microcopy guidelines

AI Skills
Launch
M

modal

Modals, dialogs and confirmations

AI Skills
Launch

add-setting-env FAQ

What do environment variables control here?

The default values of user settings, which a user can still override in their own settings.

What is the priority order?

A user's own custom setting first, then the server environment variable, then the hardcoded default.

Where are the variables defined?

In packages/env/src/<domain>.ts, using createEnv from @t3-oss/env-core and a zod schema.

How do I install it?

Run npx skills add https://github.com/lobehub/lobehub --skill add-setting-env.

Which security audits does it have?

On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.

What are the best add-setting-env alternatives?

Popular alternatives to add-setting-env include add-provider-doc, hotkey and debug. See all add-setting-env alternatives

Developer Stuff

Badges