AgentSkillsCN

state-versioning

适用于思考如何对持久化应用状态进行版本控制,以确保向前兼容性,并在时间推移中实现安全演进时使用。

SKILL.md
--- frontmatter
name: state-versioning
description: Use when reasoning about versioning persisted application state to ensure forward compatibility and safe evolution over time.
  • Persisted state includes a version identifier
  • State loading must handle older versions gracefully
  • Breaking changes require explicit migration or fallback behavior
  • Corrupted or incompatible state must not crash the application
  • Defaults should be used when migration is not possible

Guidance:

  • Applies to layout persistence, user settings, and session state
  • Versioning strategy should be simple and explicit
  • Do not assume a specific migration framework unless specified in PROJECT or PRD