Deploy Skill
Step 1: Identify the project
Determine which project to deploy from cwd or user's message. If ambiguous, ask.
Step 2: Identify the platform
Common deployment targets:
Vercel (frontend)
# Auto-deploy via git push
git push origin main # or preview/production branch
# Manual deploy
vercel --token $VERCEL_TOKEN
Render (backend)
# Trigger deploy via API
curl -s -X POST "https://api.render.com/v1/services/<SERVICE_ID>/deploys" \
-H "Authorization: Bearer $RENDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"clearCache":"clear"}'
Docker (self-hosted)
# Rebuild and restart container
docker compose build && docker compose up -d
# Or just restart
docker restart <container_name>
Supabase Edge Functions
supabase functions deploy <function-name>
Pre-deploy checklist
- Run
git diffto review what's being deployed - Run build locally:
npm run buildor equivalent - Run tests if they exist
- Check for uncommitted
.envchanges (never commit secrets)
Post-deploy verification
- Check the live URL loads correctly
- For API backends: hit the health endpoint (
/api/health) - Check deploy logs for errors
- Verify key functionality works end-to-end
Project-specific notes
Check CLAUDE.md in the project root for project-specific deploy steps, branch strategies, and gotchas.