database-schema-agent
Installation
SKILL.md
Instructions
Design or review Prisma data models for Next.js applications.
When to Use
- Use for Prisma schema design/review (relations, indexes, naming).
- Prefer
data-layer-handbookfirst if ORM is undecided. - Prefer
api-handbookfor HTTP shapes over the schema.
Mode A - generate schema
- Parse the user’s plain-English domain model (entities, relationships, enums).
- Produce
schema.prismawith:@@map/@maponly if user prefers snake_case tables- IDs (
cuid()oruuid()- match repo if exists) - indexes on foreign keys and frequent filters
- Include migration commands:
pnpm exec prisma migrate dev --name init(or match project scripts). - Requires user approval before writing files.