Agent skill
deploy-baselhussain-ai-keto-meal-plan-ge
Deploy frontend and backend to Vercel with migration and health verification
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/deploy-baselhussain-ai-keto-meal-plan-ge
SKILL.md
User Input
$ARGUMENTS
Options: production, staging, preview, or empty (defaults to staging)
Task
Deploy the keto meal plan application to Vercel with proper migrations and health checks.
Steps
-
Parse Arguments:
production: Deploy to production environmentstaging: Deploy to staging environment (default)preview: Create preview deployment
-
Pre-Deployment Checks:
bash# Ensure we're on correct branch git branch --show-current # Check for uncommitted changes git status --porcelain # Run tests cd backend && pytest tests/unit/ -v # Build frontend locally to catch errors cd frontend && npm run build -
Push to Git (if needed):
bashgit add . git commit -m "Deploy: [production|staging|preview]" git push origin $(git branch --show-current) -
Deploy Frontend to Vercel:
bashcd frontend # Production deployment vercel --prod # Or staging/preview vercel -
Deploy Backend to Render:
bash# Backend deploys automatically via GitHub integration # Or trigger manual deploy via Render dashboard # Or use Render CLI: cd backend # If using Render CLI render deploy --service backend-service # Check deploy status render services list -
Run Database Migrations:
bash# Set DATABASE_URL to production/staging database export DATABASE_URL="[production-database-url]" cd backend alembic upgrade head # Verify migration alembic current -
Verify Deployment Health:
bash# Frontend health (Vercel) curl https://keto-meal-plan.vercel.app/ # Backend health (Render) curl https://keto-meal-plan-api.onrender.com/health # Database connection curl https://keto-meal-plan-api.onrender.com/internal/db-health # Redis connection curl https://keto-meal-plan-api.onrender.com/internal/redis-health -
Test Critical Endpoints:
bash# Quiz submission endpoint curl -X POST https://keto-meal-plan-api.onrender.com/v1/quiz/submit \ -H "Content-Type: application/json" \ -d '{"email":"[email protected]","step_1":"male"}' # Webhook endpoint (should return 401 without signature) curl -X POST https://keto-meal-plan-api.onrender.com/webhooks/paddle -
Configure Environment Variables (if first deploy):
Backend (Render Dashboard):
- 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_URL
Frontend (Vercel Dashboard):
bashvercel env add NEXT_PUBLIC_API_URL production vercel env add NEXT_PUBLIC_PADDLE_VENDOR_ID production vercel env add NEXT_PUBLIC_PADDLE_ENVIRONMENT production -
Output Summary:
✅ Deployment Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Environment: production Branch: main Frontend (Vercel): ✅ Deployed to: https://keto-meal-plan.vercel.app ✅ Build successful ✅ Health check: PASS Backend (Render): ✅ Deployed to: https://keto-meal-plan-api.onrender.com ✅ Migrations applied: 5 pending → all applied ✅ Health check: PASS ✅ Database: Connected ✅ Redis: Connected Post-Deployment: ⚠️ Update Paddle webhook URL to: https://keto-meal-plan-api.onrender.com/webhooks/paddle ⚠️ Update NEXT_PUBLIC_API_URL in Vercel to: https://keto-meal-plan-api.onrender.com/v1 ⚠️ Test full payment flow in production (test mode): 1. Complete quiz 2. Test payment with Paddle test card 3. Verify email delivery 4. Check PDF download
Example Usage
/deploy # Deploy to staging
/deploy staging # Deploy to staging
/deploy production # Deploy to production
/deploy preview # Create preview deployment
Exit Criteria
- Both frontend and backend deployed successfully
- Database migrations applied
- Health checks pass
- Critical endpoints respond correctly
- Deployment URLs logged
Post-Deployment Checklist
- Update Paddle webhook URL in Paddle dashboard
- Test quiz submission in production
- Test payment flow with Paddle test card
- Verify email delivery
- Check Sentry for errors
- Monitor Vercel Analytics for traffic
- Verify cron jobs scheduled correctly
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?