Env check

From berkcangumusisik/claude-code-practices · View interactive version

Env check is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Validates current environment variables against .env.example requirements

How to use this skill

Skill file

Environment Variable Check

  1. Read requirements:
cat .env.example 2>/dev/null || cat .env.template 2>/dev/null
  1. Check which are set in the current environment:
while IFS='=' read -r key _; do
  [[ "$key" =~ ^#|^$ ]] && continue
  if [[ -z "${!key}" ]]; then
    echo "MISSING: $key"
  else
    echo "  SET: $key"
  fi
done < .env.example
  1. Additional checks:
  1. Output:
Environment Check:
  ✅  DATABASE_URL
  ✅  JWT_SECRET
  ❌  STRIPE_SECRET_KEY  ← MISSING (required for payments)
  ⚠️  REDIS_URL          ← Missing (optional, caching disabled)

Result: 1 required var missing - app will fail to start.
  1. Suggest how to obtain missing variables.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.