Repository navigation
feat(prisma-postgres-setup): trigger on deploying or sharing an app with no hosted database - #42
Merged
Conversation
…ith no hosted database The skill triggered on "I need a database" but not when a user is about to deploy, host, publish or share an app that has no hosted database. Its description now covers that moment, and the decision table gains a row: offer `npx create-db@latest`, set the connection string as DATABASE_URL on the host, and give the user the claim URL and deletion time before the app goes live; on a Prisma 8 project deploying to Prisma Compute, the module declares the database instead. Version 2.4.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
create-db keeps an unclaimed database for 72 hours, up from 24. The skill's decision table and create-db guidance say 72 hours. Version 2.4.1. Merge after the create-db CLI release with the 72-hour lifetime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
gregory-boch-prisma
marked this pull request as ready for review
November 25, 2026 06:50
AmanVarshney01
approved these changes
Nov 26, 2026
gregory-boch-prisma
added a commit
to prisma/prisma-cli
that referenced
this pull request
Nov 26, 2026
The `prisma-platform-core-concepts` skill describes `create-db` for agents. It said an unclaimed database is deleted after 24 hours; once prisma/create-db#92 and #93 ship, it is 72 hours. ## Changes - `skills/prisma-platform-core-concepts/SKILL.md`: the create-db sentence says an unclaimed database is deleted after 72 hours. ## Ship order Unclaimed create-db databases move from 24 to 72 hours across several repositories. Merge in this order: 1. **prisma/create-db#92, workers.** Merge, then confirm the create-db worker deploy actually landed: Workers Builds deploys from `main` have failed before without anyone noticing. A quick check: a create request with a 48-hour TTL succeeds instead of returning 400. 2. **prisma/create-db#93, CLI 1.4.0.** Release to npm only after step 1. Released earlier, `--ttl` above 24h gets a 400 from the old worker, and the CLI prints a deletion time 48 hours later than the real one. 3. **Copy, after the release:** prisma/web#8928, prisma/web#8926, prisma/web#8927, prisma/skills#42, #406, prisma/codex-plugin#2. Older CLIs keep printing a 24-hour deletion time after step 1, while the database lives 72 hours. That understates the lifetime; nothing breaks. ## Checks - One-line Markdown change in a skill file. - `scripts/check-skill-packaging.mjs` runs `pnpm pack` with the full prepack build, which needs a complete install, so it was not run locally; CI covers it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
prisma-postgres-setupgets an app a Prisma Postgres database. It triggered when the user asked for a database, but not when the user was about to deploy, host or share an app that has no hosted database yet, which is when an app first needs one that keeps running.Changes
description: adds the trigger "is about to deploy, host, publish or share an app that has no hosted database yet ("deploy my app", "put it online", "share it with a friend")". 667 characters.npx create-db@latest(no account, no card) and set its connection string asDATABASE_URLon the host. Before the app goes live, give the user the claim URL and the deletion time and ask them to claim it, since an unclaimed database is deleted and the deployed app stops working. On a Prisma 8 project that deploys to Prisma Compute, the Composer module declares the database instead; seeprisma-compute.metadata.version: 2.3.1 → 2.4.0 (new trigger and table row).Sources checked 2026-11-25
Checks
Validate Skillsworkflow script, run locally: all 11SKILL.mdfiles pass.72-hour lifetime (added 2026-11-25)
Commit
970d328changes the skill andreferences/provisioning.mdfrom 24 to 72 hours, matching prisma/create-db#92 and #93, and bumpsmetadata.versionto 2.4.1. That makes this PR part of the copy step below, so it merges after the create-db CLI release.Ship order
Unclaimed create-db databases move from 24 to 72 hours across several repositories. Merge in this order:
mainhave failed before without anyone noticing. A quick check: a create request with a 48-hour TTL succeeds instead of returning 400.--ttlabove 24h gets a 400 from the old worker, and the CLI prints a deletion time 48 hours later than the real one.Older CLIs keep printing a 24-hour deletion time after step 1, while the database lives 72 hours. That understates the lifetime; nothing breaks.
🤖 Generated with Claude Code