원클릭으로
environment-config
Strict rules for environment variable management using Zod validation and src/config/env.ts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Strict rules for environment variable management using Zod validation and src/config/env.ts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
ZGO API development standards including pagination, error handling, and RESTful design
Test patterns, mocking strategies, and organization best practices
Standardized error format, error code clusters, and API client usage for consistent error handling.
Specifications for Zustand stores, React Query hooks, and the Service-Hook-Type pattern with optimistic updates.
Guidelines for managing internationalization (i18n) in the project using next-intl and unified translation patterns.
High-level overview of project structure, mock API architecture, and authentication flow.
| name | environment-config |
| description | Strict rules for environment variable management using Zod validation and src/config/env.ts. |
This skill provides guidelines for managing environment variables in the project. It ensures type safety and prevents runtime errors by using a single source of truth and schema validation.
All environment variables MUST be defined, validated, and exported from src/config/env.ts.
❌ DO NOT:
const apiUrl = process.env.NEXT_PUBLIC_API_URL; // Unsafe, untyped
✅ DO:
import { env } from '@/config/env';
const apiUrl = env.NEXT_PUBLIC_API_URL; // Typed, validated
The project uses zod to validate environment variables at runtime. If a required variable is missing, the application will fail to start with a clear error message.
.env.local: Define the variable and its value.src/config/env.ts:
envSchema object.env export.| Variable | Required | Default | Description |
|---|---|---|---|
NEXT_PUBLIC_API_URL | No | /api | Base URL for API requests. |
NEXT_PUBLIC_GA_MEASUREMENT_ID | No | - | Google Analytics ID. |
NODE_ENV | No | development | App environment (development | production | test). |
[!IMPORTANT] Always use the
envobject from@/config/envto access environment variables. Directly accessingprocess.envis strictly prohibited outside of the config file.