prisma-next-migrations
Manage Prisma Next Database Migrations
Database changes can fail, drift, or lose data when migration steps are unclear. This skill guides Prisma Next planning, transforms, application, verification, and recovery.
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "prisma-next-migrations" from https://skillstore.io/skills/prisma-prisma-next-migrations.md and its manifest at https://skillstore.io/api/skills/prisma-prisma-next-migrations/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“prisma-next-migrations”。 I added an optional field on my local Postgres database. Which workflow should I use?
预期结果:
- Use the local database update path because the database has no shared migration history.
- Preview the operations before applying them.
- Switch to a formal migration before sharing or deploying the change.
正在使用“prisma-next-migrations”。 My generated migration contains a placeholder for a required column backfill.
预期结果:
- Open the generated migration source and replace every placeholder with a query-plan closure.
- Use a rowset check that identifies remaining invalid rows.
- Self-emit the migration package, inspect it, and apply it only after review.
正在使用“prisma-next-migrations”。 Migration application reports a hash mismatch.
预期结果:
The migration artifacts may be stale after source edits. Inspect the package, self-emit it, verify the changed files, then retry the migration.
安全审计
高风险The Ruby backtick, path traversal, and reconnaissance alerts are scanner false positives caused by Markdown formatting, fixed imports, and documentation links. Database URL usage is confirmed because commands receive sensitive connection credentials. The skill also enables unprompted database mutation and execution of editable migration source, with no prompt injection or exfiltration intent found.
已确认安全问题 (2)
能力复核项 (20)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
⚙️ 外部命令 (50)
📁 文件系统访问 (5)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/prisma-prisma-next-migrations/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/prisma-prisma-next-migrations?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/prisma-prisma-next-migrations?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/prisma-prisma-next-migrations/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/prisma-prisma-next-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 引用
prisma. (2026). prisma-next-migrations security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/prisma-prisma-next-migrations/audits/1BibTeX 引用
@techreport{prisma-prisma-prisma-next-migrations-2026,
author = {prisma},
title = {prisma-next-migrations security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/prisma-prisma-next-migrations/audits/1},
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: "prisma-next-migrations security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "prisma"
date-released: "2026-08-17"
url: "https://skillstore.io/skills/prisma-prisma-next-migrations/audits/1"
identifiers:
- type: other
value: "skillstore:prisma-prisma-next-migrations:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Prepare a Local Schema Change
Choose a fast local update or create a reviewable migration package after changing a contract.
Review a Production Migration
Inspect planned operations, data transforms, and destructive changes before deployment.
Recover a Failed Deployment
Diagnose drift, marker mismatches, hash mismatches, or partial migration state.
试试这些提示
I changed my Prisma Next contract for [change]. Should I use db update or migration plan? Explain the safest sequence.
Help me plan a [Postgres or MongoDB] migration for [schema change]. Include the required backfill checks, transform steps, and verification.
Diagnose [error code or message] in my Prisma Next migration. Explain likely causes, evidence to inspect, and recovery steps that preserve data.
Create a production rollout plan for [migration]. Address graph state, destructive operations, transaction behavior, backups, verification, rollback, and target database differences.
最佳实践
- Preview and inspect every migration before applying it to a shared database.
- Use one end-contract reference for every data transform query plan.
- Back up important data and confirm the database target before destructive operations.
避免
- Do not use direct database updates against shared or production environments.
- Do not edit canonical migration artifacts instead of the generated migration source.
- Do not run editable migration files from an untrusted repository.