prisma

192 mods across 8 repositories, 48k stars between them.

no-bare-casts

97

prisma/prisma-next

Cursor rule Codex

No bare as casts in production TypeScript. Use blindCast (value) from @prisma-next/utils/casts as the auditable escape hatch, castAs (value) for declarative-only assertions, or rewrite to eliminate the cast. as const is exempt. Test files are exempt.

421 7d ago A 0 tokens copy · 92% Apache-2.0 archived

no-barrel-files

98

prisma/prisma-next

Cursor rule Codex

Avoid barrel files and unnecessary re-exports.

421 7d ago A 0 tokens copy · 100% Apache-2.0 archived

prisma/prisma-next

Cursor rule Codex

The framework domain (packages/1-framework) carries no family- or target-specific vocabulary — types, fields, hooks, or strategy values. Enforced by lint:framework-vocabulary.

421 7d ago A 0 tokens original Apache-2.0 archived

no-linear-sub-issues

103

prisma/prisma-next

Cursor rule Codex

Never use Linear's sub-issue (parentId) feature; use standalone issues with projects, milestones, relations, and labels instead.

421 7d ago A 27 tokens copy · 100% Apache-2.0 archived

prisma/prisma-next

Cursor rule Codex

Never add pullrequesttarget to GitHub Actions workflows; CI lint enforces it via scripts/lint-workflow-triggers.mjs.

421 7d ago A 27 tokens copy · 100% Apache-2.0 archived

prisma/prisma-next

Cursor rule Codex

Forbid encoding transient project planning IDs (T1.1, TC-7, AC4, P3 R2, CKPT-2, etc.) in source code, comments, test names, identifiers, or hash fixtures.

421 7d ago A 650 tokens copy · 100% Apache-2.0 archived

object-hasown

108

prisma/prisma-next

Cursor rule Codex

Use Object.hasOwn() instead of hasOwnProperty().

421 7d ago A 0 tokens copy · 100% Apache-2.0 archived

prisma/prisma-next

Cursor rule Codex

Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.

421 7d ago A 0 tokens copy · 100% Apache-2.0 archived

prefer-object-matcher

114

prisma/prisma-next

Cursor rule Codex

Prefer object matchers over multiple individual expect().toBe() calls.

421 7d ago A 0 tokens copy · 100% Apache-2.0 archived

prisma/prisma-next

Cursor rule Codex

Lead with PSL examples in design docs; TS authoring surface mirrors or extends PSL.

421 7d ago A 437 tokens copy · 100% Apache-2.0 archived

prefer-to-throw

116

prisma/prisma-next

Cursor rule Codex

Use expect().toThrow() instead of manual try/catch blocks in tests.

421 7d ago A 0 tokens copy · 100% Apache-2.0 archived

query-patterns

117

prisma/prisma-next

Cursor rule Codex

Standard patterns for working with Prisma Next queries.

421 7d ago A 0 tokens copy · 100% Apache-2.0 archived

read-agents-md

118

prisma/prisma-next

Cursor rule Codex

Read AGENTS.md for repo entrypoint and high-level constraints.

421 7d ago A 31 tokens copy · 100% Apache-2.0 archived