persistence
Installation
SKILL.md
Persistence Skill
Helps you design the persistence layer port — repository interface, mapper contract, and DI symbol registration — for a hexagonal architecture TypeScript project following the ports-and-adapters pattern. This skill is DB-agnostic; it covers the shared concepts that apply regardless of whether the backing store is MongoDB, Prisma, or anything else.
Installation: Add the core packages used by all persistence layers:
pnpm add @efesto-cloud/database-context(forIDatabaseContextinterface)pnpm add @efesto-cloud/entity(forIEntityMapperinterface)pnpm add @efesto-cloud/maybe(for nullable results)
Next step: Once the interface and mapper shape are defined, install the DB-specific skill:
- MongoDB:
mongodb-persistenceskill - Prisma:
prisma-persistenceskill