setup-env-validation

Community

Enforce type-safe env access and ban raw env.

Authormalinskibeniamin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Enforce type-safe environment variable access using t3-env with zod validation. Bans raw process.env.X outside dedicated env files. Use when setting up env validation, t3-env, type-safe environment variables, or banning raw process.env access.

Core Features & Use Cases

  • Centralized type-safe environment management with a single src/env.ts and zod schemas.
  • PostToolUse hook that blocks direct usage of process.env outside env definitions.
  • Clear, repeatable setup steps: install dependencies, create env.ts, wire the hook, and verify.

Quick Start

Install the required packages, create a type-safe env.ts with the provided template, and wire up the hook by placing scripts/env-validation-check.sh and _hook-lib.sh into .claude/hooks and adding the hook to PostToolUse.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: setup-env-validation
Download link: https://github.com/malinskibeniamin/skills/archive/main.zip#setup-env-validation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.