← 返回列表
全部 Skill›测试与安全 Testing & Security›database-change

database-change

作者 @dinhtri6905 · 语言 vie
Lập kế hoạch hoặc implement persistence change an toàn với migration, constraint, transaction và test. Dùng cho database task đã phê duyệt; không dùng để sửa production data thủ công.
测试与安全 Testing & Security测试通用待翻译
最近源活动
—
检测 SKILL.md 语言
vie
星标 ★
0
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Purpose

Thiết kế và thực hiện persistence change an toàn, bảo toàn data integrity, compatibility và khả năng verify.

When to Use

  • Khi planning hoặc approved implementation task có schema, migration, query, constraint, index hay transaction impact.

When NOT to Use

  • Không dùng cho application behavior không có persistence impact hoặc production data operation thủ công.

Preconditions

  • Planning mode cần Specification APPROVED.
  • Implementation mode cần Planning APPROVED, current task đã qua Task Verification và approval riêng cho destructive change nếu có.

Required Inputs

  • Requirement, schema/migration hiện có, data volume/constraint đã biết, approved Plan/task và test definition tương ứng với phase.

Mandatory Reading

  • AGENTS.md, docs/ai/RULES_INDEX.md, Database/Security/Testing rules và SDD artifact liên quan.

Workflow

  1. Trace change về Requirement và inspect schema/migration mechanism hiện có.
  2. Phân tích impact tới data integrity, backward compatibility, query và deployment.
  3. Thiết kế schema change cùng PK/FK/constraint/index cần thiết.
  4. Xác định migration/backfill/rollback hoặc recovery strategy.
  5. Đánh giá transaction, concurrency và application compatibility.
  6. Trong implementation mode, tạo migration bằng mechanism của project và chỉ sửa đúng task.
  7. Thêm test cho constraint, migration, query và behavior bị ảnh hưởng.
  8. Chạy verification được repository định nghĩa và ghi evidence.

Required Outputs

  • Impact analysis; schema/migration design hoặc implementation; compatibility/rollback plan; test và verification evidence.

Verification

  • Kiểm tra migration trên environment an toàn, data integrity, query plan/performance khi áp dụng và backward compatibility.
  • Destructive effect phải rõ ràng, được phê duyệt và có recovery strategy.

Gate

  • Planning work tuân theo Planning = APPROVED.
  • Implementation work chỉ đạt Implementation = PASS sau check của implementer và vẫn cần independent sdd-verify.

Prohibited Actions

  • Không mutate production database thủ công, âm thầm chạy destructive migration, sửa applied migration khi chưa được phép hoặc tự tạo application requirement.

Reporting Format

  • Phase/scope; current schema; impact; design/change; migration/recovery; transaction/query impact; tests/results; gate; remaining risk.
评论
Ddinhtri6905
dinhtri6905
dinhtri6905/E-commerce
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@dinhtri6905
所属大类测试与安全 Testing & Security / 测试
国内可用性通用
最近源活动—
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。