Skill: Deployment
Description
Handles deployment to hosting provider (Vercel, Docker, AWS, etc.).
When to Use
- •User triggers /deploy workflow
- •After merging to main branch
- •Setting up initial deployment
Instructions
Pre-Deploy Checklist
- •All tests pass (
npm test) - •Lint clean (
npm run lint) - •Type check (
npx tsc --noEmit) - •Environment variables set in hosting provider
- •No secrets in codebase
- •Health check endpoint exists
Vercel Deployment
bash
# Link project (first time) vercel link # Preview deploy vercel # Production deploy vercel --prod
Environment Variables
- •Compare
.env.examplewith hosting provider settings - •Flag any missing variables
- •Never deploy with missing required env vars
Post-Deploy Verification
- •Visit live URL — confirm it loads
- •Check key user flows (login, core feature)
- •Monitor error logs for 5 minutes
- •Update .ai/memory/current-state.md with deploy info
- •Log deployment to .ai/logbook/
Rollback
If deployment fails:
- •Revert to previous deployment (Vercel: instant rollback)
- •Log failure reason to .ai/logbook/alerts.json
- •Notify user with root cause analysis