skills/runtime-env-vite-plugin/SKILL.md
Guidance on using runtime-env with Vite to distinguish between runtime and build-time environment variables.
npx skillsauth add runtime-env/runtime-env runtime-env-vite-pluginInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.testing
Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.
data-ai
Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
development
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
tools
Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.