SuperAPI AI 工具集

cleanup-after-migrations

通用与其它

查看项目

更新于 10-15 23:45

技能介绍

用途:在迁移或类似变更完成后,清理遗留代码、schema、shim、双写、兼容别名、功能开关和文档,避免留下未跟踪的残留物。

主要能力与规则:先阅读 docs/contributing/cleanup-after-migrations.md。若遗留物可随本次变更安全删除,就立即处理;若必须等待后续迁移、第二次部署、观察期或指标门槛、集群应用或另一次切换,则开 GitHub issue 跟踪,runbook 或 TODO 不能替代 issue。开 issue 前先搜索已有的 Cleanup: issue。

issue 标题格式:Cleanup: <what to remove> after <gate>,标签 improvement,并从引入该遗留物的 PR 链接过去。issue 正文包含:Leftover(要删除或停止提供的内容)、Why it waits(门槛)、Ready when(可证伪的标准,不能只是日历日期)、How to verify(命令、查询或部署证据)、Introduced by(引入遗留物的 PR)。

创建命令:gh issue create --title "Cleanup: … after …" --label improvement --body-file -;或 kody:@kentcdodds/github/request POST /repos/kentcdodds/kody/issues。观察期或日历门槛还需按 ship-pr 安排定时唤醒(execute + workflows.create({ runAt, idempotencyKey }))。清理落地后关闭该 issue。

限制:资料未提供更多实现细节、平台支持范围或收费信息。