Deployment workflow

From rnavarych/alpha-engineer · View interactive version

Deployment workflow is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Set up deployment workflows for Vercel, Netlify, Railway, Render, and Docker. Covers preview environments per PR, database migrations in CI (expand-contract pattern), environment variable validation, health check endpoints, and rollback procedures. Use when configuring deployment pipelines, managing

How to use this skill

Skill file

Deployment Workflow

When to use

Core principles

  1. Platform matches project shape — Vercel for edge-first Next.js, Railway/Render for fullstack with databases, Fly.io for global edge
  2. Migrations before deploy, never after — run prisma migrate deploy as a CI step preceding the deploy step, never during
  3. Expand-contract for zero downtime — add column → backfill → update code → drop old column across three separate deploys
  4. Validate env vars at startup — use @t3-oss/env-nextjs or zod to crash fast with a clear message rather than fail silently at runtime
  5. Health check is not optional — every deployed service needs /api/health returning 200/503; load balancers depend on it

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.