prisma-patterns

Standardize Prisma schema conventions, migrations, and query patterns.

Updated Jul 11, 2025
One-click install
npx skills add https://github.com/mattleonard16/taxhelper --skill prisma-patterns-mattleonard16
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-patterns
Source: https://github.com/mattleonard16/taxhelper/tree/main/.factory/skills/prisma-patterns
Command: npx skills add https://github.com/mattleonard16/taxhelper --skill prisma-patterns-mattleonard16

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prisma schema conventions, migrations, and query patterns for TaxHelper streamline database development and optimize data access when evolving the data model.

Core Features & Use Cases

  • Enforces consistent Prisma model naming, field types, and indexing across the project.
  • Provides best practices for migrations, decimal handling, and repository patterns to ensure maintainability and performance.
  • Use case: when updating the schema, generating migrations, and optimizing complex queries for reporting.

Quick Start

Follow these steps to align your Prisma setup with the project conventions and generate stable migrations.

Frequently Asked Questions about prisma-patterns

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

FAQPage Schema
How do I handle decimal values in Prisma to prevent calculation errors?

Decimal handling in Prisma requires standardized conventions to ensure precise financial data representation. By applying explicit field types and repository patterns, you maintain accuracy and consistency across complex queries and schema migrations.

What is the best way to structure Prisma schema migrations for a growing project?

Prisma schema migrations are standardized through explicit naming conventions and structured migration scripting. This approach enforces consistent model definitions and indexing strategies, ensuring maintainability and performance as your data model evolves.

How do I implement a repository pattern with Prisma for complex queries?

Implementing a repository pattern with Prisma involves standardizing query conventions to optimize data access. This pattern abstracts database operations, improving maintainability and performance for complex reporting queries across your schema.

When should I add indexing strategies to my Prisma schema?

Indexing strategies in Prisma should be applied when optimizing complex queries for reporting and data retrieval. Explicit indexing conventions ensure scalable performance across your database schema as data volume and query complexity increase.

Does this Prisma convention support scalable database schema updates?

These Prisma conventions are designed for scalable data environments, specifically addressing TaxHelper data structures. The standardized migration scripting and schema conventions ensure maintainability and performance during schema changes and complex query optimization.