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 (for IDatabaseContext interface)
  • pnpm add @efesto-cloud/entity (for IEntityMapper interface)
  • 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-persistence skill
  • Prisma: prisma-persistence skill

Repository Interface (Port)

Related skills
Installs
3
First Seen
Apr 29, 2026