Dev prisma
Skill christopherlouet/claude-base/.claude/skills/dev-prisma
Development with Prisma ORM (schema, migrations, type-safe queries, Accelerate, transactions). Trigger when the user wants to add a model, create a migration, optimize Prisma queries, or when schema.prisma is detected in the project.From its SKILL.md
npx -y skills add christopherlouet/claude-base --skill dev-prismaAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 2 commands, including `npx skills add prisma/skills` and 1 more.
SKILL.md
2.6 KB, 550 tokens by cl100k_base, as published. Nobody here has run it
Prisma ORM (pointer)
Prisma publishes the canonical agent skill at prisma/skills — maintained by the Prisma team, in sync with v7 (ESM-only, driver adapters, prisma.config.ts). The vendor reference stays current with every release; the prior foundation skill (418 lines) drifted on each Prisma version bump.
Delegate to the vendor skill
# Prisma's preferred path (verify on their README):
npx skills add prisma/skills
# Fallback — clone and copy:
git clone --depth 1 https://github.com/prisma/skills ~/dev/vendor-skills/prisma
# Skill content lives in CLAUDE.md / AGENTS.md per their convention.
Recipe entry: docs/recipes/recommended-vendor-skills.md §"Prisma — prisma/skills". Reduction rationale: specs/foundation-positioning-review/spec.md Wave 1.
Foundation-unique angle preserved: cross-cutting discipline
The vendor covers the Prisma API surface. The foundation enforces version-agnostic conventions that survive across releases:
- Security: never
select: { passwordHash: true }or any sensitive column without explicit need; default toselectoverincludefor security + perf — cross-ref.claude/rules/security.md. - TDD with a real DB: integration tests hit a real test database (Docker Compose pattern), never a Prisma mock — cross-ref the
dev-tddskill. - Postgres interop: if the stack uses Supabase, Prisma operates against the same Postgres — cross-ref the
dev-supabaseskill (Supabase RLS coexists with Prisma queries).
Foundation rules preserved
- NEVER use
prisma migrate devin production. Alwaysprisma migrate deploy. prisma generateMUST run after every schema change. Add it to the CI build step.- Singleton PrismaClient (HMR-safe
globalThispattern in dev) — avoid connection leaks. - YOU MUST add an index on every foreign key and on every column in frequent WHERE clauses.
- YOU MUST use
selectinstead ofincludewhen you know the fields (security + perf). - NEVER commit
.envwithDATABASE_URL. Always.env.examplewith placeholders. - NEVER rename a field in one migration. Two steps: add new column → backfill → remove old column (avoids prod downtime).
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.