Environment Config Manager
Description
Manages environment variables across different environments. Creates .env files, validates required variables, and generates TypeScript types for type-safe access.
Code
Skill Code
Management includes: 1. .env.example generation 2. Environment validation 3. TypeScript types 4. Secret detection 5. Documentation 6. Default values
Usage Examples
Examples
User: set up env vars "keyword">for my app Claude: *creates files* ```bash # .env.example DATABASE_URL=postgresql://localhost:5432/myapp REDIS_URL=redis://localhost:6379 JWT_SECRET=your-secret-here ``` ```typescript // env.ts "keyword">const env = { DATABASE_URL: requireEnv("DATABASE_URL"), REDIS_URL: requireEnv("REDIS_URL"), JWT_SECRET: requireEnv("JWT_SECRET"), PORT: optionalEnv("PORT", "3000"), } as "keyword">const; ```
Installation
Add the following to your CLAUDE.md file (project root or ~/.claude/CLAUDE.md for global):
CLAUDE.md
# Environment Config Manager Management includes: 1. .env.example generation 2. Environment validation 3. TypeScript types 4. Secret detection 5. Documentation 6. Default values
Comments (0)
No comments yet. Be the first to share your thoughts!
Leave a Comment