database-seeding

Generate deterministic relational seed data for PostgreSQL, MySQL, and SQLite databases.

Updated Nov 13, 2025
One-click install
npx skills add https://github.com/caseymanos/dev-skills-marketplace --skill database-seeding-caseymanos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-seeding
Source: https://github.com/caseymanos/dev-skills-marketplace/tree/main/devEnv/dev-skills-marketplace/skills/database-seeding
Command: npx skills add https://github.com/caseymanos/dev-skills-marketplace --skill database-seeding-caseymanos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @faker-js/faker, pg, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

Generate and manage realistic seed data for development and testing databases. It automates creation of related entities (users, posts, comments), supports migrations, and provides deterministic options for reproducible tests.

Core Features & Use Cases

  • Automates generation of realistic test data for development databases, including users, posts, and comments with referential integrity.
  • Supports batch inserts and migration-friendly workflows to integrate seeds into CI, local dev, and staging environments.
  • Provides both code-based TS/SQL seeding options and an SQL fallback for flexible projects.

Quick Start

Run npm run seed to populate your development database with realistic users, posts, and comments.

Frequently Asked Questions about database-seeding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I seed realistic relational data for a development database?

Seed realistic relational data for development databases by generating related entities like users, posts, and comments. This Skill automates creation with referential integrity, batch inserts, and deterministic options for reproducible tests across PostgreSQL, MySQL, and SQLite environments.

How do I generate deterministic seed data for CI pipelines?

Generate deterministic seed data for CI pipelines by applying reproducible datasets to local dev environments and integration workflows. The Skill enforces deterministic seeds and batch inserts, ensuring consistent test data generation across migration workflows and automated testing infrastructures.

Can I use Faker with PostgreSQL to generate test data?

Yes, you can use Faker with PostgreSQL to generate test data. The Skill relies on the @faker-js/faker dependency to produce realistic development data and the pg dependency to interact with PostgreSQL databases, ensuring accurate and relational test records.

Does database seeding work with migration workflows?

Database seeding works with migration workflows by providing migration-friendly integration for local dev, staging, and CI environments. It supports both code-based TypeScript and SQL fallback options, allowing flexible insertion of reproducible datasets alongside your existing schema management processes.

What is the best way to populate a testing database with related records?

The best way to populate a testing database with related records is to automate batch inserts of entities like users, posts, and comments. This approach maintains referential integrity and integrates with migrations to ensure your testing database contains consistent, realistic data.

Do I need TypeScript to seed data into a database?

You do not need TypeScript to seed data into a database. While the Skill provides code-based TypeScript seeding options for developers, it also includes an SQL fallback for flexible projects, allowing you to populate development and testing databases without a TS dependency.