backend-prisma-repository
Installation
SKILL.md
Backend Prisma Repository
Objective
Implement in the NestJS backend the Prisma version of a repository interface defined in a business module within modules/.
This skill works on a single contract per execution and must create the *.prisma.ts implementation, register the concrete class in the corresponding Nest module, and ensure use of PrismaService provided by DbModule.
Mandatory gate
- This skill can execute only when the target repository interface is explicitly provided.
- Accepted inputs:
- exact interface name, such as
UserRepository, when context points unambiguously to a single file - interface file path, such as
modules/auth/src/user/provider/user.repository.ts - equivalent reference that identifies a single repository contract
- exact interface name, such as
- If the interface is not provided or there is ambiguity between more than one file, stop immediately.
- In that situation, ask the user which repository interface they want implemented.
- Without that information, do not read to infer by similarity, do not edit files, and do not register providers.
- This skill must not modify the provided repository interface file or any other domain module file inside
modules/<modulo>/src/**. - This skill must not add, remove, or change exports, tokens, types, methods, imports, or any other part of the original interface.