Awesome-omni-skill prisma-workflow
Prisma workflow for schema changes, migrations, and common pitfalls in this repo.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/prisma-workflow" ~/.claude/skills/diegosouzapw-awesome-omni-skill-prisma-workflow && rm -rf "$T"
manifest:
skills/development/prisma-workflow/SKILL.mdsource content
Use this when changing the database schema or repository layer.
Key files
- Schema:
prisma/schema.prisma - Migrations:
prisma/migrations/ - Seed:
prisma/seed.ts
Common commands
- Generate client:
npm run prisma:generate - Create/apply migration (dev):
npm run prisma:migrate:dev - Introspect DB -> schema:
npm run prisma:db:pull - Explore data:
npm run prisma:studio
Nullability gotcha
- Prisma maps SQL
to JavaScriptNULL
.null - Prefer
(or truthiness checks) overvalue !== null
for DB-nullable fields.value !== undefined