← Back to Skills Marketplace
Prisma Migrate Guard
by
Daniel Lummis
· GitHub ↗
· v1.0.0
275
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install prisma-migrate-guard
Description
Preflight Prisma migration state before deploy; fails fast on drift, failed migrations, missing DB URLs, or unapplied migration files.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install prisma-migrate-guard - After installation, invoke the skill by name or use
/prisma-migrate-guard - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: migration preflight guard for CI/deploy gating
Metadata
Frequently Asked Questions
What is Prisma Migrate Guard?
Preflight Prisma migration state before deploy; fails fast on drift, failed migrations, missing DB URLs, or unapplied migration files. It is an AI Agent Skill for Claude Code / OpenClaw, with 275 downloads so far.
How do I install Prisma Migrate Guard?
Run "/install prisma-migrate-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Prisma Migrate Guard free?
Yes, Prisma Migrate Guard is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Prisma Migrate Guard support?
Prisma Migrate Guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Prisma Migrate Guard?
It is built and maintained by Daniel Lummis (@daniellummis); the current version is v1.0.0.
More Skills