Skip to main content

Build

Prisma Postgres Setup

PrismaOfficialCertified

Obtain or reuse a Prisma Postgres database and connect an application. Use when the user needs a database and has none configured ("I need a database", "add a Postgres database", "set up a database for this app"), 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"), runs or mentions `create-db` or `npx create-db`, or asks to set up or connect Prisma Postgres, including in v0 and the Vercel Marketplace. Hands Prisma ORM configuration to prisma-orm-setup; reuses an existing connection first and honors an explicit provider, driver, alternative ORM, or database-only choice.

  • New
  • v1.0.4
  • Reviewed Nov 27
  • No reviews yet

Capabilities

  • Inspect the project

    Check the user's requested ORM or driver, installed packages, database…

  • Reuse or obtain a database

    Resolve the workspace, project, and region before creation

  • Connect the application

    Use the connection appropriate to the chosen driver and runtime

  • Configure the ORM and verify

    For Prisma ORM setup, read prisma-orm-setup/SKILL.md directly, or load…

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.4

Prisma Postgres setup

Connect the intended database, then verify it from the application. Keep provisioning separate from ORM configuration so an existing database is reused.

1. Inspect the project

Check the user's requested ORM or driver, installed packages, database connection, and environment-loading files. Check secret presence without printing values.

  • Honor explicit choices such as Drizzle, pg, or database-only setup.
  • For query or schema work in an already configured app, use its version-matched ORM guidance; do not restart setup.

2. Reuse or obtain a database

Situation Action
Existing connection or connected integration Verify its project, database, and environment; reuse it.
v0, Vercel Marketplace, or a Vercel project Read Marketplace setup and use the native integration flow.
No database yet and no provider named Offer npx create-db@latest for a working database now with no account (it is deleted at the deletion time printed in its output unless claimed, and claiming needs a free Prisma account; read the create-db section in provisioning), or a persistent database through provisioning. Ask which one when the request does not say.
Deploying or sharing an app with no hosted database Offer npx create-db@latest (no account, no card) and set its connection string as DATABASE_URL on the host. Before the app goes live, give the user the claim URL and the deletion time and ask them to claim it: an unclaimed database is deleted and the deployed app stops working. On a Prisma 8 project that deploys to Prisma Compute, the module declares the database instead; see the prisma-compute skill.
Standalone persistent database Read provisioning; use an authenticated CLI, MCP tool, Console, or Management API.
Temporary development database requested Read the create-db section in provisioning, including expiry and claiming.

Resolve the workspace, project, and region before creation. If several resources fit, ask which one to use. If provisioning is blocked by permissions or quota, report the blocker; do not delete another resource or switch workspaces to get around it.

3. Connect the application

Use the connection appropriate to the chosen driver and runtime. Store it in the project's secret environment configuration, never source code or chat. Preserve unrelated entries, update the intended variable once, and ensure local secret files are ignored by Git.

Application processes and CLI commands may load different environment files. For example, a framework may load .env.development.local while a shell command does not. A variable missing from the shell does not mean the database is missing: load the intended file for that command without displaying credentials, and do not provision another database.

4. Configure the ORM and verify

For Prisma ORM setup, read prisma-orm-setup/SKILL.md directly, or load the installed prisma-orm-setup skill when the host resolves sibling skills by name. It owns ORM version selection and configuration. If that handoff is unavailable, report it.

For an explicitly selected alternative, keep that ORM or driver and use its documented setup. For database-only setup, stop after verifying connectivity.

Run a read-only query against the intended database through the application's chosen ORM or driver. Report what was connected, the selected ORM/version, and the query result without secrets. If any step is blocked or untested, say so instead of claiming setup is complete.

For Studio, SDK integrations, or database operations beyond initial setup, read operations.

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Prisma

View source →

Frequently asked questions about prisma-postgres-setup

What does the prisma-postgres-setup skill do?

Obtain or reuse a Prisma Postgres database and connect an application. Use when the user needs a database and has none configured ("I need a database", "add a Postgres database", "set up a database for this app"), 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"), runs or mentions `create-db` or `npx create-db`, or asks to set up or connect Prisma Postgres, including in v0 and the Vercel Marketplace. Hands Prisma ORM configuration to prisma-orm-setup; reuses an existing connection first and honors an explicit provider, driver, alternative ORM, or database-only choice. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the prisma-postgres-setup skill?

Run `npx @skills-hub-ai/cli install prisma-postgres-setup` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/prisma-postgres-setup/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does prisma-postgres-setup work with?

prisma-postgres-setup runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the prisma-postgres-setup skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use prisma-postgres-setup after installing it?

In Claude Code, type `/prisma-postgres-setup` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the prisma-postgres-setup skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/prisma-postgres-setup)](https://skills-hub.ai/skills/prisma-postgres-setup)
HTML
<a href="https://skills-hub.ai/skills/prisma-postgres-setup"><img src="https://skills-hub.ai/api/badges/skill/prisma-postgres-setup" alt="Install on Skills Hub"></a>

More options in the badge docs.