claude

prisma-6

Prisma 6 ORM patterns and best practices

0 on GitHubby Daniel Jankowskiv1.0.0MITupdated 11 months agolibrary
/

Plugin prisma-6 from marketplace claude-configs in djankies/claude-configs. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (19)

  • configuring-connection-pools

    Configure connection pool sizing for optimal performance. Use when configuring DATABASE_URL or deploying to production.

  • configuring-serverless-clients

    Configure PrismaClient for serverless (Next.js, Lambda, Vercel) with connection_limit=1 and global singleton pattern.

  • configuring-transaction-isolation

    Configure transaction isolation levels to prevent race conditions and handle concurrent access. Use when dealing with concurrent updates, financial operations, inventory management, or when users mention race conditions, dirty reads, phantom reads, or concurrent modifications.

  • creating-client-singletons

    Prevent multiple PrismaClient instances that exhaust connection pools causing P1017 errors. Use when creating PrismaClient, exporting database clients, setting up Prisma in new files, or encountering connection pool errors. Critical for serverless environments.

  • deploying-production-migrations

    Deploy migrations to production safely using migrate deploy in CI/CD. Use when setting up production deployment pipelines.

  • ensuring-query-type-safety

    Use Prisma's generated types, `Prisma.validator`, and `GetPayload` for type-safe queries.

  • handling-transaction-errors

    Handle transaction errors properly with P-code checking and timeout configuration. Use when implementing transaction error recovery.

  • implementing-query-caching

    Implement query result caching with Redis and proper invalidation strategies for Prisma 6. Use when optimizing frequently accessed data, improving read-heavy application performance, or reducing database load through caching.

  • implementing-query-pagination

    Implement cursor-based or offset pagination for Prisma queries. Use for datasets 100k+, APIs with page navigation, or infinite scroll/pagination mentions.

  • managing-client-lifecycle

    Manage PrismaClient lifecycle with graceful shutdown, proper disconnect timing, and logging configuration. Use when setting up application shutdown handlers, configuring logging for development or production, or implementing proper connection cleanup in Node.js servers, serverless functions, or test

  • managing-dev-migrations

    Use migrate dev for versioned migrations; db push for rapid prototyping. Use when developing schema changes locally.

  • optimizing-query-performance

    Optimize queries with indexes, batching, and efficient Prisma operations for production performance.

  • optimizing-query-selection

    Optimize queries by selecting only required fields and avoiding N+1 problems. Use when writing queries with relations or large result sets.

  • preventing-error-exposure

    Prevent leaking database errors and P-codes to clients. Use when implementing API error handling or user-facing error messages.

  • preventing-sql-injection

    Prevent SQL injection by using $queryRaw tagged templates instead of $queryRawUnsafe. Use when writing raw SQL queries or dynamic queries.

  • reviewing-prisma-patterns

    Review Prisma code for common violations, security issues, and performance anti-patterns found in AI coding agent stress testing. Use when reviewing Prisma Client usage, database operations, or performing code reviews on projects using Prisma ORM.

  • upgrading-to-prisma-6

    Migrate from Prisma 5 to Prisma 6 handling breaking changes including Buffer to Uint8Array, implicit m-n PK changes, NotFoundError to P2025, and reserved keywords. Use when upgrading Prisma, encountering Prisma 6 type errors, or migrating legacy code.

  • using-interactive-transactions

    Use interactive transactions with $transaction callback for atomic operations and automatic rollback. Use when operations must succeed or fail together.

  • validating-query-inputs

    Validate all external input with Zod before Prisma operations. Use when accepting user input, API requests, or form data.

Hooks (5)

  • SessionStart

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/init-session.sh

  • PreToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/recommend-skills.sh

  • PreToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-prisma-client.sh

  • PreToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-sql-injection.sh

  • PreToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-deprecated-apis.sh

View source on GitHub

More from djankies/claude-configs

All 9 plugins →

react-19

claude

React 19 patterns, hooks, and best practices

26 skills · hooks

0

TypeScript 5.9 type safety and best practices

15 skills · 1 command · hooks

0

nextjs-16

claude

Next.js 16 breaking changes and security patterns

9 skills · 1 MCP server · hooks

0

Brief plugin description

5 skills · 1 command · 1 agent · 3 MCP servers · hooks

0

zod-4

claude

Zod v4 schema validation and best practices

9 skills · hooks

0

Tailwind CSS v4 patterns and configuration

7 skills · hooks

0

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

Professional UI/UX design intelligence for AI coding assistants. Includes searchable databases of styles, colors, typography, charts, and UX guidelines for React, Next.js, Astro, Vue, Nuxt.js, Nuxt UI, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Jetpack Compose, Angular, Laravel, JavaFX, and Three.js.

7 skills

nextlevelbuilder/ui-ux-pro-max-skill 148,759

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

Self-learning vector database — HNSW, FlashAttention-3, Graph RAG, hybrid search, DiskANN, and Brain AGI

4 skills · 1 command · 1 agent

ruvnet/ruflo 81,589

Skill: add headroom-ai compress() to a Python or TypeScript app to cut LLM input tokens (tool outputs, logs, JSON, chat history). No API key.

1 skill

headroomlabs-ai/headroom 79,508

diagram-design

claudecodex

Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.

1 skill · 7 commands

cathrynlavery/diagram-design 66,757

Maintain prisma-6?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins9 plugins