data-seeding

Seed databases with realistic development and test data using Faker.js.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/motormetrics/motormetrics --skill data-seeding-motormetrics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-seeding
Source: https://github.com/motormetrics/motormetrics/tree/main/.claude/skills/data-seeding
Command: npx skills add https://github.com/motormetrics/motormetrics --skill data-seeding-motormetrics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Seed scripts live in packages/database/src/seed/.

This Skill automates the creation and updating of seed data for development and testing environments, enabling reproducible datasets and faster onboarding.

Core Features & Use Cases

  • Seed runners and scripts support modular, repeatable data generation across environments.
  • Includes patterns for deterministic seeds, idempotent upserts, and environment-specific datasets.
  • CLI-based selective seeding and easy integration with Faker.js for realistic sample data.

Quick Start

Run the seed runner to populate development and test data with realistic sample records.

Frequently Asked Questions about data-seeding

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

FAQPage Schema
How do I seed a database with realistic test data using Faker?

Seed a database with realistic test data by running the seed runner to populate development environments with sample records generated via Faker.js integration. This automates the creation of reproducible datasets for faster onboarding.

What is the best way to create idempotent database seeds in TypeScript?

Create idempotent database seeds by applying upsert patterns within your TypeScript seed scripts. This ensures repeatable data generation across environments without duplicating records when the seed runner executes multiple times.

Can I run selective database seeding from the CLI for specific schemas?

CLI-based selective seeding allows targeting specific schemas directly from the command line. You can initialize specific development datasets or reset data states across multiple schemas without running the entire seed suite.

How do you manage environment-specific seed data for development and testing?

Manage environment-specific seed data by configuring modular seed scripts that support distinct datasets for development and testing. This enables reproducible datasets tailored to each environment's requirements during initialization.

Does database seeding work for resetting data states across multiple schemas?

Database seeding supports resetting data states across multiple schemas by executing targeted seed runners. This applies environment-specific seeds and deterministic data generation to restore or initialize the required database structure.