Cursor rule Codex
A green check that would also pass with the defect present proves nothing — make every verification able to fail.
Cursor rule Codex
A green check that would also pass with the defect present proves nothing — make every verification able to fail.
Cursor rule Codex
Use Object.hasOwn() instead of hasOwnProperty().
Cursor rule Codex
Enforce omitting "should" in test descriptions.
Cursor rule Codex
Don't open one-line / chore PRs on their own; batch ancillary work into in-flight PRs.
Cursor rule Codex
PostgreSQL LATERAL and jsonagg rendering patterns.
Cursor rule Codex
Prefer assertions over defensive checks when data is guaranteed to be valid.
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.
Cursor rule Codex
Prefer object matchers over multiple individual expect().toBe() calls.
Cursor rule Codex
Lead with PSL examples in design docs; TS authoring surface mirrors or extends PSL.
Cursor rule Codex
Use expect().toThrow() instead of manual try/catch blocks in tests.
Cursor rule Codex
Standard patterns for working with Prisma Next queries.
Cursor rule Codex
Read AGENTS.md for repo entrypoint and high-level constraints.
Cursor rule Codex
Ensure ADR examples match implemented APIs.
Cursor rule Codex
ADR writing guidelines (clarity, flow, examples).
Cursor rule Codex
When you would otherwise reach for Zod, use Arktype. Read this any time you need to work with Arktype.
Cursor rule Codex
Cursor rule "as-contract-cast-smell" from prisma/prisma-next, covering as contract casts are a serializer-bypass smell, the smell, the fix, lint scope and where the cast is allowed (allowlist).
Cursor rule Codex
Don't use the word "cleavage" in docs, ADRs, specs, plans, READMEs, or commit messages.
Cursor rule Codex
Capabilities are adapter-reported, contracts declare requirements.
Cursor rule Codex
Patterns for CLI e2e tests using shared fixture app.
Cursor rule Codex
CLI command error handling patterns.
Cursor rule Codex
CLI package export patterns and import conventions.
Cursor rule Codex
Avoid committing generated CLI test fixtures.
Cursor rule Codex
Patterns for config validation and normalization using Arktype.
Cursor rule Codex
Validate emitted column default values.