Skip to content
Back to skills

Dotenv Integration

ASecurity

Integrate dotenv for environment variable loading with validation and type coercion.

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentstypescriptbashnodeapidatabasebackend

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill dotenv-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dotenv Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dotenv Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-dotenv-integration-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-dotenv-integration-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dotenv-integration
description: Integrate dotenv for environment variable loading with validation and type coercion.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:cli-mcp-development]
  skillAreas: [skill-area:cli-design, skill-area:configuration-management]
  roles: [role:backend-engineer, role:platform-engineer]
  workflows: [workflow:feature-development]
  topics: [topic:developer-experience]

---

# Dotenv Integration

Integrate dotenv for environment variable loading.

## Generated Patterns

```typescript
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

Files in this skill

  • README.md382 B
  • SKILL.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…