env-setup
Installation
SKILL.md
Set up environment variable validation: $ARGUMENTS
$ARGUMENTS can include:
- "audit" — scan existing codebase for unvalidated env vars and fix
- "nextjs" or "vite" — framework hint (auto-detected)
- "full" — generate .env.example + Zod schema + check script (default)
- Empty — full setup, auto-detect framework
Before Starting
- Read
package.jsonto detect framework and see existing scripts - Check if
src/lib/env.tsalready exists — update rather than overwrite - Read
.env.exampleor.env.local.exampleif present - Grep for
process.env.andimport.meta.env.— find all usages to catalog vars - Read
src/lib/config/tenant.config.tsfor tenant-specific vars