validation-detection-rotation

env-secrets-manager reference

Content Preview
# env-secrets-manager reference

## Required Variable Validation Script

```bash
#!/bin/bash
# scripts/validate-env.sh
# Run at app startup or in CI before deploy
# Exit 1 if any required var is missing or empty

set -euo pipefail

MISSING=()
WARNINGS=()

# --- Define required vars by environment ---
ALWAYS_REQUIRED=(
  APP_SECRET
  APP_URL
  DATABASE_URL
  AUTH_JWT_SECRET
  AUTH_REFRESH_SECRET
)

PROD_REQUIRED=(
  STRIPE_SECRET_KEY
  STRIPE_WEBHOOK_SECRET
  SENTRY_DSN
)

# --- Check always-requ
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/validation-detection-rotation.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering/env-secrets-manager/references/validation-detection-rotation.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering/env-secrets-manager/references/validation-detection-rotation.md

Related Skills