AgentSkillsCN

deploy-check

部署前检查清单:构建、迁移、健康检查;简要制定回滚方案。在部署前,或当用户询问“部署前该检查什么?”“如何制定回滚方案?”时,可选用此功能。

SKILL.md
--- frontmatter
name: deploy-check
description: Pre-deploy checklist: build, migrations, healthcheck; brief rollback plan. Use before deploying or when asked "what to check before deploy" or "rollback plan".
compatibility: TikTok-AI-Agent. Node, Prisma. Railway, Procfile, railway.toml.

Deploy Check

Run a pre-deploy checklist and outline a simple rollback plan.

Input

  • Target (e.g. "Railway", "staging") or branch. Descriptive only; no secrets.

Steps

  1. Buildnpm run build. Ensure it succeeds.
  2. Migrationsnpm run db:generate and npm run db:migrate (or db:migrate:dev in dev). Confirm no pending migrations that would break deploy.
  3. Healthcheck – After deploy, GET /api/health should return { status: "ok", database: { ok: true } }.
  4. Rollback plan – Short list: revert to previous deployment, re-run migrations if rolled back schema, restore DATABASE_URL / env if changed. Do not run rollback automatically; only describe steps.

Output

  • List of checks (build, migrations, health) and pass/fail.
  • Brief "Rollback plan" section: what to revert and in what order.

References