config-validator

Community

Validate environment variables and config, fail fast.

AuthorMaciWP
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

PydanticZodpython-decoupleenvalid

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: config-validator
Download link: https://github.com/MaciWP/CV_Astro/archive/main.zip#config-validator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository