prisma-persistence
Installation
SKILL.md
Prisma Persistence Skill
Installation: Add the required packages:
pnpm add @efesto-cloud/prisma-database-context(forIPrismaContextand transaction support)pnpm add @efesto-cloud/entity(forIEntityMapperinterface)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.