Prisma 7 CLI Skill for Claude Code: Validate Schema and Generate the Client
The Prisma CLI skill explains how to use the project's Prisma ORM 7 commands for validation, client generation, migrations, and local inspection.
中文Setup for Claude Code
Claude Code with an existing Prisma ORM 7 project, its version-matched project CLI, and the normal project configuration. Use a disposable checkout for schema experiments.
- Copy the pinned prisma-cli folder into .claude/skills/prisma-cli/.
- Open Claude Code at the project root. Confirm the project already uses Prisma ORM 7 and has the expected generator and datasource configured.
- Invoke /prisma-cli for validation and client generation using the project's package runner.
Example task
Add an optional subtitle field to a Book model in a disposable Prisma 7 project. Ask how to validate the schema and regenerate the client without applying a database migration.Expected result
The project-matched validation and generation commands are identified, and the output path matches the generator settings. No database change is requested.
Upstream documentation
Original SKILL.md on GitHub · MIT license · Source reviewed
Frequently asked question
Is this guide for the Prisma Platform CLI or newer major versions?
It covers the Prisma ORM 7 CLI. Follow the separate setup skill when establishing another major version or repairing a connection.