prisma-7
БесплатноБез исполняемых скриптовНе проверенUse when working with database schema, migrations, queries, or relations via Prisma 7 (Rust-free client, TypedSQL, Omit API).
от Fusengine★ 36 звёзд на GitHubОб этом скилле
Also spans migrations (baselining, shadow database, squashing, zero-downtime), performance (N+1 detection, connection pooling, Accelerate), security (SQL injection prevention, row-level security, encryption), per-database guides (PostgreSQL, MySQL, SQLite, CockroachDB, Turso — MongoDB unsupported in all Prisma 7.x releases through 7.10; stay on 6.19), framework integrations (Next.js, Astro, SvelteKit, Remix, and more), and deployment across Vercel/Netlify/Railway/AWS Lambda/Cloudflare Workers/Docker. Includes SOLID-compliant TypeScript interface references for schema design. Does not cover Better Auth's own database adapter configuration in depth (better-auth) — this skill is the ORM layer itself.
Prisma 7 ORM
Rust-free TypeScript ORM with 90% smaller bundles and 3x faster queries.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing schema and database patterns
- fuse-ai-pilot:research-expert - Verify latest Prisma 7 docs via Context7/Exa
- mcp__context7__query-docs - Check breaking changes and migration guide
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
When to Use
- Database access in Next.js 16 applications
- Type-safe queries with full TypeScript inference
- Schema-first database modeling and migrations
- Complex queries requiring TypedSQL
- Excluding sensitive fields with Omit API
Why Prisma 7
| Feature | Benefit |
|---|---|
| Rust-free client | 90% smaller bundles (14MB → 1.6MB) |
| Query performance | Up to 3x faster on large datasets |
| ESM-first | Native ES modules, modern architecture |
| TypedSQL | Type-safe raw SQL queries |
| Omit API | Exclude sensitive fields globally |
| Driver adapters | Direct database driver integration |
Breaking Changes from v6
Critical Migration Points
| Change | v6 | v7 |
|---|---|---|
| Provider | prisma-client-js |
prisma-client |
| Output path | Optional | REQUIRED |
| Import | @prisma/client |
./generated/prisma/client |
| Drivers | Built-in | Adapter required |
| Config | Schema only | prisma7.config.ts (7.10+, falls back to prisma.config.*); prisma.config.ts (7.0–7.9) — edit the file prisma init created |
Required Schema Changes
Provider must be prisma-client with explicit output path. No more generation to node_modules.
Driver Adapters Required
PostgreSQL requires @prisma/adapter-pg, MySQL requires @prisma/adapter-mariadb, SQLite requires @prisma/adapter-better-sqlite3.
Notable 7.x Minor Releases (current stable: 7.10.1)
| Version | Change |
|---|---|
| 7.4 | Query plan caching in Prisma Client; partialIndexes preview feature (@@index(..., where: raw("..."))) |
| 7.5 | Nested transaction rollbacks via savepoints |
| 7.6 | prisma postgres link; @prisma/adapter-pg accepts a connection string directly |
| 7.7 | prisma bootstrap command |
| 7.8 | queryPlanCacheMaxSize option on PrismaClient (0 disables the cache) |
| 7.9 | CLI tab completions; AI-agent safety checks extended to db push --accept-data-loss; TypeScript perf regression from 7.0 fixed |
| 7.10 | Prisma Studio bound to 127.0.0.1 with origin checks; @prisma/adapter-mariadb accepts an existing pool |
Prisma 8 is in release candidate only (npm latest tag points to 8.0.0-rc.*) — pin prisma@7 / @prisma/client@7 for stable installs.
SOLID Architecture
Module Structure
Database code organized in modules/cores/db/:
modules/cores/db/prisma.ts- Singleton PrismaClientmodules/cores/db/generated/- Generated clientprisma/schema.prisma- Schema definitionprisma/migrations/- Migration historyprisma7.config.ts- Prisma configuration (7.0–7.9:prisma.config.ts)
File Organization
| File | Purpose |
|---|---|
prisma.ts |
Singleton client |
schema.prisma |
Models, relations |
seed.ts |
Database seeding |
Key Concepts
Singleton Pattern (Next.js)
Prevent multiple PrismaClient instances during hot-reload. Use globalThis to cache instance in development.
Output Path
Generated client goes to custom path, not node_modules. Import from generated folder.
Driver Adapters
Direct database driver integration for
Установить prisma-7 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл prisma-7?
Use when working with database schema, migrations, queries, or relations via Prisma 7 (Rust-free client, TypedSQL, Omit API).
Как установить скилл prisma-7?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prisma-7 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic