env-gate
Skill0 starsChanged 9 days agoMITView on GitHub
Prevents production crashes from environment variable drift. Compares a deployed .env against .env.example to find missing required keys, present-but-empty required keys, undeclared extra keys, and placeholder values left in the deployed file. Use before every deploy, in CI, or when onboarding a new environment — the #1 backend incident shape is "new key in the example never made it to prod".
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- trac3r00/agent-skillsword for word, first seen Nov 23, 2026
Other versions1 project uses a version of this.
Word for word · 1
- trac3r00/agent-skills★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- 3d-designSkill
- anti-bsSkill
- api-testerSkill
- apple-homeSkill
- apple-suiteSkill
- apple-tvSkill
- apps-handoffSkill
- appshotSkill
- astra-initSkill
- browser-asideSkill
- changelog-genSkill
- ci-test-rebuildSkill
- claim-auditSkill
- claude-designSkill
- cleanup-worktreesSkill
- code-reviewSkill
- comment-checkerSkill
- context-budgetSkill
- create-skillsSkill
- cron-auditSkill
- cyber-bypassSkill
- dftSkill
- diff-reviewSkill
- discord-messengerSkill
- doc-readerSkill
- ext-scaffoldSkill
- fddSkill
- finderSkill
- finish-prSkill
- game-filmSkill
- gate-graphSkill
- graph-toolsSkill
- herdrSkill
- image-genSkill
- init-readmeSkill
- init-rulesSkill
- iphone-mirroringSkill
- json-diffSkill
- kakao-messengerSkill
- karpathy-promptSkill
- loeSkill
- log-analyzerSkill
- macos-settingsSkill
- max-buildSkill
- mofficeSkill
- net-probeSkill
- notionSkill
- obsidian-vaultSkill
- omo-runnerSkill
- open-loopsSkill
- optimize-omo-configSkill
- phone-facetimeSkill
- portfolio-auditSkill
- preflightSkill
- project-sessionsSkill
- prompt-builderSkill
- pro-reviewSkill
- proxmox-veSkill
- The first 60 shown.
The file
Files
Env Gate
The most common backend incident is boring: a new key lands in .env.example,
the deploy goes out without it, and the crash surfaces in production logs.
This gate runs in CI or pre-deploy and fails the build first.
Commands
python3 scripts/env_gate.py .env --example .env.example
python3 scripts/env_gate.py .env.production --example .env.example --json
python3 scripts/env_gate.py .env --example .env.example \
--required-prefix DATABASE --required-prefix REDIS
python3 scripts/env_gate.py .env.local --example .env.example --ignore-extraSemantics
| Condition | Meaning | Exit |
missing | key declared in example, absent in deployed | 1 |
empty_required | key present in deployed but with no value | 1 |
placeholder | deployed value still <change-me>-style | 1 |
extra | deployed key the example no longer declares | 1 (suppress with --ignore-extra) |
| clean | all checks pass | 0 |
--required-prefix(repeatable): scope missing/empty checks to keys starting with the prefix (e.g. onlyDATABASE_*must be complete; optional debug keys may drift).- Placeholder values (
<your-key>,${VAR},changeme,xxx) in the deployed file are flagged — a deployed placeholder is worse than a missing key because it fails silently at runtime.
Pairs with
secret-gate — env-gate asks "is the config complete?", secret-gate asks
"did a credential leak into the wrong place?". Run both pre-deploy.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

