env-consistency

Check environment variable consistency across documentation, code, and deployment configurations.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/Oiranca/copilot-agents-skills --skill env-consistency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-consistency
Source: https://github.com/Oiranca/copilot-agents-skills/tree/main/skills/env-consistency
Command: npx skills add https://github.com/Oiranca/copilot-agents-skills --skill env-consistency

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the common issue of inconsistencies between how environment variables are documented, used in code, and configured for deployment, helping to prevent runtime errors and deployment failures.

Core Features & Use Cases

  • Documentation vs. Code Check: Verifies that documented environment variables are actually referenced in the codebase.
  • Code vs. Deployment Check: Identifies environment variables used in code or documented but not present in deployment configurations.
  • Use Case: Before deploying a new feature, use this skill to confirm that all necessary environment variables are correctly documented, used in the application logic, and included in your netlify.toml or docker-compose.yml files.

Quick Start

Run the env-consistency skill to check for any discrepancies in environment variable documentation, code usage, and deployment configurations.

Frequently Asked Questions about env-consistency

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

FAQPage Schema
How do I check environment variable consistency across documentation, source code, and deployment configurations?

To check environment variable consistency, you need to scan documentation files, environment templates, and deployment configurations. This process identifies undocumented, unreferenced, and deployment-visibility-gapped variables to prevent runtime errors and deployment failures.

Why does my deployment fail due to missing environment variables in docker-compose or netlify.toml?

Deployment failures from missing environment variables occur when code or documentation references variables not present in deployment configurations. Checking environment variable consistency across these files identifies deployment-visibility-gapped variables before they cause runtime errors.

What is the best way to find undocumented environment variables used in my codebase?

The best way to find undocumented environment variables is to perform a documentation versus code check. Comparing documentation files against source code usage reveals variables that are actively referenced in the application logic but completely missing from the docs.

Can I detect environment variables that are documented but unreferenced in the source code?

Yes, you can detect documented but unreferenced environment variables by verifying documentation against codebase usage. This documentation versus code check identifies obsolete variables that remain in environment templates but are no longer used in the application.

Does this environment variable consistency check require reading specific configuration files?

Yes, checking environment variable consistency requires reading from documentation files, environment templates, and deployment configuration files. It scans these specific inputs to identify discrepancies between how variables are documented, used in code, and configured for deployment.