Babysitter dotenv-integration
Integrate dotenv for environment variable loading with validation and type coercion.
install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/specializations/cli-mcp-development/skills/dotenv-integration" ~/.claude/skills/a5c-ai-babysitter-dotenv-integration && rm -rf "$T"
manifest:
library/specializations/cli-mcp-development/skills/dotenv-integration/SKILL.mdsource content
Dotenv Integration
Integrate dotenv for environment variable loading.
Generated Patterns
import { config } from 'dotenv'; import { expand } from 'dotenv-expand'; import { z } from 'zod'; // Load .env files in order for (const file of ['.env.local', `.env.${process.env.NODE_ENV}`, '.env']) { expand(config({ path: file })); } const envSchema = z.object({ NODE_ENV: z.enum(['development', 'production', 'test']).default('development'), PORT: z.coerce.number().default(3000), DATABASE_URL: z.string().url(), API_KEY: z.string().min(1), }); export const env = envSchema.parse(process.env);
Target Processes
- configuration-management-system
- mcp-server-bootstrap
- cli-application-bootstrap