About zod-env-integration
Must follow when configuring a type-safe environment variable management module: based on .env.example, use Zod to generate the env schema and standardized management tooling. Trigger words: zod environment variables, type-safe env configuration, environment variable schema.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ forge-town/ skills --skill zod-env-integrationAfter installing, type/zod-env-integrationin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
best-practice-examples/multi-env/integrations/client-env/envSchema.tsgetClientEnv.tsindex.tsbest-practice-examples/multi-env/integrations/server-env/envSchema.tsgetServerEnv.tsindex.tsbest-practice-examples/single-env/integrations/env/envSchema.tsgetEnv.tsindex.tsreferences/.env.example.templatemulti-env-guide.mdsingle-env-guide.mdDetails
From the project READMEZod 环境变量集成
使用说明
- 根据项目类型选择对应参考指南:
- 严格参照 best-practice-examples/ 中的代码结构生成代码
重要: 必须严格遵循 best-practice-examples 中的结构,任何偏离都可能破坏类型安全保证
Comments
Markdown supported