Skillv1.0.0
prisma-postgres-setup
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.
累计浏览0
累计下载0
累计安装0
本周浏览0
本周下载0
本周安装0
收藏0
仅记录已同意可选统计的用户事件。浏览按账号、Skill 与上海自然日去重;下载按账号、Skill、版本与上海自然日去重,统计仅表示客户端成功交付安装包,不保证包已保存到磁盘。安装仅在客户端成功完成 Skill 写入后记录,并按账号与 Skill 去重 90 天;撤回同意会清理个人去重记录,重新开启后再次安装可能再次计数。“本周”指最近 7 个上海自然日。收藏为当前总数。
Skill 步骤
--- name: prisma-postgres-setup description: 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. license: MIT metadata: author: prisma version: "2.0.0" --- # 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 or Vercel Marketplace | Read [Marketplace setup](references/vercel-marketplace.md) and use the native integration flow. | | Standalone persistent database | Read [provisioning](references/provisioning.md); use an authenticated CLI, MCP tool, Console, or Management API. | | Temporary development database requested | Read the `create-db` section in [provisioning](references/provisioning.md), 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](https://github.com/prisma/skills/blob/main/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](references/operations.md).
版本历史
已发布版本会持续保留,可用于校验和恢复。
v1.0.0当前版本
Imported from prisma/skills@ZIP b11a6c47b3cbad9db6e4531a73750c8beb660ac9313bae69411ccd715e5f06b1