data-seeding-fixtures-builder

Generate deterministic seed data using Prisma and Faker.js factory functions.

1|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/zinohome/CozyChat --skill data-seeding-fixtures-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-seeding-fixtures-builder
Source: https://github.com/zinohome/CozyChat/tree/main/.claude/skills/data-seeding-fixtures-builder
Command: npx skills add https://github.com/zinohome/CozyChat --skill data-seeding-fixtures-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @faker-js/faker, @prisma/client, tsx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of realistic and deterministic data for development and testing environments, ensuring consistency and efficiency in the software development lifecycle.

Core Features & Use Cases

  • Deterministic Data Generation: Creates the same dataset every time using faker seeds, crucial for reproducible tests.
  • Factory Functions: Provides reusable functions to create individual data models (e.g., users, products) with customizable options.
  • Realistic Fixtures: Includes pre-defined, production-like data sets for various entities.
  • Environment-Specific Seeding: Supports different data generation strategies for development, staging, and testing environments.
  • Database Reset Script: Offers a utility to clear and reset the database to a clean state.
  • E2E Test Fixtures: Integrates with testing frameworks like Playwright to set up necessary data for end-to-end tests.

Quick Start

Run the 'db:seed' script to populate your database with development data.

Frequently Asked Questions about data-seeding-fixtures-builder

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

FAQPage Schema
How do I generate deterministic seed data for database testing?

To generate deterministic seed data for database testing, this Skill utilizes faker seeds and factory functions to create the exact same realistic dataset every time, ensuring your tests are fully reproducible.

What is the best way to reset a Prisma database to a clean state for E2E tests?

The best way to reset a Prisma database for E2E tests is using a dedicated database reset script that clears records, followed by environment-specific seeding strategies to populate necessary test fixtures.

Can I use Faker.js factory functions to create mock data with customizable options?

Yes, you can use Faker.js factory functions to create mock data with customizable options, allowing you to generate individual data models like users or products tailored to your specific testing requirements.

Does database seeding work with Playwright for end-to-end test fixtures?

Database seeding works with Playwright by providing E2E test fixtures that integrate directly with testing frameworks, setting up the necessary production-like data sets required before running end-to-end test scenarios.

How do I populate my development environment with realistic test fixtures?

You populate your development environment with realistic test fixtures by running the 'db:seed' script, which executes environment-specific seeding strategies to inject pre-defined data directly into your database.