Skill · em Construir backend e dados

prisma-postgres-setup

Set up a new Prisma Postgres database and connect it to a local project using the Management API. Use when asked to "set up a database", "create a Prisma Postgres project", "get a connection string", "connect my app to Prisma Postgres", or "provision a database".

Procedência

Antes de instalar

5 arquivos · 22 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 1123817) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/skills/prisma-postgres-setup/.

d=".claude/skills/prisma-postgres-setup"
u="https://raw.githubusercontent.com/prisma/skills/1123817e60d15ca0f3af91878923241dee7e3b09/prisma-postgres-setup"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/api-basics.md" "$u/references/api-basics.md" \
  -o "$d/references/auth.md" "$u/references/auth.md" \
  -o "$d/references/endpoints.md" "$u/references/endpoints.md" \
  -o "$d/references/prisma7-client.md" "$u/references/prisma7-client.md"

Global: instala em ~/.claude/skills/prisma-postgres-setup/.

d="$HOME/.claude/skills/prisma-postgres-setup"
u="https://raw.githubusercontent.com/prisma/skills/1123817e60d15ca0f3af91878923241dee7e3b09/prisma-postgres-setup"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/api-basics.md" "$u/references/api-basics.md" \
  -o "$d/references/auth.md" "$u/references/auth.md" \
  -o "$d/references/endpoints.md" "$u/references/endpoints.md" \
  -o "$d/references/prisma7-client.md" "$u/references/prisma7-client.md"

Codex

Neste projeto: instala em .agents/skills/prisma-postgres-setup/.

d=".agents/skills/prisma-postgres-setup"
u="https://raw.githubusercontent.com/prisma/skills/1123817e60d15ca0f3af91878923241dee7e3b09/prisma-postgres-setup"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/api-basics.md" "$u/references/api-basics.md" \
  -o "$d/references/auth.md" "$u/references/auth.md" \
  -o "$d/references/endpoints.md" "$u/references/endpoints.md" \
  -o "$d/references/prisma7-client.md" "$u/references/prisma7-client.md"

Global: instala em ~/.agents/skills/prisma-postgres-setup/.

d="$HOME/.agents/skills/prisma-postgres-setup"
u="https://raw.githubusercontent.com/prisma/skills/1123817e60d15ca0f3af91878923241dee7e3b09/prisma-postgres-setup"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/api-basics.md" "$u/references/api-basics.md" \
  -o "$d/references/auth.md" "$u/references/auth.md" \
  -o "$d/references/endpoints.md" "$u/references/endpoints.md" \
  -o "$d/references/prisma7-client.md" "$u/references/prisma7-client.md"

Antigravity

Neste projeto: instala em .agents/skills/prisma-postgres-setup/.

d=".agents/skills/prisma-postgres-setup"
u="https://raw.githubusercontent.com/prisma/skills/1123817e60d15ca0f3af91878923241dee7e3b09/prisma-postgres-setup"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/api-basics.md" "$u/references/api-basics.md" \
  -o "$d/references/auth.md" "$u/references/auth.md" \
  -o "$d/references/endpoints.md" "$u/references/endpoints.md" \
  -o "$d/references/prisma7-client.md" "$u/references/prisma7-client.md"

Global: instala em ~/.gemini/antigravity-cli/skills/prisma-postgres-setup/.

d="$HOME/.gemini/antigravity-cli/skills/prisma-postgres-setup"
u="https://raw.githubusercontent.com/prisma/skills/1123817e60d15ca0f3af91878923241dee7e3b09/prisma-postgres-setup"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/api-basics.md" "$u/references/api-basics.md" \
  -o "$d/references/auth.md" "$u/references/auth.md" \
  -o "$d/references/endpoints.md" "$u/references/endpoints.md" \
  -o "$d/references/prisma7-client.md" "$u/references/prisma7-client.md"

Peça ao Rook

Já usa o Rook Labs? Cole no chat do Rook: instale a skill https://rooklabs.sh/marketplace/prisma.skills.prisma-postgres-setup

Prévia do SKILL.md

---
name: prisma-postgres-setup
description: Set up a new Prisma Postgres database and connect it to a local project using the Management API. Use when asked to "set up a database", "create a Prisma Postgres project", "get a connection string", "connect my app to Prisma Postgres", or "provision a database".
license: MIT
metadata:
  author: prisma
  version: "1.1.0"
---

# Prisma Postgres Setup

Procedural skill that guides you through provisioning a new Prisma Postgres database via the Management API and connecting it to a local project.

## When to Apply

Use this skill when:

- Setting up a new Prisma Postgres database for a project
- Creating a Prisma Postgres project and connecting it locally
- Obtaining a connection string for Prisma Postgres
- Provisioning a database via the Management API (not the Console UI)

Do **not** use this skill when:

- Setting up CI/CD preview databases — use `prisma-postgres-cicd`
- Building multi-tenant database provisioning into an app — use `prisma-postgres-integrator`
- Working with a database that already exists and is connected (schema/migration tasks are standard Prisma CLI)

## Prerequisites

- Node.js 18+
- A Prisma Postgres workspace (create one at https://console.prisma.io if needed)
- A workspace service token (see `references/auth.md`)

## UX Guidelines

When presenting choices to the user (region selection, project deletion, etc.), **use your platform's interactive selection mechanism** (e.g., `ask` tool in Claude Code, structured prompts in other agents). Do not print static tables and ask the user to type a value — present selectable options so the user can pick wit…

## Workflow
…

Ver todo o marketplace