config-validator

Validate environment variables with type-safe schemas at application startup.

1|Updated Mar 17, 2025
One-click install
npx skills add https://github.com/MaciWP/CV_Astro --skill config-validator-maciwp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: config-validator
Source: https://github.com/MaciWP/CV_Astro/tree/main/.claude/skills/config-validator
Command: npx skills add https://github.com/MaciWP/CV_Astro --skill config-validator-maciwp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Pydantic, Zod, python-decouple, envalid, and includes references (resource) components.

What problem does it solve?

This Skill ensures your application's environment variables and configuration are always valid and type-safe, preventing runtime errors and ensuring consistent behavior across environments.

Core Features & Use Cases

  • Type-Safe Validation: Define schemas for environment variables with types, defaults, and constraints using libraries like Pydantic or Zod.
  • Fail-Fast Startup: Validate configuration at application startup, exiting immediately if any critical variables are missing or invalid.
  • Use Case: Set up a Pydantic Settings class for a Python FastAPI application to validate DATABASE_URL (required), REDIS_URL (required), and DEBUG (boolean, default false) from a .env file.

Quick Start

Generate a Pydantic Settings class to validate DATABASE_URL (required), REDIS_URL (required), and DEBUG (boolean, default false) from a .env file.