AgentSkillsCN

rollback-strategy

为设计文档提供回滚策略制定指南的技能。 适用于数据库迁移、部署策略以及功能发布方案的设计。 触发条件:“回滚策略”、“迁移安全”、“部署计划”、“重大变更”

SKILL.md
--- frontmatter
name: rollback-strategy
description: |
  Rollback strategy design guide for inclusion in design documents.
  Used for DB migrations, deployment strategies, and feature release design.
  Triggers: "rollback strategy", "migration safety", "deployment plan", "breaking change"

Rollback Strategy Design

Goal

Include a safe rollback plan in every design.

Instructions

Rollback Design Checklist

  1. Is the DB migration backward-compatible?
  2. Can the feature be disabled via feature flag?
  3. Can Blue-Green / Canary deployment strategy be applied?
  4. Data recovery scenario (backup point, restore procedure)
  5. Dependent service rollback order

Rollback Approach by Risk Level

  • Low: Feature flag OFF
  • Medium: Redeploy previous version + DB forward-compatible
  • High: Full rollback + data restore + dependent service synchronized rollback

Constraints

  • Designs that cannot be rolled back must always include a prior warning
  • Migrations with potential data loss must always include a backup strategy

References

See references/rollback-patterns.md for additional rollback patterns