env-alias-audit
Audit .env alias groups for missing required config, conflicting values, and canonical-key drift before deploy.
Why use this skill?
Prevent deployment crashes by auditing .env alias groups for drift, missing keys, and conflicting values with this OpenClaw skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/daniellummis/env-alias-auditWhat This Skill Does
The env-alias-audit skill is a robust diagnostic tool designed to prevent runtime configuration failures by validating environment variable aliases. In complex containerized or cloud-native applications, it is common to have multiple versions of an environment key (e.g., DB_URL, DATABASE_URL, and DB_CONNECTION). This skill parses your .env files and reconciles these alias groups against a canonical definition. It performs deep analysis to flag missing mandatory configurations, identify dangerous value conflicts (where two aliases in the same group hold different values), and detect instances where only aliases are defined while the canonical key is missing. By catching these issues pre-deployment, the skill significantly reduces "configuration drift" and unexpected environment crashes.
Installation
To install this skill, use the ClawHub CLI tool integrated into your OpenClaw environment:
clawhub install openclaw/skills/skills/daniellummis/env-alias-audit
Ensure you have the necessary read permissions for your project directory, as the skill needs to scan .env files for analysis.
Use Cases
- CI/CD Pipelines: Integrate this as a pre-deployment step to ensure production environment variables are consistent across legacy and new naming conventions.
- Refactoring Projects: When migrating legacy systems to modern infrastructure, use this tool to map old aliases to new canonical keys without breaking legacy integrations.
- Cross-Team Collaboration: Enforce standard naming conventions across diverse microservices by requiring specific groups to resolve successfully before the application starts.
- Troubleshooting: Use
AUDIT_MODE=reportto quickly visualize where environment variable definitions have diverged across different staging environments.
Example Prompts
- "Audit my current .env file for conflicting alias values in the DATABASE_URL and STRIPE_API_KEY groups and report the findings."
- "Run a strict env alias check using my custom spec file at ./config/env-spec.txt and block the deployment if anything is missing."
- "Analyze the production environment file .env.production to see if any canonical keys have drifted from their alias values."
Tips & Limitations
- Strict vs. Report Mode: Use
strictmode for automated pipeline gates, but leveragereportmode during local development to gain insight without failing your build process. - Custom Specs: Always define your alias mappings in a separate, version-controlled file (
ALIAS_SPEC_FILE) to ensure consistency across team members. - Security: Be mindful that this skill reads your
.envfiles. Ensure your local environment is secure, and avoid uploading these files to shared platforms. - Limitation: The skill does not automatically fix conflicts; it identifies them for manual remediation to ensure you retain control over your infrastructure credentials.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-daniellummis-env-alias-audit": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
github-actions-recovery-latency-audit
Measure GitHub Actions failure recovery latency and unresolved incident age by workflow group.
github-actions-cache-hardening-audit
Audit GitHub Actions workflow cache usage for poisoning, keying, and secret-path risks.
render-env-guard
Preflight-check Render service environment variables before deploys; catches missing keys and placeholder/template values that commonly break production rollouts.
github-actions-trigger-health-audit
Audit GitHub Actions run health by trigger event and workflow so flaky or noisy automation sources are easy to prioritize.
github-actions-run-gap-audit
Detect GitHub Actions workflow groups that stopped running on their normal cadence using median run intervals and current inactivity gap.