Seed data

From berkcangumusisik/claude-code-practices · View interactive version

Seed data is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Creates or updates database seed files for development and testing

How to use this skill

Skill file

Generate Seed Data

Entity: $1 (or seed all entities if not specified)

  1. Check existing seeds:
ls prisma/seed* db/seeds/ seeds/ 2>/dev/null
cat prisma/seed.ts 2>/dev/null | head -50
  1. Read the schema to understand required fields:
cat prisma/schema.prisma 2>/dev/null | grep -A 20 "model $1"
  1. Generate realistic seed data (not just "test1", "test2"):
  1. Structure seeds with idempotency:
await db.upsert({
  where: { email: 'admin@example.com' },
  create: { ... },
  update: {},
})
  1. Add a reset seed variant for CI (truncate + reseed).
  1. Document how to run: bun run db:seed or equivalent.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.