christopherlouet/claude-base / .claude/skills/dev-prisma
dev-prisma
VerifiedPointer to Prisma's own agent skills (prisma-cli, prisma-client-api...) and how to install them, plus the schema-change workflow. Use for Prisma ORM work (schema, migrations, queries, schema.prisma) only when no prisma-* skill is installed; when one is, use it instead.
Prisma ORM (pointer + workflow)
Prisma's own skills (prisma-cli, prisma-client-api, …) track each Prisma release: install them. This pointer adds the workflow below.
Prisma publishes them at prisma/skills (9 skills: CLI, Client API, database setup, Prisma Postgres, the v6 → v7 upgrade, driver adapters, MongoDB, Compute). The foundation's former 418-line skill drifted on every Prisma release.
git clone https://github.com/prisma/skills ~/dev/vendor-skills/prisma
git -C ~/dev/vendor-skills/prisma checkout 1123817e60d15ca0f3af91878923241dee7e3b09 # the registry pin
ln -s ~/dev/vendor-skills/prisma/prisma-cli ./.claude/skills/prisma-cli
ln -s ~/dev/vendor-skills/prisma/prisma-client-api ./.claude/skills/prisma-client-api
Recipe entry: docs/recipes/recommended-vendor-skills.md §"Prisma — prisma/skills".
Schema change workflow
- Edit
schema.prisma: the relation on both sides; indexes per.claude/rules/prisma.md. npx prisma migrate dev --create-only --name <change>— writes the migration without applying it.- Read the generated SQL: a rename shows up as drop + add (data loss) — split it as
.claude/rules/prisma.mdsays before anything runs. npx prisma migrate devto apply it, thennpx prisma generate— since Prisma 7,migrate devno longer regenerates the client (v6 did). Commit the migration folder with the schema; one migration per change, never a secondinit.- Production: apply the committed migrations from CI or the deploy step — the exact commands, and what never runs against production, are in
.claude/rules/prisma.md.
Discipline that holds whichever skill fires
The migration, secret and query rules live in .claude/rules/prisma.md, scoped to the Prisma files, so they load even when a vendor skill fires instead of this one.
- Security: never fetch
passwordHashor any sensitive column without explicit need;selectoverinclude—.claude/rules/prisma.mdand.claude/rules/security.md. - TDD with a real DB: integration tests hit a real test database (Docker Compose pattern), never a Prisma mock — the
dev-tddskill. - Postgres interop: with Supabase, Prisma runs against the same Postgres and RLS still applies — the
dev-supabaseskill.
Why this pointer steps aside when Prisma's skills are installed, even though a session then often loads no skill: measured 2026-10-04, the work came out right either way (schema and migration correct 3/3 with and without this skill firing), and .claude/rules/prisma.md loads from the files in both cases — eval/skill-triggering/FINDINGS.md.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 468k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |