Agent skill
setup-env-baselhussain-ai-keto-meal-plan-ge
Environment setup and validation - verify all required environment variables and API connections
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/setup-env-baselhussain-ai-keto-meal-plan-ge
SKILL.md
User Input
$ARGUMENTS
Options: check (validate only), create (create .env from example), empty (validate and report)
Task
Validate environment setup for the keto meal plan project and test all external API connections.
Steps
-
Parse Arguments:
- Empty or
check: Validate all environment variables and connections create: Create.envfiles from.env.exampletemplates
- Empty or
-
Check Required Environment Variables:
Backend (.env):
bashcd backend # Required variables ENV DATABASE_URL REDIS_URL OPENAI_API_KEY GEMINI_API_KEY PADDLE_API_KEY PADDLE_WEBHOOK_SECRET BLOB_READ_WRITE_TOKEN RESEND_API_KEY RESEND_FROM_EMAIL SENTRY_DSN JWT_SECRET APP_URLFrontend (.env.local):
bashcd frontend # Required variables NEXT_PUBLIC_API_URL NEXT_PUBLIC_PADDLE_VENDOR_ID NEXT_PUBLIC_PADDLE_ENVIRONMENT NEXT_PUBLIC_ENABLE_MID_QUIZ_AUTH -
Validate Each Variable:
- Check if variable exists
- Check if value is not empty
- Check format (URLs, keys, etc.)
-
Test API Connections (if
checkor empty):Database (Neon DB):
bashcd backend python -c "from src.lib.database import engine; engine.connect(); print('✅ Database connection successful')"Redis:
bashpython -c "from src.lib.redis_client import redis_client; redis_client.ping(); print('✅ Redis connection successful')"OpenAI API:
bashpython -c "import openai; openai.api_key='${OPENAI_API_KEY}'; openai.models.list(); print('✅ OpenAI API key valid')"Vercel Blob:
bash# Test blob upload curl -X PUT "https://blob.vercel-storage.com/test.txt" \ -H "authorization: Bearer ${BLOB_READ_WRITE_TOKEN}" \ -H "x-content-type: text/plain" \ -d "test" | grep -q "url" && echo "✅ Vercel Blob token valid"Resend:
bashcurl -X GET "https://api.resend.com/domains" \ -H "Authorization: Bearer ${RESEND_API_KEY}" | grep -q "object" && echo "✅ Resend API key valid" -
Generate Report:
✅ Environment Setup Report ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Backend Environment Variables: ✅ ENV: development ✅ DATABASE_URL: postgresql+asyncpg://... ✅ REDIS_URL: redis://localhost:6379/0 ❌ OPENAI_API_KEY: Not set ✅ GEMINI_API_KEY: AIza... ... Frontend Environment Variables: ✅ NEXT_PUBLIC_API_URL: http://localhost:8000/v1 ❌ NEXT_PUBLIC_PADDLE_VENDOR_ID: Not set ... API Connection Tests: ✅ Database (Neon DB): Connected ✅ Redis: Connected ❌ OpenAI API: Failed (invalid key) ✅ Vercel Blob: Connected ✅ Resend: Connected Missing Variables: 2 Failed Connections: 1 -
Recommendations:
- List missing variables with instructions to set them
- Suggest running
/setup-env createto create.envfiles - Provide links to service signup pages (Paddle, Vercel Blob, Resend, etc.)
Example Usage
/setup-env # Validate all environment variables and connections
/setup-env check # Same as above
/setup-env create # Create .env files from .env.example templates
Exit Criteria
- All required environment variables checked
- API connections tested (if not in create mode)
- Report generated with clear status
- Instructions provided for missing setup
Notes
- Sensitive Data: Never log full API keys or secrets
- Local Development: Use
.env.localfor frontend (not committed to git) - Production: All variables must be set in Vercel dashboard
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?