// Prisma client instance
import prisma from "@/utils/prisma";
// Enums (NOT from @prisma/client)
import { ActionType, SystemType } from "@/generated/prisma/enums";
// Types (NOT from @prisma/client)
import type { Rule, PrismaClient } from "@/generated/prisma/client";
import { Prisma } from "@/generated/prisma/client";
Never import from @prisma/client — always use @/generated/prisma/enums and @/generated/prisma/client.
Schema: apps/web/prisma/schema.prisma
1---2name: prisma3description: How to use Prisma4---5# Prisma Usage67We use PostgreSQL with Prisma 7.89## Imports1011```typescript12// Prisma client instance13import prisma from "@/utils/prisma";1415// Enums (NOT from @prisma/client)16import { ActionType, SystemType } from "@/generated/prisma/enums";1718// Types (NOT from @prisma/client)19import type { Rule, PrismaClient } from "@/generated/prisma/client";20import { Prisma } from "@/generated/prisma/client";21```2223Never import from `@prisma/client` — always use `@/generated/prisma/enums` and `@/generated/prisma/client`.2425Schema: `apps/web/prisma/schema.prisma`
Run npx get-skill add elie222/prisma in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
How to use Prisma It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
elie222 (@elie222) published this skill. Their other Agent Skills are listed on their SkillMD profile.