env-audit
Audits environment variable configuration to ensure required keys exist for specific deployment targets.
Install
mkdir -p .claude/skills/env-audit && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15340" && unzip -o skill.zip -d .claude/skills/env-audit && rm skill.zipInstalls to .claude/skills/env-audit
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Audit required environment variables across local, preview, and production before release.Key capabilities
- →Discover environment variable usage from code and config
- →Build a required/optional variable matrix
- →Validate local environment variable availability
- →Validate hosted environment checklist for preview and production
- →Validate authentication callback and canonical site URL alignment
How it works
The skill discovers environment variable usage, builds a required/optional matrix, and validates local and hosted environments. It checks for key presence, format, and alignment of callback URLs, reporting blockers or warnings.
Inputs & outputs
When to use env-audit
- →Auditing env vars before deployment
- →Troubleshooting integration failures
- →Creating a release checklist
About this skill
Env Audit
Validate environment configuration before deployment or release.
When to Use
- User is preparing deployment to Vercel.
- Auth, storage, or third-party integration failures are suspected.
- User wants a release checklist for env configuration.
Inputs
Collect from the prompt when available:
- Required integrations (for example Supabase, Cloudinary, Analytics).
- Target environments: local, preview, production.
- Whether to enforce strict blocking on missing values.
If details are missing, proceed with defaults:
- Validate local plus hosted deployment expectations.
- Treat auth and database keys as required blockers.
Operating Rules
- Validate key presence and expected format, never print secret values.
- Distinguish required vs optional env vars.
- Map each variable to where it is used in code.
- Report blockers before claiming release readiness.
Procedure
- Discover env usage from code and config.
- Build a required/optional variable matrix.
- Validate local env availability.
- Validate hosted env checklist for preview and production.
- Validate auth callback and canonical site URL alignment.
- Return pass/fail report with exact missing keys.
Default Required Variables (Next.js + Supabase + Cloudinary)
- NEXT_PUBLIC_SUPABASE_URL
- NEXT_PUBLIC_SUPABASE_ANON_KEY
- SUPABASE_SERVICE_ROLE_KEY
- NEXT_PUBLIC_SITE_URL
Default Optional Variables
- ADMIN_ALLOWLIST_EMAILS
- CLOUDINARY_CLOUD_NAME
- CLOUDINARY_API_KEY
- CLOUDINARY_API_SECRET
- NEXT_PUBLIC_GA_MEASUREMENT_ID
- NEXT_PUBLIC_ADSENSE_CLIENT
Decision Branches
- If required var missing: mark blocked and provide fix steps.
- If format invalid (for example non-http URL): mark blocked.
- If optional vars missing: mark warning, not blocker.
- If callback URLs mismatch env/site domain: mark blocked.
Completion Checks
A task is complete only when all are true:
- Required vars are present and format-valid.
- Environment matrix for local/preview/production is provided.
- Callback URL readiness is validated for auth flows.
- Final report includes blockers and remediation commands.
Output Format
- Start with overall status: ready or blocked.
- Provide a table-like list by environment and variable status.
- Separate blockers from warnings.
- Include only variable names, never secret values.
Example Prompts
- Run env-audit for local, preview, and production before Vercel deploy.
- Audit all required auth and storage env vars and tell me blockers.
- Validate release env readiness for Supabase Google OAuth callbacks.
When not to use it
- →When printing secret values
- →When the task does not involve environment variable auditing
- →When the application stack is not Next.js, Supabase, or Cloudinary
Limitations
- →Does not print secret values
- →Default required variables are specific to Next.js + Supabase + Cloudinary
- →Strict blocking on missing values can be enforced
How it compares
This skill systematically audits environment variables across different deployment stages, mapping usage to code and validating formats, providing a structured release readiness report unlike a manual check.
Compared to similar skills
env-audit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| env-audit (this skill) | 0 | 4mo | No flags | Intermediate |
| gh-actions-validator | 1 | 1mo | Review | Advanced |
| azure-infra-review | 0 | 4mo | No flags | Intermediate |
| secrets-manager | 1 | 7mo | Caution | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
gh-actions-validator
jeremylongshore
Validate use when validating GitHub Actions workflows for Google Cloud and Vertex AI deployments. Trigger with phrases like "validate github actions", "setup workload identity federation", "github actions security", "deploy agent with ci/cd", or "automate vertex ai deployment". Enforces Workload Identity Federation (WIF), validates OIDC permissions, ensures least privilege IAM, and implements security best practices.
azure-infra-review
aldelar
Reviews Bicep modules, azure.yaml, and infrastructure changes for the KB Agent project. Checks naming, RBAC, module wiring, and doc sync. Use when working on infra/ or reviewing infrastructure PRs.
secrets-manager
itsmostafa
AWS Secrets Manager for secure secret storage and rotation. Use when storing credentials, configuring automatic rotation, managing secret versions, retrieving secrets in applications, or integrating with RDS.
cloudflare-manager
qdhenry
Comprehensive Cloudflare account management for deploying Workers, KV Storage, R2, Pages, DNS, and Routes. Use when deploying cloudflare services, managing worker containers, configuring KV/R2 storage, or setting up DNS/routing. Requires CLOUDFLARE_API_KEY in .env and Bun runtime with dependencies installed.
railway-cli-management
CaptainCrouton89
Deploy, manage services, view logs, and configure Railway infrastructure. Use when deploying to Railway, managing environment variables, viewing deployment logs, scaling services, or managing volumes.
azure-functions
aj-geddes
Create serverless functions on Azure with triggers, bindings, authentication, and monitoring. Use for event-driven computing without managing infrastructure.