# Env Example Generator

> Turn a .env into a shareable .env.example with keys preserved and values stripped. Use when the user says "make an env example", "redact my .env", or "create .env.example".

- Skill: `justhandledlabs/env-example-generator` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add justhandledlabs/env-example-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/justhandledlabs/env-example-generator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: JustHandled Labs (https://skillmd.com/u/justhandledlabs)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/justhandledlabs/env-example-generator

---


# Env Example Generator

Transform a .env file into safe .env.example content. This transformer preserves keys, comments, blank lines, and order, but never prints original values.

## Workflow

1. Run scripts/generate_env_example.py with a .env path, defaulting to ./.env.
2. Review stdout. It contains .env.example content and a secret-looking key summary.
3. Write .env.example only with --write. Existing files require --force.

## Guardrails

- Do not print or copy original values.
- Do not read .env.example as input.
- Do not validate application runtime behavior.

## Verification

Run tests/test_env_example.py. Output must match fixtures/expected/.env.example and must not include input values.

## Commercial Terms

Price: $0 / 0 credits. Free commercial use for personal or internal team workflows. Do not resell or redistribute the package as-is.

