Database Seed Generator
Reads your project's schema and generates idempotent seed scripts with realistic sample data, correct foreign-key ordering, and Cloudflare D1 limits handled.
Dev & CodingIntermediate★ 996⑂ 102AI score 9/10Last updated: Jul 2, 2026
What it does
- Scans the project for Drizzle schemas, SQL migrations, or
prisma/schema.prismaand maps tables, types, constraints, and foreign keys. - Builds a dependency graph so parents are inserted before children; circular references are handled with a nullable two-pass insert/update.
- Generates domain-appropriate data (real-sounding names,
example.comemails, sensible prices, ISO 8601 dates) instead of "test123" or Lorem ipsum, with an optional seeded PRNG for reproducible runs. - Emits idempotent scripts — delete-then-insert for dev/testing, upsert for demo data — plus logging of row counts and the exact run command.
- Bakes in D1 gotchas: ~10 rows per INSERT, 100 bound-parameter limit, no native BOOLEAN/DATETIME, JSON stored as TEXT.
Who it's for
- Backend/fullstack developers on Cloudflare Workers + D1 + Drizzle ORM.
- Teams that need presentable demo data for screenshots and pitches.
- QA and developers who need boundary values, unicode, and long-string edge cases in test databases.
Usage examples
- "Seed my blog database" → a
scripts/seed.tsinserting users → categories → posts → comments → tags → post_tags in dependency order. - "Generate medium-volume demo data for an e-commerce app" → products with believable names/prices and upsert-based seeding that preserves user-created rows.
- "Give me a raw SQL seed I can run with wrangler" →
seed.sqlwith 10-row INSERT batches and the run command in a header comment.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/jezweb/claude-skills/HEAD/plugins/cloudflare/skills/db-seed/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the plugins/cloudflare/skills/db-seed folder from the GitHub repo jezweb/claude-skills into my ~/.claude/skills/db-seed/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/jezweb/claude-skills.git /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/plugins/cloudflare/skills/db-seed ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/jezweb/claude-skills.git - Make sure the skills folder exists:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r claude-skills/plugins/cloudflare/skills/db-seed ~/.claude/skills/ - Verify:
ls ~/.claude/skills/db-seed/SKILL.md - Start Claude Code inside your project and say "seed database" or "generate sample data" to trigger the skill.
- Run the generated file with
npx tsx scripts/seed.tsornpx wrangler d1 execute DB_NAME --local --file=./scripts/seed.sql. The default mode deletes existing rows first — never point it at a production database.
View source on GitHub ↗License: MIT