prisma-persistence

Installation
SKILL.md

Prisma Persistence Skill

Installation: Add the required packages:

  • pnpm add @efesto-cloud/prisma-database-context (for IPrismaContext and transaction support)
  • pnpm add @efesto-cloud/entity (for IEntityMapper interface)
  • pnpm add @efesto-cloud/maybe (for nullable results)

Helps you build the Prisma persistence layer — repository implementation and mapper — for a hexagonal architecture TypeScript/Prisma project following the ports-and-adapters pattern.

Assumes: The entity class, DTO interface, and repository interface (IFooRepo) already exist. The persistence skill covers the interface and mapper contract; this skill covers the Prisma implementation.

Does not cover: Population (eager-loading of related entities). See the prisma-population skill.


Before You Write Anything

Installs
3
First Seen
Apr 29, 2026
prisma-persistence — efesto-cloud/lib