# env-config-audit

> Audit a project directory for dotenv configuration hygiene — .env files not covered by .gitignore rules, placeholder or weak values, duplicate keys, .env.example/.env parity drift, and env files sitting in src/ or public/ folders. Reports key names only — env values are never emitted. Use when the u

env-config-audit is a paid 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: $15 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/env-config-audit
- Tags: env-file, configuration, dotenv, secrets-management, devsecops, gitignore, security, pre-commit

## About this skill

Audit the dotenv hygiene of a project directory **the user owns or is authorized to inspect**, using the bundled `scripts/audit.js`, and turn the JSON report into a concrete fix list.

- Only scan paths the user supplied or confirms they are authorized to inspect. If authorization is unclear, ask before running anything.
- The scanner is static: it reads `.env*` and `.gitignore` files and checks configuration hygiene. It never executes code and never follows symlinks. It skips `.git/` and `node_modules/` — vendored env files are out of the repo owner's control.
- This is **not** a secret-pattern scanner — it does not look for leaked credential values (that is what `secret-leak-scan` is for). It checks the *hygiene around* env files: ignore coverage, placeholders, duplicates, parity.
- Never print, recover, or reuse an env value. Findings report only key names, files, and lines — keep it that way when presenting results.
- The `.gitignore` check is a heuristic: it evaluates `.gitignore` files inside the scanned tree only (nested ones included), not `.git/info/exclude`, `core.excludesFile`, or ignores above the scan root. A `fail` means "not covered by any rule found here" — verify before claiming a real exposure.
- Do not overclaim. Zero findings means these checks passed — it does not prove the tree has no env problems.

Requires Node 18 or later. The script is bundled with this skill and has zero dependencies:

- Stdout is the JSON report (safe to pipe to a file); diagnostics go to stderr.
- Exit codes: `0` no findings, `1` findings present, `2` usage/read error.

## Requires

- Git

## 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 skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

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

Audit a project directory for dotenv configuration hygiene — .env files not covered by .gitignore rules, placeholder or weak values, duplicate keys, .env.example/.env parity drift, and env files sitting in src/ or public/ folders. Reports key names only — env values are never emitted. Use when the u

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

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?

Connect your AI agent to Agensi through MCP, then ask it to use env-config-audit 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.
