prisma/orm

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

48kStars on the repository
60Mods indexed here, across every type
todayLast push, which is what freshness is scored on
Apache-2.0Licence, which decides whether bodies are shown

adr-writing

02

prisma/orm

Cursor rule Codex

ADR writing guidelines (clarity, flow, examples).

48k +7 today A 0 tokens original Apache-2.0

arktype-usage

03

prisma/orm

Cursor rule Codex

When you would otherwise reach for Zod, use Arktype. Read this any time you need to work with Arktype.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

// ❌ WRONG — bypasses the family ContractSerializer seam const contract = JSON.parse(raw) as Contract; const contract = JSON.parse(raw) as Contract .

48k +7 today A 941 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Don't use the word "cleavage" in docs, ADRs, specs, plans, READMEs, or commit messages.

48k +7 today A 273 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Capabilities are adapter-reported, contracts declare requirements.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Classify CI failures from evidence before acting — install state first, controls that can fail, known flake fingerprints.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Patterns for CLI e2e tests using shared fixture app.

48k +7 today A 0 tokens original Apache-2.0

cli-error-handling

09

prisma/orm

Cursor rule Codex

CLI command error handling patterns.

48k +7 today A 0 tokens original Apache-2.0

cli-package-exports

10

prisma/orm

Cursor rule Codex

CLI package export patterns and import conventions.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Config validation and normalization responsibilities (defineConfig normalizes, loader validates into section diagnostics).

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

On-disk layout for packages that expose a contract space (extensions, internal monorepo packages, aggregate-root apps).

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Control plane descriptor and instance implementation patterns.

48k +7 today A 0 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Review markdown in Cursor — path-only file links (no :line in link targets).

48k +7 today A 0 tokens original Apache-2.0

declarative-config

17

prisma/orm

Cursor rule Codex

Prefer declarative configuration over hardcoded logic.

48k +7 today A 0 tokens original Apache-2.0

directory-layout

18

prisma/orm

Cursor rule Codex

Directory layout rules for SQL family vs concrete targets.

48k +7 today A 0 tokens original Apache-2.0

doc-maintenance

19

prisma/orm

Cursor rule Codex

Keep documentation and READMEs accurate and updated.

48k +7 today A 898 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

Prefer requiring explicit opt-in over emitting diagnostics on intentional user paths.

48k +7 today A 730 tokens original Apache-2.0

prisma/orm

Cursor rule Codex

A review comment names a class of defect, not a point-fix. Sweep the whole diff for the class before replying; fix every instance in one round.

48k +7 today A 403 tokens original Apache-2.0

generic-parameters

23

prisma/orm

Cursor rule Codex

Generic parameter defaults (avoid pointless defaults).

48k +7 today A 0 tokens original Apache-2.0

git-staging

24

prisma/orm

Cursor rule Codex

Git commit best practices - avoid git add -A, stage files explicitly, always sign off.

48k +7 today A 744 tokens original Apache-2.0