All skills
prisma avatar

/prisma-postgres-setup

@b491588 official
by prismaprisma/skills66 stars
7

Obtain or reuse a Prisma Postgres database and connect an application. Use for "set up Prisma Postgres", "connect my app to Prisma Postgres", or Prisma Postgres setup in v0 and Vercel Marketplace. Hands Prisma ORM configuration to prisma-orm-setup; honors an explicit driver, alternative ORM, or database-only choice.

Use this Skill: https://skilld.dev/gh/prisma/skills/prisma-postgres-setup

This session only. Nothing lands on disk.

referencesvercel-marketplace.md

≈444 tokens on demand. Your agent reads this file only when SKILL.md points to it.

v0 and Vercel Marketplace

Use the native integration to obtain a database that belongs to the user's Marketplace installation and Vercel project.

  1. Inspect whether Prisma Postgres is already connected to the current project and environment. Reuse that resource.
  2. If it is not connected, use the host's native integration flow to select an existing resource or create one. In v0 this may appear as an integration request tool; discover what the host exposes instead of assuming a fixed tool name.
  3. Wait for the connection and injected environment configuration. Verify which variables the application uses without printing their values.
  4. If the app sees a variable but a shell command does not, follow the environment-loading step in prisma-postgres-setup.
  5. Return to prisma-postgres-setup for the chosen ORM and query verification.

Where MCP fits

When native Marketplace MCP tools are available, inspect their descriptions, permissions, and resource scope before use. Use them for supported operations on the selected resource. Keep schema changes consistent with the application's migration workflow.

A general Prisma MCP provisioning tool creates a Prisma resource; that alone does not establish Marketplace registration, billing, project connection, or environment injection. Do not substitute it for a blocked native installation. Report the missing connection or permission.

The agent calls MCP tools while building the app. The generated app connects through its ORM or database driver; it does not need to call MCP for normal database queries.

Sources: v0 databases, v0 MCP, Vercel native integrations.

Source: SKILL.md on GitHub

No alerts2d4 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    This skill is a database provisioning tool that interacts with the Prisma Management API. It involves command execution for project setup and verification, and processes natural language descriptions to generate schemas.

  • Socket2d

    No alerts

  • Snyk2d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at b491588. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 days ago
metadata
{
  "author": "prisma",
  "version": "2.0.0"
}
  • Database
  • prisma
  • postgres
  • provisioning
  • management-api
  • connection-string
  • nodejs

README badge

README badge for prisma/skills/prisma-postgres-setup

Provisions a new Prisma Postgres database via the Management API and configures it in a local Node.js project with Prisma 7. Handles service token authentication, region selection, project creation, schema definition, and end-to-end connection verification.

Generated from the current SKILL.md.

Does this skill work with existing databases, or only new ones?
This skill provisions new Prisma Postgres databases via the Management API. For existing databases that are already connected, use standard Prisma CLI tasks (schema/migration work). For CI/CD preview databases or multi-tenant setups, use the dedicated skills `prisma-postgres-cicd` or `prisma-postgres-integrator`.
What authentication does this require?
You need a workspace service token from Prisma Console (Workspace Settings > Service Tokens). The skill checks for the token in your initial prompt, the PRISMA_SERVICE_TOKEN environment variable, or `.env` file before asking you to create one.
Does this set up Prisma 7?
Yes. The skill installs `@prisma/adapter-pg` (Prisma 7's driver adapter for direct PostgreSQL), creates `prisma.config.ts` for Prisma 7 configuration, and ensures connection URLs are managed there instead of in the schema.
What happens if I hit my database limit?
The skill lists your existing projects as an interactive menu, lets you pick one to delete, then retries the creation.
Does this create migration files?
Yes. When you define or confirm your schema, the skill runs `npx prisma migrate dev --name init`, which generates migration files in `prisma/migrations/` and the Prisma client in one step. This is required for CI/CD and production deployments.

Generated from the current SKILL.md. These answers refresh after source changes.