data-contract-migrations

仓库创建 2025年12月9日最近提交 9 天前SkillHot 收录 20 天前
▸ 精选理由

减少变更引发的数据中断与跨服务兼容问题风险。

▸ 风险提示

提案或操作可能影响生产数据,需谨慎演练与备份。

这个 Skill 做什么

规划与验证数据契约、模式变更、迁移、回滚与回填策略,确保兼容性。

把数据库 schema、事件 payload、持久化文档或分析表的变更,做成可执行的迁移、回滚和回填方案,包含兼容窗口与租户隔离策略。当你要改字段、改 API-to-DB 映射或处理多租户边界、回填历史数据时就用,能降低读写破坏风险。特别强调端到端兼容性验证和明确的回退流程,而不是只给出一个 SQL diff。

▸ 展开 SKILL.md 英文原文

Design and verify data contracts, schema changes, migrations, rollbacks, backfills, compatibility windows, tenant isolation, and API-to-database field mapping. Use when changing database schema, event payloads, persisted documents, analytics tables, multi-tenant data boundaries, or any user-visible data contract where silent fallback or undeclared fields would be dangerous.

数据与抓取数据迁移兼容性回滚策略通用
239
Stars
23
Forks
40
仓库内 Skill
+7
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/majiayu000/spellbook/main/skills/data-contract-migrations/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/majiayu000/spellbook/main/skills/data-contract-migrations/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Data Contract Migrations

## Purpose

Use this skill when data shape changes can break reads, writes, reports, tenants, or integrations. The goal is an explicit compatibility and migration plan, not just a SQL diff.

## Preflight

Gather these facts before proposing changes:

1. Current schema, models, serializers, API contracts, and persisted samples.
2. Writers and readers of each field.
3. Migration tool and rollback support.
4. Data volume, tenant boundaries, and backfill cost.
5. Required zero-downtime or maintenance-window constraints.
6. Existing tests or fixtures that prove compatibility.

If the current data does not contain a field, treat it as absent. Do not invent fallback fiel
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有