← 返回 Skills 市场
Prisma Migrate Guard
作者
Daniel Lummis
· GitHub ↗
· v1.0.0
275
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install prisma-migrate-guard
功能描述
Preflight Prisma migration state before deploy; fails fast on drift, failed migrations, missing DB URLs, or unapplied migration files.
安全使用建议
This skill appears coherent and suitable for CI preflight checks. Before installing: 1) Confirm your CI environment has the intended DATABASE_URL (or set PRISMA_MIGRATE_DB_URL_ENV) so the guard points to the correct DB (avoid accidentally checking a production DB unless intended). 2) Note the script will run `npx prisma migrate status` — if Prisma isn't installed locally, npx will fetch the package from the npm registry at runtime; ensure your environment policy allows that. 3) Be aware the script prints Prisma output to stdout/stderr (may include diagnostics), so avoid running it in contexts where you don't want that information logged. If those conditions are acceptable, the skill is consistent with its stated purpose.
功能分析
Type: OpenClaw Skill
Name: prisma-migrate-guard
Version: 1.0.0
The skill is a utility for CI/CD pipelines to verify Prisma migration health using 'prisma migrate status'. The script (scripts/check-prisma-migrate.sh) performs legitimate safety checks, such as ensuring the database URL is not a local or placeholder value, and correctly parses command output to fail on drift or failed migrations. No indicators of data exfiltration, malicious execution, or prompt injection were found.
能力评估
Purpose & Capability
Name/description match the observed behavior. Declared required binaries (bash, node, npx) are justified by the script (it invokes npx prisma). No unrelated credentials, config paths, or extra binaries are requested.
Instruction Scope
SKILL.md simply instructs running the included bash script. The script only reads the Prisma schema file, inspects a DB URL env var (default DATABASE_URL) and runs `npx prisma migrate status`. This will connect to the target database (expected for the purpose). It prints Prisma output and inspects it for failure/drift/unapplied migrations. Note: printing the status output may reveal diagnostic text from Prisma/DB in CI logs.
Install Mechanism
There is no install spec (instruction-only), so nothing is written at install time. However, at runtime the script uses `npx --yes prisma` — if Prisma is not installed locally, npx may fetch and execute the Prisma package from the npm registry. That is expected for using npx but is a runtime download risk to be aware of.
Credentials
The guard purposely depends on a DB connection environment variable (default DATABASE_URL) and optional overrides documented in SKILL.md. Asking for access to this secret is proportionate to the task, but be aware the script reads that env var and uses it to connect to the DB; ensure the CI/agent environment is the correct (non-sensitive) target and that you accept Prisma connecting to the DB.
Persistence & Privilege
The skill does not request persistent presence (always is false), does not modify other skills or system-wide config, and does not write persistent credentials or enable itself. Autonomous invocation is allowed by default but not combined with other concerning factors.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install prisma-migrate-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/prisma-migrate-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: migration preflight guard for CI/deploy gating
元数据
常见问题
Prisma Migrate Guard 是什么?
Preflight Prisma migration state before deploy; fails fast on drift, failed migrations, missing DB URLs, or unapplied migration files. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 275 次。
如何安装 Prisma Migrate Guard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install prisma-migrate-guard」即可一键安装,无需额外配置。
Prisma Migrate Guard 是免费的吗?
是的,Prisma Migrate Guard 完全免费(开源免费),可自由下载、安装和使用。
Prisma Migrate Guard 支持哪些平台?
Prisma Migrate Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Prisma Migrate Guard?
由 Daniel Lummis(@daniellummis)开发并维护,当前版本 v1.0.0。
推荐 Skills