backend-migrations
创建安全的后端迁移
当迁移缺少回滚计划或兼容性检查时,数据库架构变更可能会破坏部署。此技能引导 Claude、Codex 和 Claude Code 执行更聚焦的迁移。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "backend-migrations" from https://skillstore.io/skills/devanb-backend-migrations.md and its manifest at https://skillstore.io/api/skills/devanb-backend-migrations/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“backend-migrations”。 向 invoices 添加一个可为空的 customer 引用,并包含回滚计划。
预期结果:
一个迁移计划,包含清晰的文件名、正向变更、回滚行为,以及旧版应用代码的兼容性说明。
正在使用“backend-migrations”。 审查一个重命名生产服务所用列的迁移。
预期结果:
一份风险审查,建议分阶段兼容、临时双写、回滚限制和部署顺序。
正在使用“backend-migrations”。 向高流量 activity 表添加索引。
预期结果:
一份面向生产的检查清单,涵盖索引创建策略、锁定风险、监控和回滚预期。
安全审计
安全The inline backticks on SKILL.md line 12 are markdown formatting, not shell execution. The parent-directory documentation link on line 28 is a confirmed concern because it points outside the packaged skill content.
能力复核项 (1)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
⚙️ 外部命令 (1)
📁 文件系统访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/devanb-backend-migrations/audits/10?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/devanb-backend-migrations?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/devanb-backend-migrations?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/devanb-backend-migrations/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/devanb-backend-migrations.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
DevanB. (2026). backend-migrations security audit report (audit version 10) [Author version unspecified]. Skillstore. https://skillstore.io/skills/devanb-backend-migrations/audits/10BibTeX 引用
@techreport{devanb-devanb-backend-migrations-2026,
author = {DevanB},
title = {backend-migrations security audit report (audit version 10)},
institution = {Skillstore},
year = {2026},
number = {10},
url = {https://skillstore.io/skills/devanb-backend-migrations/audits/10},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "backend-migrations security audit report (audit version 10)"
version: "unspecified"
type: report
authors:
- name: "DevanB"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/devanb-backend-migrations/audits/10"
identifiers:
- type: other
value: "skillstore:devanb-backend-migrations:audit:10"
description: "Skillstore immutable audit report identifier"
比较变体
2 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
规划新的架构变更
创建一个聚焦的迁移,包含清晰命名、可逆步骤和部署注意事项。
审查高风险迁移
检查现有迁移中的回滚缺口、大表索引风险和向后兼容性问题。
分离数据和架构工作
当架构变更和记录更新不应一起运行时,设计更安全的发布步骤。
试试这些提示
为此架构变更创建一个可逆的后端迁移:[describe the table, columns, and constraints]。
规划一个迁移,在大表上添加此索引:[table and columns]。包括部署风险和回滚步骤。
审查此迁移计划的可逆性、命名、向后兼容性和零停机问题:[paste summary]。
为此功能设计安全的迁移序列:[describe schema change, data migration, and application rollout]。
最佳实践
- 保持每个迁移聚焦于一个逻辑架构变更。
- 在将迁移视为完成之前,先编写回滚路径。
- 将大表索引和不兼容变更规划为分阶段部署。
避免
- 不要将大范围架构重构与无关的数据更新混在一起。
- 在不了解下游环境的情况下,不要编辑已部署的迁移。
- 不要假设列重命名对正在运行的应用代码是安全的。