Lint .env files for duplicated keys and unsafe formatting with dotenv-linter
Check dotenv files for duplicated keys, malformed values, and formatting mistakes before they break local runs or secret handoffs.
Prerequisites
The dotenv-linter CLI or binary and a repository containing dotenv files to check.
Installation
Choose whichever fits your setup:
- Copy this skill folder into your local skills directory.
- Clone the repo and symlink or copy the skill into your agent workspace.
- Add the repo as a git submodule if you manage shared skills centrally.
- Install it through your internal provisioning or packaging workflow.
- Download the folder directly from GitHub and place it in your skills collection.
Install command or upstream instructions:
<p>Install a release binary or build with <code>cargo install dotenv-linter</code>, then run <code>dotenv-linter</code> against the repository root or specific <code>.env</code> files. Use the documented check, fix, and diff flows to review problems before committing changes.</p>