- Home
- Skills
- Agents & Orchestration
- Environment Contract Drift Fixer
More screenshots
Works with the AI tools you already use
Environment Contract Drift Fixer
Fix environment variable contract drift in a repo using Cursor.
$8.99
Environment Contract Drift Fixer
Example session with this skill installed
Audit my repo for env var drift. I renamed STRIPE_SECRET to STRIPE_SECRET_KEY but I think the Docker config and README are still using the old name. Fix the docs and add a check.
- Read your context and instructions
- Compiled the environment contract drift
1. Environment Contract Decision
Decision: ENV CONTRACT DRIFT FOUND
Found legacy STRIPE_SECRET in docker-compose.yml and README.md, while src/config.ts expects STRIPE_SECRET_KEY.
4. Drift Findings
| Area | Finding | Risk |
|---|---|---|
| Stripe | STRIPE_SECRET vs STRIPE_SECRET_KEY | Runtime failure in Docker |
| Docs | README mismatch | Onboarding confusion |
6. Safe Patch Summary
- Updated
docker-compose.ymlplaceholders. - Aligned
README.mdsetup instructions. - Created
scripts/check-env-drift.mjsfor CI.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Environment variables often drift between local development, Docker configs, CI workflows, and deployment documentation. This causes "works on my machine" failures, broken handoffs, and production outages when renamed or missing variables go unnoticed.
What it does
- Audits the entire repository to map environment variable usage across code, config loaders, schemas, and documentation.
- Identifies missing, unused, renamed, legacy, or ambiguous variables.
- Proposes a canonical environment contract to resolve naming conflicts.
- Generates safe patches for
.env.example, READMEs, and Docker files using only placeholders. - Adds guardrails like startup validation and CI drift checks to prevent future inconsistencies.
Frameworks & tools
Works with any stack including Node.js, Express, Prisma, Next.js, Docker, GitHub Actions, and platforms like Vercel or Render.
Why this beats prompting it yourself
Manual auditing is error-prone and often misses variables hidden in CI YAMLs or deployment notes. This skill enforces a structured workflow that creates a source register, ensuring no variable is overlooked while strictly protecting you from accidental secret exposure in logs or docs.
Use cases
- Standardize environment variable names before a major client handoff.
- Fix deployment failures caused by inconsistent naming between code and hosting providers.
- Clean up legacy variables after a refactor or platform migration.
- Add automated checks to ensure
.env.examplenever falls out of sync with the code.
Known limitations
Cannot access live hosting dashboards, cloud secret stores, or production logs. It does not handle real secret rotation or validate the values of secrets themselves.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 1 month ago
- Passed all security checks, Safe to install