mathews-tom/armory/env-validator
Claude Code and agent skill by mathews-tom/armory
- community
Checking that the SKILL.md file is still in the repository.
Validates .env files against code references and manifests for missing vars, type mismatches, insecure defaults, and unused entries. Triggers on: "validate env file", "check environment variables", "missing env vars", "check .env", "dotenv validation". NOT for secret scanning, use repo-sentinel.
Install
npx vskill@latest install mathews-tom/armory/env-validatorSKILL.md
Env Validator
Validates environment variable configurations by cross-referencing .env files against project requirements. Catches missing variables, type errors, insecure defaults, and orphaned entries before they cause runtime failures.
Reference Files
| File | Contents | Load When | |
|---|---|---|---|
references/validation-rules.md | Built-in validation rules and severity definitions | Always |
Prerequisites
- A
.envfile (or equivalent) in the project - Optionally:
.env.example,docker-compose.yml, or deployment manifests for cross-referencing
Workflow
Phase 1: Discovery
Locate environment configuration sources in the project:
- Primary file: Find
.envin the project root. If absent, check for.env.local,.env.development,.env.production - Schema file: Find
.env.exampleor.env.template— this defines the expected variables - Code references: Grep for
os.environ,process.env,env::var,os.Getenvpatterns to find variables referenced in code - Deployment manifests: Check
docker-compose.yml,Dockerfile,k8s/manifests for${VAR}orENV VARpatterns
Report what was found before proceeding.
Phase 2: Schema Extraction
Build the expected variable schema from discovered sources:
For each variable found across all sources, record:
| Field | Source | |
|---|---|---|
| Name | Variable name (e.g., DATABASE_URL) | |
| Required | Present in code references or marked required in example | |
| Type hint | Inferred from usage (URL, integer, boolean, string, path) | |
| Default | Value in .env.example if present | |
| Used in | List of files that reference this variable |
Phase 3: Validation
Run these checks against the primary .env file:
- Missing required variables (CRITICAL)
- Variable referenced in code but absent from
.env - Variable in
.env.examplewithout a default but absent from.env
- Type mismatches (HIGH)
PORT=abcwhen code doesint(os.environ["PORT"])DEBUG=yeswhen code expects boolean (true/false)- URL variables without valid URL format
- Insecure defaults (HIGH)
SECRET_KEY=changeme,PASSWORD=password,API_KEY=xxxDEBUG=trueorDEBUG=1in production-targeted files- Empty values for security-critical variables
- Unreferenced variables (MEDIUM)
- Variables in
.envnot referenced anywhere in code or manifests - May indicate stale configuration
- Format issues (LOW)
- Lines without
KEY=VALUEformat - Trailing whitespace in values
- Inconsistent quoting (mixing single/double/no quotes)
- Duplicate variable definitions (last wins, but likely a mistake)
See references/validation-rules.md for the complete rule catalog.
Phase 4: Report
Produce a structured validation report:
Error Handling
| Error | Resolution | |
|---|---|---|
| No .env file found | Report absence; check for alternative env sources | |
| No .env.example or schema | Validate based on code references only | |
| Binary or very large .env | Skip; report as unsupported format | |
| No code references found | Validate format and security only; skip completeness |
Limitations
- Cannot validate runtime-injected variables (from vault, AWS SSM, etc.)
- Type inference is heuristic — may misclassify complex values
- Does not check variable values against external services (e.g., valid API key format)
- Production vs. development distinction requires file naming conventions
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/env-validator/SKILL.md
Popularity
- Repository stars
- 251
- Repository forks
- 37
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mathews-tom/armory/env-validator)