Environment Variable Diagnostics
Created by CodeCraft LLCDiagnose and fix environment variable and configuration problems
Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.
by Jace (@jamick)v1.5.2 · updated 2026-12-01Report copyright infringement
Description
Diagnose and fix environment variable and configuration problems - .env load order in Next.js, Vite and dotenv, validating env at startup with Zod or a small validator so the app fails fast, values that are wrong rather than missing (boolean and number strings, whitespace, unquoted spaces, multiline private keys), auditing which variables the code uses, "works locally, fails in CI/production" across Vercel, Docker, Compose and Kubernetes, public prefixes (NEXT_PUBLIC_, VITE_, EXPO_PUBLIC_) and what leaks to the browser, Docker ARG vs ENV and secrets, and keeping .env.example authoritative. Use whenever a value is undefined or wrong, the app works locally but not in CI, Docker or production, the user edits .env files, asks why a feature flag is always on, adds a new environment variable, or exposes config to client code.
Included with all-access
$9.00 one-time, permanent access
or
Buy 2 or more together for up to 40% off · View cart
You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms
Official and free skills are included with the all-access subscription
Changelog
Subscribers also see which files changed in each version.
v1.5.2Dec 1, 2026Latest
Added
- README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.5.1Nov 30, 2026
Changed
- Deep-dive section made on-demand (standard statement, open/skip triggers, checklist last); contents lines added to
env-files-and-validation.md,misconfig-and-ci.md. - Version assumptions: dotenv 16-18 (npm, November 2026).
v1.5.0Nov 20, 2026
Added
- Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.4.0Nov 6, 2026
Changed
- Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.3.0Nov 4, 2026
Changed
- Review report rule at the top of the skill, loaded before any review: one entry per finding as
Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.2.0Nov 1, 2026
Added
- A broad
.env*ignore rule (ascreate-next-appwrites) also hides.env.example; add!.env.example. Reference note and review checklist item.
v1.1.0Oct 18, 2026
Added
- Public-variable rules for SvelteKit (
$envmodules), Astro and Nuxt, and a note that Bun (and Node with--env-file) load.envfiles without dotenv.
Changed
- Create React App marked as deprecated in the prefix table.
v1.0.0Oct 16, 2026
Added
- First release.