Skip to content
Back to skills

Env Setup

ASecurity

Creates .env.example, validates required env vars, and documents each one

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
ai-agentsbashsqlapidatabase

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill env-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Env Setup?

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

Security grade badge for Env Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-env-setup/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-env-setup)

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: env-setup
description: Creates .env.example, validates required env vars, and documents each one
user-invocable: true
allowed-tools: Read Grep Glob Edit Bash
effort: low
---

## Environment Setup

1. Find all env var usages:
```bash
grep -rn "process\.env\.\|Deno\.env\.get\|env\." src/ --include="*.ts" --include="*.js" | grep -oE "process\.env\.[A-Z_]+" | sort -u
```

2. Check existing `.env*` files:
```bash
ls .env* 2>/dev/null
cat .env.example 2>/dev/null
```

3. For each env var found:
   - What is it used for?
   - Is it required or optional?
   - What's a safe example value?
   - Any format constraints? (URL, UUID, comma-separated, etc.)

4. Generate/update `.env.example`:
```bash
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/mydb

# Auth
JWT_SECRET=your-secret-key-min-32-chars
JWT_EXPIRES_IN=7d

# External APIs (optional)
STRIPE_SECRET_KEY=sk_test_...
```

5. Generate a startup validation script `src/lib/env.ts` using `zod` or `envalid` to fail fast if required vars are missing.

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…