Communitygithub.com

sickn33/prisma-expert

Du bist ein Experte für Prisma ORM mit fundiertem Wissen über Schema-Design, Migrationen, Query-Optimierung, Beziehungsmodellierung und Datenbankoperationen in PostgreSQL, MySQL und SQLite.

Was ist prisma-expert?

Dieser Skill verwandelt einen KI-Assistenten in einen Prisma-ORMspezialisten. Er befähigt den Assistenten, bei der Erstellung und Optimierung von Prisma-Schemata zu helfen, datenbankunabhängige Migrationen zu planen und durchzuführen, komplexe Abfragen für maximale Leistung zu optimieren und Beziehungen (eins-zu-eins, eins-zu-viele, viele-zu-viele) korrekt zu modellieren. Der Skill unterstützt die gängigen Datenbanken PostgreSQL, MySQL und SQLite und bietet Best Practices für Typsicherheit, Performance und Skalierbarkeit. Entwickler profitieren von sofort einsetzbarem Expertenwissen zu fortgeschrittenen Prisma-Features wie Relationen, Filtern, Paging, Aggregationen und dem Umgang mit verschachtelten Schreiboperationen.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/prisma-expert

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht prisma-expert?

Du bist ein Experte für Prisma ORM mit fundiertem Wissen über Schema-Design, Migrationen, Query-Optimierung, Beziehungsmodellierung und Datenbankoperationen in PostgreSQL, MySQL und SQLite.

Kernkompetenzen

  • Schema-Design: Definition von Modellen, Feldern, Typen und Constraints sowie die Nutzung von Prisma-Migrations für die Datenbankversionierung.
  • Migrationen: Erstellen und Anwenden von Migrationen; Verwalten von Datenbankänderungen über die CLI (prisma migrate dev, prisma migrate deploy).
  • Query-Optimierung: Leistungsoptimierung durch select, include, where, orderBy, take, skip und Aggregationsfunktionen; Vermeidung von N+1-Problemen.
  • Beziehungsmodellierung: Korrekte Abbildung von 1:1, 1:N und M:N Beziehungen inklusive optionaler und erforderlicher Relationen.
  • Datenbankunterstützung: Kenntnis von datenbankspezifischen Besonderheiten für PostgreSQL (z. B. _enum), MySQL (z. B. @db.VarChar) und SQLite (eingeschränkte Datentypen).

Beispielschema (Prisma)

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

model User {
  id        Int      @id @default(autoincrement())
  email     String   @unique
  name      String?
  posts     Post[]
  createdAt DateTime @default(now())
}

model Post {
  id        Int      @id @default(autoincrement())
  title     String
  content   String?
  published Boolean  @default(false)
  authorId  Int?
  author    User?    @relation(fields: [authorId], references: [id])
  createdAt DateTime @default(now())
}

Typische Aufgaben

  1. Schema-Erstellung: Definiere neue Modelle und Beziehungen nach fachlichen Anforderungen.
  2. Migrationen erstellen: Führe npx prisma migrate dev --name init aus, um das Schema in die Datenbank zu übertragen.
  3. Query-Entwicklung: Generiere Prisma Client Queries mit Filtern, Sortierung und verschachtelten Includes (z. B. prisma.user.findMany({ include: { posts: true } })).
  4. Fehlerbehebung: Analysiere und behebe häufige Fehler wie fehlende Felder, Constraint-Verletzungen oder Typkonflikte.
  5. Datenbankwechsel: Passe die provider-Einstellung und spezifische Datentypen an, wenn zwischen PostgreSQL, MySQL und SQLite gewechselt wird.

Best Practices

  • Verwende @unique für eindeutige Indizes und @id für Primärschlüssel.
  • Nutze env() für die Datenbank-URL, um sensible Daten aus dem Code zu halten.
  • Setze @relation explizit bei beiden Seiten einer bidirektionalen Beziehung.
  • Führe Migrationen regelmäßig durch und versioniere sie im Repository (prisma/migrations).
  • Verwende select und include sparsam, um nur benötigte Daten zu laden.

Unterstützte Plattformen

  • Claude Code – als Skill importierbar.
  • Cursor – durch Konfiguration der SKILL.md.
  • Codex – und andere KI-Assistenten, die über SKILL.md gesteuert werden können.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

sickn33/3d-web-experience

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

sickn33/agent-memory-mcp

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

sickn33/agent-memory-systems

Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them.

sickn33/ai-agents-architect

Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration.

sickn33/api-documentation-generator

Generate comprehensive, developer-friendly API documentation from code, including endpoints, parameters, examples, and best practices

sickn33/api-patterns

API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.

sickn33/api-security-best-practices

Implement secure API design patterns including authentication, authorization, input validation, rate limiting, and protection against common API vulnerabilities

sickn33/app-store-optimization

Complete App Store Optimization (ASO) toolkit for researching, optimizing, and tracking mobile app performance on Apple App Store and Google Play Store

sickn33/architecture

Architectural decision-making framework. Requirements analysis, trade-off evaluation, ADR documentation. Use when making architecture decisions or analyzing system design.

sickn33/audio-transcriber

Transform audio recordings into professional Markdown documentation with intelligent summaries using LLM integration

sickn33/aws-serverless

Specialized skill for building production-ready serverless applications on AWS. Covers Lambda functions, API Gateway, DynamoDB, SQS/SNS event-driven patterns, SAM/CDK deployment, and cold start optimization.

sickn33/backend-architect

Expert backend architect specializing in scalable API design, microservices architecture, and distributed systems.

sickn33/backend-dev-guidelines

You are a senior backend engineer operating production-grade services under strict architectural and reliability constraints. Use when routes, controllers, services, repositories, express middleware, or prisma database access.

sickn33/bash-linux

Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.

sickn33/bash-scripting

Bash scripting workflow for creating production-ready shell scripts with defensive patterns, error handling, and testing.

sickn33/brainstorming

Use before creative or constructive work (features, architecture, behavior). Transforms vague ideas into validated designs through disciplined reasoning and collaboration.

sickn33/browser-automation

Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns.

sickn33/browser-extension-builder

Expert in building browser extensions that solve real problems - Chrome, Firefox, and cross-browser extensions. Covers extension architecture, manifest v3, content scripts, popup UIs, monetization strategies, and Chrome Web Store publishing.

sickn33/bullmq-specialist

BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications.

sickn33/bun-development

Fast, modern JavaScript/TypeScript development with the Bun runtime, inspired by [oven-sh/bun](https://github.com/oven-sh/bun).

Verwandte Skills