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).
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
- Client-exposed env vars MUST be prefixed with VITE_.
- Access via import.meta.env (not process.env).
- Document variables in .env.example.
- Do not commit secrets; if asked, recommend server-side storage instead.
- 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?