seed-data

Generate 5–10 realistic seed records per Prisma model with upsert logic.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/SumitRajpal/nextjs-claude-architecture --skill seed-data-sumitrajpal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: seed-data
Source: https://github.com/SumitRajpal/nextjs-claude-architecture/tree/main/.claude/skills/seed-data
Command: npx skills add https://github.com/SumitRajpal/nextjs-claude-architecture --skill seed-data-sumitrajpal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate realistic seed data for Prisma models to bootstrap development databases quickly, avoiding manual data creation.

Core Features & Use Cases

  • Reads prisma/schema.prisma to infer model definitions and field types.
  • Generates 5-10 seed records per model with unique constraints and realistic values.
  • Writes/upserts seed records into prisma/seed.ts or prisma/seed.js, ensuring idempotency.
  • Supports relations by linking to existing seeded records.

Quick Start

Invoke the seed-data skill with a Prisma model name to generate and upsert seed records.

Frequently Asked Questions about seed-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate realistic seed data for my Prisma schema?

To generate realistic seed data for Prisma, this skill reads your prisma/schema.prisma file to infer model definitions and field types, then produces 5-10 records per model with appropriate values and relations.

Does Prisma seeding with upsert logic prevent duplicate records when run multiple times?

Yes, using upsert logic for Prisma seeding ensures non-destructive idempotent seeding, meaning running the script multiple times will safely update existing records or create them if they do not exist, preventing duplicates.

What is the best way to populate a development database with Prisma seed data automatically?

The best way to populate a development database automatically is to generate a script that writes 5-10 realistic records per model directly into prisma/seed.ts or prisma/seed.js, supporting relations by linking to existing seeded records.

Can I use this to seed Prisma models with foreign key relations?

Yes, you can seed Prisma models with foreign key relations because the skill analyzes the Prisma schema and supports relations by intelligently linking new seed records to existing seeded records in the database.

How do seed scripts handle unique constraints in Prisma models?

Seed scripts handle unique constraints in Prisma models by generating 5-10 records per model with appropriately unique and realistic field values, while using upsert operations to safely satisfy database constraints without errors.