setup-prisma

Generate Prisma schema.prisma and database.ts for service-specific PostgreSQL setups.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/semicolon-devteam/semo --skill setup-prisma
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-prisma
Source: https://github.com/semicolon-devteam/semo/tree/main/packages/eng/ms/skills/setup-prisma
Command: npx skills add https://github.com/semicolon-devteam/semo --skill setup-prisma

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prisma 스키마 및 마이그레이션 설정을 빠르게 시작할 수 있도록 도와줍니다.

Core Features & Use Cases

  • 스키마 초기 구성: 서비스별 Prisma 스키마 기본 구조 생성.
  • 마이그레이션 템플릿: 개발/프로덕션 환경에 맞춘 마이그레이션 템플릿 제공.
  • 클라이언트 설정: Prisma Client 설정 코드 기본 생성.

Quick Start

skill:setup-prisma으로 서비스명/코드로 기본 파일 구성 생성.

Frequently Asked Questions about setup-prisma

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

FAQPage Schema
How do I bootstrap a Prisma schema for a new microservice?

Prisma schema bootstrap generates a service-specific schema.prisma file and database.ts configuration using your service name as the schema and two-letter code as table prefix. It creates the foundational structure with environment configuration and standard model templates ready for development or production use.

Can I set up Prisma migrations for multiple database schemas in PostgreSQL?

Yes. The Prisma setup configures multi-schema PostgreSQL databases where each microservice gets its own schema. Migrations are templated for both development and production environments, automating the schema isolation pattern across your services.

What does the Prisma Client configuration include in the generated setup?

The generated database.ts includes Prisma Client configuration code, environment variable mapping, and connection settings tailored to your service. It handles the initialization logic so your application can query the service-specific schema immediately.

How are table naming conventions handled when setting up Prisma for microservices?

Table names are prefixed with your two-letter service code automatically during schema generation. This prevents naming collisions across microservices sharing PostgreSQL while keeping tables logically grouped by service within the schema.

Can I customize the Prisma models during schema generation?

Yes. The setup supports optional models beyond the standard templates. You specify models during bootstrap, and they're generated into your schema.prisma alongside the core configuration and environment setup.

When should I use Prisma schema bootstrap versus manual setup?

Use bootstrap for rapid microservice onboarding with consistent schema structure, naming conventions, and migration templates. Manual setup makes sense only if your service requires non-standard database patterns or schema isolation different from the multi-schema PostgreSQL model.