config-prisma
Installation
SKILL.md
Config Prisma
Overview
Run deterministic Prisma infrastructure setup in apps/backend, with a neutral seed entrypoint (no module tasks), a Nest database module, and Postgres initialization via Docker Compose aligned with .env.
The generated database contract must remain compatible with the current project version: simple PrismaService, without TransactionManager or runInTransaction, and Docker infrastructure derived from the project identity to avoid collisions between repositories.
Workflow
- Confirm the workspace contains
apps/backend/package.json. - Run the skill script:
node .agents/skills/config-prisma/scripts/init-prisma-backend.js --dry-runnode .agents/skills/config-prisma/scripts/init-prisma-backend.js --apply --install
- Add Prisma files per module (repeatable):
node .agents/skills/config-prisma/scripts/init-prisma-backend.js --apply --module auth --module product
- Start the database with backend Docker Compose:
npm --workspace apps/backend run db:start
- Validate Prisma:
npm --workspace apps/backend run prisma:generate