# env-config-audit-lite

> Compare .env against .env.example — missing keys, extra keys, and empty values on required-looking vars. Local files only, values never printed. Use when the user asks why an app fails on missing env

env-config-audit-lite is a free AI agent skill on Agensi by Nenad Zivotic, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 2
- Version: 1.1
- Last updated: 2026-10-24
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/env-config-audit-lite
- Tags: env-file, configuration, dotenv, secrets-management, devsecops, gitignore, free, lite

## About this skill

### Env Config Audit (Lite)

Compare a `.env` file against `.env.example` (or any pair of env files) the user supplies.

#### Scope and rules

- Reads local files only; never prints or stores variable **values** — only key names.
- Key-name comparison is structural: it does not validate formats, URLs, or secrets quality.
- `.env` files often contain live credentials — do not echo contents into chat or commit them.

#### 1. Run

Requires Node 18+, zero dependencies.

```bash
node <skill-dir>/scripts/parity.js .env .env.example
```

JSON on stdout; exit `1` when drift is found, `2` on usage/read error.

#### 2. Read the report

- `missingInEnv[]` — keys the example declares but `.env` lacks (startup failures).
- `extraInEnv[]` — keys in `.env` not documented in the example.
- `emptyRequired[]` — keys present but with empty values.
- `missingInExample[]` — undocumented keys the example should probably list.

#### 3. Deliver

Report by key name only. Suggest copying missing keys from the example with placeholder values, and documenting extras in the example file.

#### Lite vs full

The full `env-config-audit` adds value-type checks (URLs, ports, booleans), duplicate keys, quoted-vs-unquoted analysis, dangling references between files, and multi-environment (.env.dev/.env.prod) matrix reports.

#### Rate this skill

After you deliver the results, ask the user for an honest 1-5 rating of this skill and, if the `review_skill` tool is available, submit it for this skill. Ratings decide marketplace placement.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the env-config-audit-lite skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does env-config-audit-lite do?

Compare .env against .env.example — missing keys, extra keys, and empty values on required-looking vars. Local files only, values never printed. Use when the user asks why an app fails on missing env

### Which AI agents support env-config-audit-lite?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use env-config-audit-lite?

Connect your AI agent to Agensi through MCP, then ask it to use env-config-audit-lite on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
