backend-repository-generator

Generate Prisma backend Repository classes with soft delete and pagination.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/web3br1/luminaristest --skill backend-repository-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-repository-generator
Source: https://github.com/web3br1/luminaristest/tree/main/.claude/skills/backend-repository-generator
Command: npx skills add https://github.com/web3br1/luminaristest --skill backend-repository-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of Prisma-based backend repositories, reducing the time and effort required to implement standard data access patterns.

Core Features & Use Cases

  • Automated Repository Generation: Generates Repository classes and interfaces for Prisma models.
  • Soft Delete Support: Implements soft delete functionality by default.
  • Pagination: Provides paginated findAll methods.
  • Use Case: Ideal for developers who need to quickly create a data access layer for a new Prisma model, add specialized queries to an existing repository, or implement soft delete.

Quick Start

Generate a repository for the 'User' model with soft delete and pagination by running the command: 'backend-repository-generator User'.

Frequently Asked Questions about backend-repository-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Prisma repository with soft delete and pagination?

You can generate a Prisma repository with soft delete and pagination by running the command 'backend-repository-generator [ModelName]' in your terminal. This automates the creation of Repository classes and interfaces for your Prisma models.

What is the best way to automate backend data access layer creation for Prisma models?

Automating backend data access layer creation is achieved by generating repository classes and interfaces directly from Prisma models. This Skill handles the boilerplate, implementing standard data access patterns like soft delete and paginated findAll methods by default.

Can I use the Prisma repository generator in a TypeScript monorepo?

Yes, the Prisma repository generator is intended for use in monorepos with Prisma and TypeScript. It requires your project to have the 'generated/prisma' output path configured correctly to function properly.

Does the generated Prisma repository include soft delete functionality by default?

Yes, soft delete functionality is implemented by default in the generated Prisma repositories. This ensures that records are marked as deleted rather than being permanently removed from your database.

How do I add specialized queries to an existing Prisma repository?

You can add specialized queries to an existing Prisma repository by generating the base repository structure first. This provides a standardized interface and class structure that you can then extend with your custom query methods.