doc-condenser
**DEPRECATED** — Modern Claude models condense and summarize technical documentation natively with comparable quality. The output…
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,
Claude Code
$ npx -y skills add Mathews-Tom/armory --skill env-validator --agent claude-code
Codex
$ npx skills add Mathews-Tom/armory --skill env-validator -a codex -y
Cursor
$ npx skills add Mathews-Tom/armory --skill env-validator -a cursor -y
Gemini CLI
$ npx skills add Mathews-Tom/armory --skill env-validator -a gemini-cli -y
GitHub Copilot
$ npx skills add Mathews-Tom/armory --skill env-validator -a github-copilot -y
OpenCode
$ npx skills add Mathews-Tom/armory --skill env-validator -a opencode -y
Windsurf
$ npx skills add Mathews-Tom/armory --skill env-validator -a windsurf -y
name: env-validator description: '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.' metadata: version: 1.0.1 category: operations tags: [env, configuration, validation, dotenv, deployment] difficulty: intermediate phase: build
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.
| File | Contents | Load When | | ------------------------------------ | ------------------------------------------------- | ---------------------- | | `references/validation-rules.md` | Built-in validation rules and severity definitions | Always |
Locate environment configuration sources in the project:
1. **Primary file:** Find `.env` in the project root. If absent, check for `.env.local`, `.env.development`, `.env.production` 2. **Schema file:** Find `.env.example` or `.env.template` — this defines the expected variables 3. **Code references:** Grep for `os.environ`, `process.env`, `env::var`, `os.Getenv` patterns to find variables referenced in code 4. **Deployment manifests:** Check `docker-compose.yml`, `Dockerfile`, `k8s/` manifests for `${VAR}` or `ENV VAR` patterns
Report what was found before proceeding.
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 |
Run these checks against the primary `.env` file:
1. **Missing required variables** (CRITICAL)
2. **Type mismatches** (HIGH)
3. **Insecure defaults** (HIGH)
4. **Unreferenced variables** (MEDIUM)
5. **Format issues** (LOW)
See `references/validation-rules.md` for the complete rule catalog.
Produce a structured validation report:
# Environment Validation Report **File:** `.env` **Schema:** `.env.example` + code references **Verdict:** PASS | FAIL ## Summary | Severity | Count | |----------|-------| | CRITICAL | N | | HIGH | N | | MEDIUM | N | | LOW | N | ## CRITICAL ### [ENV-001] Missing required variable: DATABASE_URL - **Referenced in:** `src/db.py:12`, `docker-compose.yml:8` - **Expected type:** URL (postgresql://...) - **Fix:** Add `DATABASE_URL=postgresql://user:pass@localhost:5432/dbname` to `.env` ## HIGH ... ## Unreferenced Variables | Variable | In .env | In Code | In Manifests | Status | |-----------------|---------|---------|--------------|--------------| | LEGACY_API_KEY | Yes | No | No | Unreferenced | ## Recommendations 1. [Highest priority fix] 2. [Second fix]
| 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 |
Curated, production-grade skills, agents, hooks, rules, commands, utilities, and presets for AI coding agents. No magic, no demos — battle-tested workflows built for developers who use AI seriously.
**DEPRECATED** — Modern Claude models condense and summarize technical documentation natively with comparable quality. The output…
DEPRECATED: The Opus 4.7 migration scanner is retired from the active skill catalog. Retained for archival reference only; not…
**DEPRECATED** — Modern Claude models produce accurate, well-explained regex patterns with edge-case test suites natively,…
**DEPRECATED** — Opus 4.7 uses adaptive thinking (optional at each step) and Sonnet 4.6 handles structured chain-of-thought…
Generates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked…
Build AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.