
Db Seed
Generates realistic seed scripts for dev, demo, and test databases, ordered by foreign keys.
- CCM score
- 69 of 100
- skills.sh installs
- 983
- GitHub stars
- 1.1K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers schema discovery from Drizzle files, SQL migrations, raw SQL, and Prisma, then produces TypeScript or raw SQL seed files
- Includes D1-specific handling for 10-row insert batches, boolean and datetime mapping, JSON text fields, and the 100-parameter limit
- Enforces parent-before-child insert order, with two-pass inserts for circular foreign keys and delete-then-insert idempotency
- Designed for developers populating local or demo Cloudflare D1 and SQLite databases with domain-appropriate sample data
Install
$ npx -y skills add jezweb/claude-skills --skill db-seed -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Database Seed Generator
Generate seed scripts that populate databases with realistic, domain-appropriate sample data. Reads your schema and produces ready-to-run seed files.
Workflow
1. Find the Schema
Scan the project for schema definitions:
| Source | Location pattern |
|---|---|
| Drizzle schema | src/db/schema.ts, src/schema/*.ts, db/schema.ts |
| D1 migrations | drizzle/*.sql, migrations/*.sql |
| Raw SQL | schema.sql, db/*.sql |
| Prisma | prisma/schema.prisma |
Read all schema files. Build a mental model of:
- Tables and their columns
- Data types and constraints (NOT NULL, UNIQUE, DEFAULT)
- Foreign key relationships (which tables reference which)
- JSON fields stored as TEXT (common in D1/SQLite)
2. Determine Seed Parameters
Ask the user:
| Parameter | Options | Default |
|---|---|---|
| Purpose | dev, demo, testing | dev |
| Volume | small (5-10 rows/table), medium (20-50), large (100+) | small |
| Domain context | "e-commerce store", "SaaS app", "blog", etc. | Infer from schema |
| Output format | TypeScript (Drizzle), raw SQL, or both | Match project's ORM |
Details
- Repository
- github.com/jezweb/claude-skills
- Category
- Databases
- First seen
- May 16, 2026
More from jezweb/claude-skills
All 64- Nz Business English945
- Fork Discipline916
- Nemoclaw Setup915
- React Native Expo738
- Ux Extract701
- Ux Compare675
- Image Gen350
- Shadcn Ui3.6K
- Color Palette3.4K
- Tailwind Theme Builder3.3K
- Ux Audit3.1K
- Wordpress Elementor3.1K
- Image Processing2.5K
- Favicon Gen2.3K
- Tanstack Start2.2K
- Google Apps Script2.1K
- Icon Set Generator2K
- Seo Local Business1.9K
- Responsiveness Check1.9K
- Vitest1.8K
- Wordpress Content1.7K
- D1 Drizzle Schema1.7K
- Elevenlabs Agents1.7K
- Project Health1.6K
Similar to Db Seed
More Databases
d1-drizzle-schemajezweb/claude-skills1.7K installsGenerate Drizzle ORM schemas for Cloudflare D1 with D1-specific column patterns, migrations, and docs.
data-seeding-fixtures-builderpatricio0312rev/skills265 installsGenerates deterministic seed data with factories, realistic fixtures, and database reset scripts for dev and test.
database-schema-designeralirezarezvani/claude-skills737 installsDesigns relational schemas from requirements, producing ERDs, normalized DDL, migrations, types, and RLS policies.
drizzle-migrationsbobmatnyc/claude-mpm-skills1.3K installsMigration-first Drizzle ORM workflow for TypeScript projects that writes SQL migrations before schema code.