Environment Variable Manager (env-manager)
Scans, validates and syncs .env files, then generates safe .env.example templates and schemas.
Dev & CodingIntermediate★ 859⑂ 94AI score 9/10Last updated: Sep 20, 2026
What it does
- Scans every
.env*file in the project, collecting only variable names, source file and empty/filled state — real values stay masked. - Cross-checks code references (
process.env.X,os.environ['X'],os.getenv('X')) to surface defined-but-unused and used-but-undefined variables. - Validates URL formats, port ranges and booleans, and flags hardcoded API keys, tokens and passwords with file:line.
- Generates
.env.example,.env.schema.json, Docker Composeenv_fileblocks and CI/CD secrets checklists. - Includes framework gotchas (Next.js
NEXT_PUBLIC_, ViteVITE_, CRAREACT_APP_, Docker ARG vs ENV, monorepo loading).
Who it's for
- Web/backend developers juggling dev, staging and production configs.
- Monorepo teams that need shared env vars kept in sync.
- Anyone auditing a codebase for leaked or hardcoded secrets before committing.
Examples
- "Scan all .env files and tell me what's missing or unused" → structured analysis report.
- "Generate a .env.example from my current config" → annotated template with no real values.
- "Find hardcoded tokens and suggest how to move them to env vars" → file:line list plus migration steps.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/laolaoshiren/claude-code-skills-zh/HEAD/skills/env-manager/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/env-manager folder from the GitHub repo laolaoshiren/claude-code-skills-zh into my ~/.claude/skills/env-manager/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/laolaoshiren/claude-code-skills-zh.git && mkdir -p ~/.claude/skills && cp -r claude-code-skills-zh/skills/env-manager ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/laolaoshiren/claude-code-skills-zh.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r claude-code-skills-zh/skills/env-manager ~/.claude/skills/ - Run
claudeinside your project and ask something like "audit my environment variables" or "generate a .env.example". - Before running, confirm
.envis listed in.gitignoreso nothing sensitive is committed.
View source on GitHub ↗License: MIT