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 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
Never patch raw contract data in tests; use real emitted fixtures or a user-facing authoring surface.
421 7d ago A 0 tokens
copy · 100% Apache-2.0 archived prisma /prisma-next
Cursor rule Codex
Never edit the pnpm lockfile manually; use pnpm install.
421 7d ago A 91 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 prisma /prisma-next
Cursor rule Codex
Prohibit inline type imports in source files.
421 7d ago A 0 tokens
copy · 94% Apache-2.0 archived 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
Never branch on target - use adapters instead.
421 7d ago A 0 tokens
copy · 100% Apache-2.0 archived prisma /prisma-next
Cursor rule Codex
Avoid tautological tests that only restate fixture input.
421 7d ago A 0 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 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
Enforce omitting "should" in test descriptions.
421 7d ago A 148 tokens
copy · 100% Apache-2.0 archived prisma /prisma-next
Cursor rule Codex
Don't open one-line / chore PRs on their own; batch ancillary work into in-flight PRs.
421 7d ago A 685 tokens
copy · 100% Apache-2.0 archived prisma /prisma-next
Cursor rule Codex
PostgreSQL LATERAL and jsonagg rendering patterns.
421 7d ago A 0 tokens
copy · 100% Apache-2.0 archived prisma /prisma-next
Cursor rule Codex
Prefer assertions over defensive checks when data is guaranteed to be valid.
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 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 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 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 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 prisma /prisma-next
Cursor rule Codex
How to resolve cyclic dependencies when moving types or refactoring packages.
421 7d ago A 0 tokens
original Apache-2.0 archived prisma /prisma-next
Cursor rule Codex
Honor explicitly provided base branches in review artifacts.
421 7d ago A 8 tokens
original Apache-2.0 archived