prisma-next-quickstart
БесплатноБез исполняемых скриптовНе проверенAdopt Prisma Next into a new project, onto an existing database, or as the first move after a bootstrap tool dropped you into a scaffold. Use for "what can I…
от prisma★ 407 звёзд на GitHubОб этом скилле
Prisma Next — Quickstart (Adoption)
Edit your data contract. Prisma handles the rest.
This skill takes the user from zero (or near-zero) to a first working query against Prisma Next. Three paths — and they all converge on the same first arc: connect → write → read. Schema editing comes after the first arc, not before.
- First-touch orientation — the user has arrived at a Prisma Next project for the first time (a scaffold tool like
npx createprismadropped them in, they cloned a teammate's repo, or they ranprisma-next initthemselves and now want to make their first move) and they're asking "what can I do with Prisma Next?", "where do I start?", or "what's next?". The goal is to anchor them on the contract, get them connected to a database, round-trip one row, and let further commands surface organically. - Greenfield — new project, fresh database. User runs
prisma-next initthemselves.initseeds a starter contract with a sample model, so the path joins the first-touch orientation arc as soon as the database is initialised. - Brownfield-DB — existing database, no contract yet. Infer the contract from the database with
contract infer, sign the marker withdb sign, then write queries against one of the existing tables.
This skill does not cover migrating from another ORM (Drizzle, Prisma 6/7, Sequelize, TypeORM, Kysely, Knex, raw drivers). Those are separately-installable skills.
When to Use
- User asks "what can I do with Prisma Next?", "what can I do next with Prisma?", "where do I start?", "what should I do first?" — and a PN project already exists on disk. First-touch orientation path below.
- User just ran
createprisma(or equivalent scaffold tool) and is asking what to do next. First-touch orientation path. - User is starting a new project and wants to use Prisma Next. Greenfield path.
- User has an existing database (no PN contract) and wants to introduce PN. Brownfield-DB path.
- User typed "prisma-next init", "get started with PN", "set up PN", "how do I scaffold a project". Greenfield path.
- User says "I have an existing Postgres/Mongo, how do I start using PN?". Brownfield-DB path.
When Not to Use
- User already has a PN project and wants to add a model →
prisma-next-contract. - User wants to migrate FROM a specific ORM → install
@prisma-next/migrate-from-<orm>-skill(separate). - User wants to wire
db.tsin a project that already has a contract →prisma-next-runtime. - User wants to integrate Prisma Next with a build tool (Vite plugin, Next.js, …) →
prisma-next-build.
Key Concepts
- Contract: the data model. Authored as
contract.prisma(PSL, the canonical surface) orcontract.ts(TypeScript builder). The framework reads it and emits two artefacts:contract.json(runtime IR) andcontract.d.ts(types). - Target: the backing store. Today:
postgresormongodb. Picked atinittime; baked into the@prisma-next/<target>façade the scaffold imports from. - Authoring mode: how you write the contract.
psl(Prisma Schema Language, default) ortypescript(programmatic builder, optionally paired with the Vite plugin for auto-emit duringvite dev— seeprisma-next-build). - Façade packages. The scaffold installs exactly one façade per target —
@prisma-next/postgres(or@prisma-next/mongo). User code imports from façade subpaths (@prisma-next/postgres/config,@prisma-next/postgres/runtime,@prisma-next/postgres/contract-builder). The façade bakes in the family / target / adapter / driver wiring; never reach past it. Seeprisma-next-contractfor the full list. db.ts: the runtime entry point. Lives next to the contract source atsrc/prisma/db.ts. Imports the contract artefacts and exports adbvalue the rest of the app uses.- Marker: a
pn_meta_markerrow in your database that records the contract hash. Lets PN detect drift between contract and live DB. Created bydb init(greenfield / first-touch orientation) ordb sign(brownfield).
Canonical on-disk layout
Every application that consumes Prisma Next uses the same shape:
<app-root>/
├── prisma-next.config.ts ← project config at repo root
├── src/
│ └── prisma/
│ ├── contract.prisma ← (or contract.ts) — schema source you author
│ ├── contract.json ← emitted by `contract emit` — do not edit
│ ├── contract.d.ts ← emitted by `contract emit` — do not edit
│ └── db.ts ← runtime entry; the rest of `src/` imports from here
└── migrations/
├── snapshots/ ← content-addressed contract store, shared across spaces
│ └── <hex>/
│ ├── contract.json
│ └── contract.d.ts
└── app/ ← created on first `migration plan` / `db init`
├── refs/head.json
└── <timestamp>_<slug>/
├── migr
Установить prisma-next-quickstart в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prisma-next-quickstart?
Adopt Prisma Next into a new project, onto an existing database, or as the first move after a bootstrap tool dropped you into a scaffold. Use for "what can I do with Prisma Next", "what can I do next with Prisma", "where do I start", "what should I do first", "just ran createprisma", "createprisma", "npx createprisma", "npx create-prisma", "first steps", "first query", "I have a scaffolded Prisma Next project what now"; for `pnpm dlx prisma-next init` greenfield setup; and for `prisma-next contract infer` + `db sign` against an existing database. Also covers the connect-write-read first-arc orientation, the day-to-day commands (`contract emit`, `db init`, `db update`, `migration plan`, `migrate`, `db schema`, `db verify`), and routing to `prisma-next-contract` / `prisma-next-queries` / `prisma-next-runtime` for the next move. Flags: --target, --authoring, --schema-path, --probe-db, --output.
Как установить скилл prisma-next-quickstart?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prisma-next-quickstart запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic