Agent skill

vite-react-ts-env

Add environment variables in a Vite React-TS project correctly (VITE_ prefix, typing, .env files, safe usage in React components).

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/vite-react-ts-env

SKILL.md

Vite Env Variables (React-TS) Skill

Implement environment variables correctly in Vite.

Rules / best practices

  1. Client-exposed env vars MUST be prefixed with VITE_.
  2. Access via import.meta.env (not process.env).
  3. Document variables in .env.example.
  4. Do not commit secrets; if asked, recommend server-side storage instead.
  5. Provide TypeScript types for env when helpful (vite-env.d.ts).

Deliverables

  • .env.example entries
  • Optional: env typing augmentation
  • Usage snippet in a React component

Use template.md as the default structure.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results