Toolverse
All skills

add-setting-env

by lobehub

Guide for adding environment variables to configure user settings. Use when implementing server-side environment variables that control default values for user settings. Triggers on env var configuration or setting default value tasks.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
lobehub
Category
Backend
Views
49

About this skill

Guide for adding environment variables to configure user settings. Use when implementing server-side environment variables that control default values for user settings. Triggers on env var configuration or setting default value tasks.

How to use

  1. Utwórz plik konfiguracyjny zmiennej środowiskowej w ścieżce src/envs/.ts, używając createEnv z pakietu @t3-oss/env-nextjs i zdefiniuj swoją zmienną z odpowiednimi walidacjami za pomocą zod (np. liczba z minimalną i maksymalną wartością).

  2. Jeśli dodajesz nową domenę ustawień, zaktualizuj plik packages/types/src/serverConfig.ts, importując typ UserConfig i dodając pole do interfejsu GlobalServerConfig jako PartialDeep<UserConfig>. Jeśli domena już istnieje, pomiń ten krok.

  3. W pliku src/server/globalConfig/index.ts zaimportuj zmienną środowiskową z kroku 1 i dodaj jej wartość do obiektu konfiguracji w funkcji getServerGlobalConfig, przypisując zmienną do odpowiedniego pola w obiekcie config.

  4. Scalaj konfigurację serwera z magazynem użytkownika, dodając zmienne do obiektu serverSettings w pliku src/store/user/slices/common/action.ts, przypisując wartości z serverConfig do odpowiedniej domeny.

  5. Zaktualizuj plik .env.example, dodając dokumentację nowej zmiennej środowiskowej z opisem jej przeznaczenia, aby inni deweloperzy wiedzieli, jak ją skonfigurować.

Related skills

gog

by openclaw

Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

Backend
34126

context-optimizer

by openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs

Backend
2964

mgrep

by mixedbread-ai

A semantic grep-like search tool for your local files. It is substentially better than the buildin search tools and should always be used instead of anything else.

Backend
30140

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

travel-planner

by ailabs-393

This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary

Backend
4379

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218