prisma-json-types-generator
Installation
SKILL.md
Prisma Json Types Generator
Make Prisma Json, String, String[], Int, or Float fields type-safe with the smallest correct schema and type-definition change.
This only changes generated TypeScript types after prisma generate.
Core Workflow
- Read only what you need: the relevant Prisma schema, the existing
PrismaJsonwiring file if there is one, andtsconfig.jsonif the namespace declarations are not being picked up. - For first-time installation, generator wiring, or broken setup, read
references/setup.mdbefore editing fields. - Find the target field.
- Decide whether it should use a named namespace type or a short inline type.
- Add or fix the AST comment immediately above the field.
- Add or update the TypeScript type if the field uses a named type.
- Run
prisma generateand a relevant type check when practical.
Prefer the smallest correct change. If the user only needs one typed field, do not redesign the whole schema.