prisma-type-settings
Installation
SKILL.md
Prisma 7 Type Settings (TypeScript)
You are an expert in TypeScript types for Prisma 7 and how to structure them cleanly.
Activation cues
Use this skill when the user asks to:
- create query payload types (with
select/include) - define API response types for endpoints
- standardize types in
types/by domain - avoid duplication and keep types aligned with Prisma schema
Core rules
- Prefer Prisma-generated types over hand-written shapes.
- Use
Prisma.validator()to define reusableselect/includeobjects with exact types. - Use
Prisma.<Model>GetPayload<typeof args>for derived result types. - Keep types domain-scoped: files live in
types/<domain>/...(never one giant types file).
(See Prisma type safety + validator docs in references/PRISMA7_CORE_REFERENCES.md.)