This skill helps you apply runtime-env with Vite by distinguishing build-time and runtime variables, ensuring safe migration and correct configuration.
npx playbooks add skill runtime-env/runtime-env --skill runtime-env-vite-plugin
This skill ensures that environment variables are handled correctly in Vite projects by distinguishing between build-time (static) variables and runtime (dynamic) variables. It enforces a sequential workflow to ensure proper analysis and clean implementation.
You MUST apply this skill when:
@runtime-env/vite-plugin.This skill MUST be executed in the following order. Do not skip steps:
runtimeEnv for type safety.parseInt, JSON.parse) during migration.npx runtime-env gen-ts after updating the schema.index.html before the app entry point.default keyword in .runtimeenvschema.json. All environment values must originate from the environment..env files. They are read-only sources of truth.import { runtimeEnv } from ... or similar. runtimeEnv is a global.gen-ts or gen-js scripts to package.json.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.