.env Schema Validation and .env.example Generator

    by José Miguel Gómez

    1

    Validate .env files against a JSON schema, draft a schema from an existing file, and keep a documented .env.example in sync. Reports key names only, never values. Offline scripts, templates and 41 tests.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Creates a master blueprint from your existing configuration files to define required settings
    • Validates your private files against the blueprint to catch missing keys or formatting errors
    • Generates a safe example file for teammates that describes each setting without showing your secrets
    • Detects when your example file and your blueprint get out of sync as the project grows
    • Provides ready-to-use recipes for checking configuration during the automated build process
    • Identifies specific error codes and line numbers for quick fixes without exposing private data

    Who it's for

    Software founders and project leads

    Make sure every team member and server has the right settings without leaking passwords.

    Try asking: “Check if my .env file matches the project schema and tell me what is missing.”

    Developers building secure apps

    Automatically find missing variables or wrong formats before they break your app in production.

    Try asking: “Create a .env.example file from my current configuration so others know what to set up.”

    DevOps and Release Engineers

    Prevent broken deployments by catching configuration errors in your build pipeline.

    Try asking: “Run a drift check between our schema and the example environment file.”

    .env Schema Validation and .env.example Generator

    Example session with this skill installed

    I need to make sure my .env file is correct. Can you draft a schema from it and then check for any errors? I also need a .env.example file for the rest of the team.

    • Read your context and instructions
    • Compiled the env schema validation

    I will help you secure and document your configuration. I have analyzed your files and performed the following steps:

    1. Created a blueprint: I generated schema.draft.json based on your .env file. I have identified which items appear to be secrets, numbers, or text.
    2. Validated your file: I ran a check against this new blueprint.
      • Issue E001: The key DATABASE_URL is missing from the file but marked as required in the blueprint.
      • Issue E005: The key PORT on line 12 has a text value, but the blueprint expects a number.
    3. Generated a template: I created a .env.example file. It lists all the necessary keys like API_KEY and DEBUG_MODE with empty values or safe placeholders like FAKE-PASSWORD.

    Current Status

    FileStatusNotes
    .env2 Issues foundSee line numbers above for fixes.
    .env.exampleCreatedReady to share with your team.
    schema.jsonDraftedPlease review if PORT should strictly be a number.

    Would you like me to show you how to add descriptions for each setting in the example file?

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Setting up a new project or server often breaks because a secret variable is missing or typed wrong. This skill helps your AI agent manage those hidden configuration files safely. It looks at your settings to create a master blueprint, then checks your actual files against it to find errors.

    It is built for privacy. Your AI agent will never see or repeat your actual passwords or keys. Instead, it only looks at the names of the settings and their format. It can draft a template for new team members to use, so they know exactly what to fill in without you having to hand over your own private keys.

    How it works

    1. Tell your AI agent which configuration file to look at.
    2. The agent creates a blueprint that defines what each setting should look like.
    3. You can ask the agent to check your real files against this blueprint to find mistakes.
    4. The agent generates a safe template file with instructions for other users.
    5. Use the provided recipes to make these checks happen automatically whenever code is updated.

    What you get: A documented template and a report of any missing or incorrect settings in your configuration files.

    It does not support complex variables that reference other variables. It only handles standard text files up to 10,000 lines.

    Built with Python 3 scripts that use standard libraries for JSON and Regex validation. It includes schema_from_env.py for inference, dotenv_schema.py for validation, and check_example.py for drift detection. It follows a strict no-echo policy for values, only processing keys and metadata to prevent secret leakage into logs or LLM context. Supports custom regex patterns and basic data types (string, integer, boolean) via a custom JSON schema format defined in the references folder.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill helps you find missing or incorrectly typed settings in your configuration files before they cause errors. It also automatically builds a template for your team to use so they know which settings to fill in without seeing your private passwords.

    You do not need any special accounts. You only need the configuration files you want to check and a computer with Python 3 to run the scripts.

    The skill gives you a blueprint of your settings, a report on any errors found, and a safe template file. It can also provide automated recipes for checking your work every time you update your code.

    It cannot handle very large files over 10,000 lines or complex settings that pull data from other variables. It also will not automatically know your specific rules for things like number ranges or lists unless you review and update the blueprint it drafts.

    It is built to never read, print, or repeat your actual passwords or secret keys. It only looks at the names of the settings and their format to make sure they are correct, keeping your sensitive data private.

    You can start by asking your agent to look at a specific configuration file and draft a blueprint from it. From there, you can ask the agent to validate your files against that blueprint or create a documented example for your team.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.