env-validator

Validate environment variables against schemas at application startup.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Techlemariam/IronForge --skill env-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-validator
Source: https://github.com/Techlemariam/IronForge/tree/main/.agent/skills/env-validator
Command: npx skills add https://github.com/Techlemariam/IronForge --skill env-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Validates required environment variables exist and match expected format to prevent runtime failures during startup, CI, and deployment.

Core Features & Use Cases

  • Validates presence of required variables against defined patterns
  • Supports optional variables for visibility without failing
  • Suitable for startup checks, CI pipelines, and pre-deployment validation

Quick Start

Run the validator to verify that all required environment variables exist and meet their defined formats.

Frequently Asked Questions about env-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate environment variables at application startup?

Validate environment variables at startup by checking required variables against a defined schema with pattern matching to enforce correct formats and prevent runtime failures before deployment.

Why validate environment variables in a CI pipeline before deployment?

Validate environment variables in a CI pipeline to catch missing or invalid values early, enforcing required patterns and returning a non-zero exit status to prevent failed deployments.

Can I check environment variables against regex patterns on Windows, Linux, and macOS?

Check environment variables against regex patterns on Windows, Linux, and macOS to ensure cross-platform consistency during startup and pre-deployment validation checks.

What is the best way to handle optional environment variables during startup validation?

Handle optional environment variables during startup validation by supporting them for visibility without failing the process, while strictly enforcing required variables with pattern checks.

How do environment variable schema checks prevent runtime failures?

Environment variable schema checks prevent runtime failures by verifying required variables exist and match expected formats at startup, reporting missing or invalid values before the application runs.