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-handbook first if ORM is undecided.
  • Prefer api-handbook for HTTP shapes over the schema.

Mode A - generate schema

  1. Parse the user’s plain-English domain model (entities, relationships, enums).
  2. Produce schema.prisma with:
    • @@map / @map only if user prefers snake_case tables
    • IDs (cuid() or uuid() - match repo if exists)
    • indexes on foreign keys and frequent filters
  3. Include migration commands: pnpm exec prisma migrate dev --name init (or match project scripts).
  4. Requires user approval before writing files.
Installs
3
First Seen
May 30, 2026
database-schema-agent — bh611627/skillcodex