AgentSkillsCN

Pre-Deploy Checklist

在正式上线前,全面通过各项质量门禁,确保部署就绪。

SKILL.md
--- frontmatter
name: Pre-Deploy Checklist
description: Verify deployment readiness across all quality gates before production deploy
category: deployment
version: 1.0.0
triggers:
  - deploy-pipeline-start
  - release-branch-creation
  - production-deploy
globs: "**/.github/workflows/**,**/deploy/**"

Pre-Deploy Checklist Skill

Verify deployment readiness across all quality gates before production deploy.

Trigger Conditions

  • Deploy pipeline initiated
  • Release branch created
  • User invokes with "pre-deploy check" or "deployment readiness"

Input Contract

  • Required: Artifact/build to verify
  • Required: Target environment
  • Optional: Feature flags to enable, migration dependencies

Output Contract

  • GO/NO-GO decision with gate status
  • Per-gate status (pass/fail/warning)
  • Blocker details with remediation steps

Tool Permissions

  • Read: CI results, test reports, coverage reports, migration status
  • Write: Deploy readiness reports
  • Execute: Smoke tests, verification commands

Execution Steps

  1. Verify all CI gates pass (tests, SAST, coverage, perf baseline)
  2. Check database migrations are backward-compatible
  3. Verify artifact integrity (signature matches tested artifact)
  4. Run pre-deploy smoke tests in target environment
  5. Verify dependency readiness (downstream service compatibility)
  6. Check rollback procedure is documented and tested
  7. Issue GO/NO-GO decision

Success Criteria

  • All quality gates green
  • Migration backward-compatibility verified
  • Artifact integrity confirmed
  • Rollback procedure documented
  • Smoke tests pass

Escalation Rules

  • Escalate if any gate is RED (blocking)
  • Escalate if rollback procedure is untested
  • Escalate if deployment is in a contractual change window

Example Invocations

Input: "Pre-deploy check for payment-service v2.4.0 to production"

Output: GO decision. Gates: Tests ✓ (100% pass), Coverage ✓ (82%, above 80% threshold), SAST ✓ (0 Critical, 0 High), Perf ✓ (p99 within 3% of baseline), Migration ✓ (backward-compatible ADD COLUMN), Smoke ✓ (health, /api/v1/payments responds 200). Rollback: kubectl rollout undo deployment/payment-service.