Database Seed Data Skill for Claude Code
Build repeatable development fixtures from SQL or ORM schemas by honoring foreign keys, uniqueness, and expected row counts.
中文Install in Claude Code
Use a throwaway development database and its schema. The example uses Prisma. Use a fixed Faker seed for any generated attributes.
- Get the complete `plugins/database/data-seeder-generator/skills/generating-database-seed-data` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/generating-database-seed-data/SKILL.md`, start Claude Code at the project root, and call `/generating-database-seed-data`.
Example task
Seed three synthetic customers, two orders per customer, and two line items per order. Upsert stable IDs such as customer-01. Run twice and query row counts and orphaned children.What to check
Both runs leave 3 customers, 6 orders, and 12 line items. No orphaned orders or line items remain.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should fixtures come from real customers?
Generate synthetic values on a reserved example domain and explicitly cover business boundary conditions in the fixture.