Guarding Deployments
When to use this skill
- Before pushing to production or staging branches.
- When the user asks "is it safe to deploy?".
- To verify environment variables and secrets are present.
Workflow
- Preparation
- Verification
- Execution
Instructions
Linting & Tests
Ensure the project is in a clean state:
# Run linting
npm run lint
# Run unit tests
npm test
Environment Variable Check
Use the provided script to ensure required keys are set:
./scripts/check-env.sh .env.production DB_URL API_KEY
Resources