db-seed-generator
Installation
SKILL.md
DB Seed Generator
Before generating any output, read config/defaults.md and adapt all patterns, imports, and code examples to the user's configured stack.
Process
- Read
schema.prismaand extract all models, fields, types, constraints, relations, and enums. - Determine dependency order: models with no required relations first, then models that depend on them.
- Generate a
prisma/seed.tsfile with realistic fake data that respects all constraints. - Output a ready-to-run seed file.
Dependency Ordering
Build a directed graph of model dependencies from @relation fields. Topologically sort so parent records are created before children.