mcpField
Z
zod-env-integration

zod-env-integration

github.com/forge-townDevelopment738 installsUpdated 8w ago
Repository

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-integration

After 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.ts
getClientEnv.ts
index.ts
best-practice-examples/multi-env/integrations/server-env/
envSchema.ts
getServerEnv.ts
index.ts
best-practice-examples/single-env/integrations/env/
envSchema.ts
getEnv.ts
index.ts
references/
.env.example.template
multi-env-guide.md
single-env-guide.md

Details

From the project README

Zod 环境变量集成

使用说明

  1. 根据项目类型选择对应参考指南:
  2. 严格参照 best-practice-examples/ 中的代码结构生成代码

重要: 必须严格遵循 best-practice-examples 中的结构,任何偏离都可能破坏类型安全保证

Comments

Markdown supported