- Home
- Skills
- DevOps & Cloud
- .env Schema Validation and .env.example Generator
.env Schema Validation and .env.example Generator
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
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:
- Created a blueprint: I generated
schema.draft.jsonbased on your.envfile. I have identified which items appear to be secrets, numbers, or text. - Validated your file: I ran a check against this new blueprint.
- Issue E001: The key
DATABASE_URLis missing from the file but marked as required in the blueprint. - Issue E005: The key
PORTon line 12 has a text value, but the blueprint expects a number.
- Issue E001: The key
- Generated a template: I created a
.env.examplefile. It lists all the necessary keys likeAPI_KEYandDEBUG_MODEwith empty values or safe placeholders likeFAKE-PASSWORD.
Current Status
| File | Status | Notes |
|---|---|---|
.env | 2 Issues found | See line numbers above for fixes. |
.env.example | Created | Ready to share with your team. |
schema.json | Drafted | Please 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
- Tell your AI agent which configuration file to look at.
- The agent creates a blueprint that defines what each setting should look like.
- You can ask the agent to check your real files against this blueprint to find mistakes.
- The agent generates a safe template file with instructions for other users.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
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.