Catalogue / deploy
deploy
MITSignedEngineering OS deployment playbook — ship apps and services to Vercel, AWS, Azure, Cloudflare, Firebase, Netlify, Railway or containers: choosing a platform, environment variables and secrets, CI/CD with GitHub Actions, infrastructure as code (CDK, Bicep, Terraform), database migrations during deplo…--- name: deploy description: "Engineering OS deployment playbook — ship apps and services to Vercel, AWS, Azure, Cloudflare, Firebase, Netlify, Railway or containers: choosing a platform, environment variables and secrets, CI/CD with GitHub Actions, infrastructure as code (CDK, Bicep, Terraform), database migrations during deploys, custom domains, preview environments, rollbacks, and post-deploy verification. Use whenever the user wants to deploy, host, ship, go live, set up CI/CD, move to AWS or Azure, fix a failing deploy, or asks where to host something, even if they never say 'deploy'." ---
/eos:deploy — ship it safely
Deploys fail in predictable ways: a missing env var, a migration that ran in the wrong order, no way back when it breaks. This playbook makes every deploy boring: chosen deliberately, checked before, verified after, and reversible.
Deploys and infra changes are outward-facing. The bash guard asks before --prod, terraform apply, kubectl apply and friends, and you should confirm the target with the user before the first production deploy of a project.
1. Pick the platform (only if it isn't already decided)
Check first: vercel.json, .vercel/, wrangler.toml, firebase.json, netlify.toml, railway.json, cdk.json, azure.yaml, *.bicep, *.tf, Dockerfile, .github/workflows/. If the project already deploys somewhere, stay there unless asked.
| Situation | Default | Skill | |---|---|---| | Next.js / React / static frontend, fast previews | Vercel | deploy-to-vercel; vercel-optimize for cost/perf; vercel-cli-with-tokens for CI | | Edge APIs, global low latency, cheap | Cloudflare Workers | workers-best-practices | | Full control, enterprise, existing AWS account | AWS | aws-cdk (infrastructure as code), aws-deployment (CodePipeline/CodeBuild CI/CD); aws-serverless, aws-containers, aws-iam, aws-amplify on demand; architect-for-startups for a first design | | Microsoft shop, Entra ID, existing Azure subscription | Azure | azure-prepare → azure-validate → azure-deploy (Azure Developer CLI / azd workflow); python-appservice-deploy for code-only Python deploys; azure-diagnostics when it breaks | | Simple container or long-running service, minimal ops | Railway / Render / Fly | use-railway | | Firebase / mobile backend | Firebase | firebase-hosting-basics | | Static site with forms/functions | Netlify | netlify-deploy | | Multi-cloud or existing Terraform | Terraform | terraform-style-guide |
On-demand skills come with eos enable deploy. Building the image itself: multi-stage-dockerfile.
2. Pre-deploy checklist
- [ ] Build passes locally with production settings (
NODE_ENV=production,next build, etc.). - [ ] Env vars: every variable the app reads exists in the target environment (diff
.env.exampleagainst the platform's settings). Secrets live in the platform's secret store, never in the repo or the workflow file. - [ ] Database migrations: backwards-compatible with the code currently running (expand → deploy → contract). Decide whether they run before the deploy (release step) or after; never in two places.
- [ ] Health check endpoint exists and is wired to the platform.
- [ ] Rollback path known: previous deployment promote (Vercel), previous task definition / CDK stack version (AWS), deployment slot swap (Azure),
wrangler rollback(Cloudflare). - [ ] Preview first: deploy to a preview/staging environment and smoke-test it before production.
- [ ] Domains and TLS: DNS records and certificates planned; expect propagation time.
- [ ] Cost: rough monthly estimate for anything that scales with traffic (AWS/Azure especially).
3. CI/CD
Use GitHub Actions unless the project has another CI (github-actions-templates). Minimum pipeline: install → lint/typecheck → test → build → deploy preview on PRs → deploy production on main with a manual approval for the first few releases. Use OIDC federation (AWS/Azure) or scoped tokens, never long-lived admin keys. Pin action versions.
4. Deploy
Run the platform's CLI or pipeline. Watch the logs while it rolls out rather than walking away.
5. Verify (required before saying "deployed")
- Open the live URL and exercise the main path once (use
agent-browseror theplaywrightplugin for a screenshot). - Hit the health endpoint and one real API route.
- Check logs and error tracking for new errors in the first few minutes.
- Confirm the version/commit that's live matches what you meant to ship.
- Report: URL, commit, what was verified, and the rollback command.
If something is broken, roll back first, then debug (superpowers:systematic-debugging, azure-diagnostics, AWS logs).
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 4.8 kB | 90380f2c4cea |
| SKILVAULT_SOURCE.json | 1.1 kB | 68b8e9d382d0 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | 0a3ca737ca76 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | e17ad63d26a8 | 29 Nov 2026 |
Locking a skill to one version needs Pro.