Skip to content
Back to skills

Seed Data

ASecurity

Creates or updates database seed files for development and testing

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
ai-agentsbashtestingdatabase

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill seed-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Seed Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Seed Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-seed-data/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-seed-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: seed-data
description: Creates or updates database seed files for development and testing
argument-hint: [entity-name]
user-invocable: true
allowed-tools: Read Glob Edit Bash
effort: low
---

## Generate Seed Data

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

1. Check existing seeds:
```bash
ls prisma/seed* db/seeds/ seeds/ 2>/dev/null
cat prisma/seed.ts 2>/dev/null | head -50
```

2. Read the schema to understand required fields:
```bash
cat prisma/schema.prisma 2>/dev/null | grep -A 20 "model $1"
```

3. Generate realistic seed data (not just "test1", "test2"):
   - Use plausible names, emails, dates
   - Create relationships correctly (FK constraints)
   - Include edge cases: empty arrays, null optionals, long strings

4. Structure seeds with idempotency:
```ts
await db.upsert({
  where: { email: 'admin@example.com' },
  create: { ... },
  update: {},
})
```

5. Add a `reset` seed variant for CI (truncate + reseed).

6. Document how to run: `bun run db:seed` or equivalent.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…