What problem does it solve?
This Skill solves the problem of provisioning a new Prisma Postgres database through the Prisma Management API and getting a working local connection configured without manual Console-only steps.
Core Features & Use Cases
- Provision Prisma Postgres via Management API: Authenticates with a workspace service token, lists available regions, creates a project with
createDatabase: true, and waits for the database to become ready.
- Generate a usable connection string: Extracts the direct PostgreSQL connection string from the API response and supports an optional named connection.
- Wire up a local Prisma project (Prisma 7 style): Installs required packages, appends
DATABASE_URL into .env, scaffolds Prisma if needed, configures prisma.config.ts for runtime URL loading, and helps define or generate the schema before migrating.
- Verify end-to-end connectivity: Runs a short
test-connection.ts using the Prisma 7 adapter pattern to confirm the database connection works.
Use Case Examples:
- Provision a new Prisma Postgres database for a Next.js/Node project and connect it locally so you can run Prisma migrations immediately.
- Obtain a fresh
DATABASE_URL when asked to “set up a database” for development or a new environment, specifically using the Management API (not the Console UI).
Quick Start
Provision Prisma Postgres with the Management API and connect it to your local Prisma project by following the steps for selecting an available region, creating the project/database, writing DATABASE_URL to .env, running migrations, and verifying the connection.