Automate the generation of type-safe TypeScript interfaces and Zod validation schemas from your project environment variables.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install env-typegen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install env-typegen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Env Typegen is a specialized utility designed to bridge the gap between static environment configuration and type-safe development in TypeScript. It intelligently scans your .env files and infers appropriate types for variables, transforming raw strings into numbers, booleans, or specific string formats. By incorporating this into your Openclaw Skills library, you ensure that configuration errors are caught at compile time rather than crashing your application at runtime.
The tool goes beyond simple mapping by providing helper functions that handle the casting of environment variables, which are natively strings in Node.js, into their correct primitive types. This eliminates repetitive boilerplate code and reduces the risk of logic errors when handling configuration data.
To add this capability to your Openclaw Skills workflow, install the package using npm:
npm install -g @lxgicstudios/env-typegen
You can then generate types immediately for any project by running:
npx @lxgicstudios/env-typegen -o src/types/env.d.ts
The tool organizes environment metadata based on the following inference patterns:
| Pattern Detected | Inferred TypeScript Type | Inference Logic |
|---|---|---|
| Numeric values (e.g., 3000) | number | Interpreted as integer or float |
| Boolean strings (true, 1, yes) | boolean | Case-insensitive truthy check |
| Standard URLs | string | Regex-based URL identification |
| Email addresses | string | Email format verification |
| Standard text | string | Default fallback |
The output is typically structured into a .d.ts or .ts file containing the interface and a global namespace extension.
Loading
A streamlined CLI tool that uses AI to generate documented .env.example files while keeping your secrets safe.

A high-efficiency tool that generates Playwright end-to-end tests by analyzing your source code or live URLs.

Automatically add JSDoc or TSDoc comments to your exported functions and classes using AI.

An intelligent CLI tool that scans your project to generate production-ready, optimized Dockerfiles with zero configuration.

A zero-config CLI tool that generates framework-specific error handling middleware and custom error classes for modern web applications.

A specialized CLI utility that generates framework-specific error handling middleware, custom error classes, and async wrappers for modern web APIs.








































