backend-service-generator

Generate TypeScript backend service classes with Prisma and factory registration for Luminaris.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires prisma, typescript, luminaris, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of backend service classes, simplifying the development of business logic and data access layers for new features.

Core Features & Use Cases

  • Automated Service Generation: Generates server/src/features/<resource>/services/<Resource>Service.ts files with dependency injection, typed errors, and registration in server/src/lib/factory.ts.
  • Use Case: When creating a new business domain, adding complex operations involving multiple repositories, or extracting logic from a controller to a service.

Quick Start

Use the backend-service-generator skill to generate a service for the feature 'Appointment' by providing the argument 'Appointment'.

Frequently Asked Questions about backend-service-generator

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

FAQPage Schema
How do I generate backend service classes for business logic and data access?

To generate backend service classes for business logic and data access, use a generator that creates files with dependency injection, typed errors, and factory registration for your specific resource. You provide the resource name as an argument to scaffold the service file automatically.

When do I need to create a backend service for my application?

You need to create a backend service when introducing a new business domain, adding complex operations involving multiple repositories, or extracting logic from a controller to a dedicated service layer for better separation of concerns.

Does backend service generation work with Prisma and TypeScript?

Yes, backend service generation works with Prisma and TypeScript, specifically requiring a monorepo architecture. The generated service files enforce typed errors and handle cross-tenant data access within this TypeScript environment.

What's the best way to set up dependency injection for a new service class?

The best way to set up dependency injection for a new service class is through an automated generator that outputs the service file and registers it directly in your factory module, ensuring the container properly resolves dependencies.

How do I handle cross-tenant data access and policy checks in a generated service?

Generated services handle cross-tenant data access and policy checks natively by embedding these constraints directly into the service class structure during creation, ensuring secure operations across different tenant boundaries.

Can I use this service generator outside of a Luminaris monorepo architecture?

No, this service generator is specifically designed for the Luminaris monorepo architecture. It requires the specific factory registration mechanism and directory structure defined by that architecture to function properly.