# Build Prisma v7 Projects Safely

Prisma v7 changed client generation, adapters, and configuration. This skill gives concise patterns for setup, migration, queries, and troubleshooting.

## Install

```bash
npx skillstore add djordjevuckovic/prisma-v7
```

## Metadata

- Status: approved
- Slug: djordjevuckovic-prisma-v7
- Skillstore revision: r1
- Version status: missing
- Tree hash: f2396a38b600a09039c42b06609d158e445b43f51bfbde0002f13cdef1f66398
- Author: DjordjeVuckovic
- GitHub username: DjordjeVuckovic
- License: MIT
- Repository: https://github.com/DjordjeVuckovic/sol-backend-kit/tree/main/apps/wallet-listener/.claude/skills/prisma-v7
- Ref: 72d5025b022c77f7a51bdf5c1637c689c80e89d1
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem, env\_access
- Quality score: 77
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/djordjevuckovic-prisma-v7
- Manifest: https://skillstore.pages.dev/api/skills/djordjevuckovic-prisma-v7/manifest

## Capabilities

- Explains Prisma v7 ESM requirements and generator output changes.
- Shows how to configure prisma.config.ts and driver adapters.
- Guides upgrades from Prisma v6 to Prisma v7.
- Provides schema, relation, migration, and Prisma Client query patterns.
- Covers common troubleshooting steps for generation, connection, and migration issues.
- Summarizes security and performance practices for Prisma applications.

## Use Cases

- Start a Prisma v7 Project: Set up Prisma v7 with ESM, generated client output, a driver adapter, and environment-based configuration.
- Upgrade from Prisma v6: Plan package updates, adapter installation, client regeneration, and schema configuration changes for a v7 migration.
- Standardize Database Patterns: Create consistent guidance for schema relations, migrations, query shapes, pooling, and operational troubleshooting.

## Prompt Templates

### Plan a New Setup

```
Use the prisma-v7 skill to outline a Prisma v7 setup for a TypeScript PostgreSQL project. Include required packages, config files, and first migration steps.
```

### Review My Schema

```
Use the prisma-v7 skill to review my Prisma schema for v7 compatibility, relation design, indexes, generator output, and datasource configuration.
```

### Troubleshoot Generation

```
Use the prisma-v7 skill to diagnose why Prisma Client generation fails after an upgrade. Ask for missing project details before recommending commands.
```

### Design a Migration Plan

```
Use the prisma-v7 skill to create a staged v6 to v7 migration plan for a production TypeScript service with PostgreSQL and connection pooling.
```

## Limitations

- It provides guidance only and does not inspect a live database.
- It cannot verify installed package versions without project context.
- It does not replace review of production migration plans.
- Database-specific edge cases may need vendor documentation.

## Best Practices

- Confirm the database adapter before changing client instantiation.
- Keep database URLs in environment variables and out of schema files.
- Test migrations on staging before applying them to production.

## Anti Patterns

- Using Prisma v6 client defaults without reviewing v7 output changes.
- Running reset or push commands against production databases.
- Hardcoding credentials or connection URLs in application source files.

## Security Audit

- Audited at: 2026-07-06T11:31:27.049\+00:00
- Summary: The static findings are false positives from Markdown documentation, code fences, placeholder environment values, and Prisma setup examples. I found no prompt injection, credential exfiltration intent, hidden automation, or malicious command execution in SKILL.md.

## Stats

- Views: 317
- Downloads: 9
- Favorites: 0
- Popularity score: 0
