Skip to content
Development
Command

/env-validate

Validate environment configuration against the template and runtime requirements.

From plugin
rohitg00-claude-code-toolkit
2.8k199 skills138 agents199 commands
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

Command definition

env-validate.md

Validate environment configuration against the template and runtime requirements.

Steps

1. Read `.env.example` to get the expected variable list. 2. Read `.env` (or the active environment) to get actual values. 3. Check for missing variables:

  • Required variables without values.
  • Variables in `.env.example` not present in `.env`.

4. Check for extra variables:

  • Variables in `.env` not documented in `.env.example`.

5. Validate variable formats:

  • URLs: Valid URL format with expected scheme.
  • Ports: Numeric, in valid range (1-65535).
  • Booleans: `true`/`false`, not `yes`/`no` or `1`/`0`.
  • Emails: Valid email format.

6. Check for common issues:

  • Trailing whitespace in values.
  • Unquoted values with special characters.
  • Duplicate variable definitions.

7. Verify connectivity for database URLs and API endpoints if `--live` flag is set.

Format

Environment Validation: <environment>

Missing (required):
  - DATABASE_URL: No value set

Missing (optional):
  - LOG_LEVEL: Using default "info"

Format issues:
  - PORT: "abc" is not a valid port number

Extra (undocumented):
  - LEGACY_MODE: Not in .env.example

Status: <valid/invalid>

Rules

  • Fail on any missing required variable.
  • Warn on undocumented variables (may be leftover from old code).
  • Do not print actual secret values in validation output.
  • Support multiple environment files (.env.development, .env.production).
  • Exit with non-zero code if validation fails (for CI integration).
Read more
@rohitg00
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

2.8k40 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.8k
Star history of rohitg00/awesome-claude-code-toolkit on GitHub, a chart by star-history.com

Other commands on rohitg00-claude-code-toolkit.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command