prisma-postgres

Provision Prisma Postgres databases and configure connection strings across Console, CLI, and API.

1|Updated May 1, 2026
One-click install
npx skills add https://github.com/Joshkovu/ghost-ai --skill prisma-postgres-joshkovu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-postgres
Source: https://github.com/Joshkovu/ghost-ai/tree/main/.agents/skills/prisma-postgres
Command: npx skills add https://github.com/Joshkovu/ghost-ai --skill prisma-postgres-joshkovu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prisma Postgres setup can be slow and error-prone when you need consistent workflows across interactive Console use, CLI provisioning, and programmatic automation. This Skill provides the guidance needed to create databases, link projects, and integrate with the Prisma Management API and SDK so you can reliably obtain connection details and configure your app.

Core Features & Use Cases

  • Console-to-connection workflow: Use Prisma Console to create/select resources, inspect data in Studio, and retrieve direct connection credentials.
  • CLI provisioning and linking: Provision instant databases with create-db (including region selection, TTL behavior, and claiming flows) and link existing databases to local projects via prisma postgres link.
  • Programmatic automation: Use Management API endpoints for service-token or OAuth-based onboarding, and integrate with the typed @prisma/management-api-sdk for safer auth and refresh handling.
  • Operational connection details: Convert direct connection information into a working DATABASE_URL, including guidance for TCP/SSL and adapter choices for standard vs serverless runtimes.

Quick Start

Use the prisma-postgres Skill to provision a new database with create-db and then link your local project so your .env contains a working DATABASE_URL for Prisma.

Frequently Asked Questions about prisma-postgres

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I provision a Prisma Postgres database using the CLI?

Provision a Prisma Postgres database using the CLI by running the create-db command, which supports instant database creation with region selection and TTL behavior to get your database running quickly.

How does the Prisma Management API handle authentication for database automation?

The Prisma Management API handles authentication using either a service-token or OAuth-based onboarding, allowing you to automate workspace, project, and database management securely via its endpoints.

What is the best way to link an existing Prisma Postgres database to my local project?

Link an existing Prisma Postgres database to your local project by running the prisma postgres link command, which configures your local environment with a working DATABASE_URL connection string.

How do I format a DATABASE_URL for Prisma Postgres on serverless runtimes?

Format a DATABASE_URL for Prisma Postgres on serverless runtimes by applying the correct TCP and SSL connection parameters and selecting the appropriate database adapter recommended for your specific environment.

Can I use the Prisma Console to retrieve direct connection credentials for my database?

Yes, you can use the Prisma Console to create or select resources, inspect data in Studio, and retrieve direct connection credentials needed to build your application's connection string.

Do I need the typed Management API SDK to automate Prisma Postgres workflows?

You do not need the typed Management API SDK, but integrating it provides safer authentication and refresh handling when automating Prisma Postgres workspace and database management tasks programmatically.