Skip to content
Back to skills

Env Sync

ASecurity

Generate .env.example from your .env files. Use when onboarding developers.

  • 21 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 7, 2026
developmentbashnodegitapici/cd

Works with

  • api

Security analysis

A100/100

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

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill env-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Env Sync?

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

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

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-sync
description: Generate .env.example from your .env files. Use when onboarding developers.
---

# Env Sync

Your .env has 30 variables and nobody knows what half of them do. This tool creates a properly documented .env.example with secrets stripped out.

**One command. Zero config. Just works.**

## Quick Start

```bash
npx ai-env-sync
```

## What It Does

- Reads all your .env files (.env, .env.local, .env.development)
- Strips secret values but keeps the keys
- Adds helpful comments explaining each variable
- Generates a clean .env.example

## Usage Examples

```bash
# Generate .env.example
npx ai-env-sync

# Specify project directory
npx ai-env-sync ./my-project
```

## Best Practices

- **Run before committing** - keep .env.example in sync
- **Add to CI** - verify .env.example matches .env structure
- **Group related vars** - makes it easier to configure
- **Document required vs optional** - not everything needs a value

## When to Use This

- Onboarding new team members
- Setting up CI/CD environments
- Documenting environment requirements
- Keeping .env.example up to date

## Part of the LXGIC Dev Toolkit

This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.

**Find more:**
- GitHub: https://github.com/LXGIC-Studios
- Twitter: https://x.com/lxgicstudios
- Substack: https://lxgicstudios.substack.com
- Website: https://lxgicstudios.com

## Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAI_API_KEY environment variable.

```bash
npx ai-env-sync --help
```

## How It Works

Reads your .env files, identifies the variables, and uses GPT-4o-mini to generate helpful descriptions for each one. Sensitive values are replaced with placeholder text like "your_api_key_here".

## License

MIT. Free forever. Use it however you want.

Files in this skill

  • README.md353 B
  • SKILL.md1.9 KB
  • package-lock.json31 KB
  • package.json592 B
  • src/cli.ts895 B
  • src/index.ts1.2 KB
  • tsconfig.json264 B

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.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.