---
name: prisma-database-388f08625f34
description: >
  Handles all Prisma ORM tasks in a Turborepo monorepo: initial setup, PrismaClient singleton,
  schema model generation, migrations, seeding, soft delete pattern, pagination helpers.
  Trigger for: "setup prisma", "add prisma model", "create migration", "seed database",
  "add soft delete", "add pagination", "setup database package", "init prisma".
---

# Prisma Database Sub-Skill

Reads: `../../references/project.config.md` · `../../references/conventions.md`

Package location: `packages/database/`

## Preflight

Print before any action:
```
✅ Prisma Preflight
task: {task} | pkg: packages/database | pm: {package_manager}
```

## Task Router

| User asks | Reference |
|---|---|
| Setup Prisma, init, install, client package | `references/setup.md` |
| Add/define a model, schema field | `references/schema.md` |
| Create, run, reset, rollback migration | `references/migrations.md` |
| Seed database, seed file, seed script | `references/seed.md` |
| Shared PrismaClient singleton | `references/client.md` |
| Soft delete pattern | `references/soft-delete.md` |
| Pagination, cursor, offset | `references/pagination.md` |

Load only the reference file needed — not all at once.

## Resume

"resume prisma [task]" → identify what's missing → continue from that step.

---
Source attribution: raihansharifrimon
Original project: https://github.com/raihansharifrimon/ai-agent-dev-skills/blob/e7fdcdf5e5e2714b12600ae6e4186adcdec1d668/skills/turborepo-express-api/skills/prisma-database/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 turborepo-express-api skill authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: raihansharifrimon
Original project: https://github.com/raihansharifrimon/ai-agent-dev-skills/blob/e7fdcdf5e5e2714b12600ae6e4186adcdec1d668/skills/turborepo-express-api/skills/prisma-database/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: Backend Developer, Data Engineer, DevOps / SRE
Specialties: Database
Tools: Prisma
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: da981373d62ad71c1ce38d06aa30c1695f7970e59c5a37c3f7aa7944d174fb18
