mock-data

Generate realistic mock data with Faker.js for testing and development environments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of realistic mock data for testing, seeding, and development environments to speed up QA and reduce data gaps.

Core Features & Use Cases

  • Factory-based data, including cars, blog posts, COE bids, and more.
  • Locale-aware generation with Faker.js for diverse datasets.
  • Seeding-ready patterns to populate test databases and mocks.

Quick Start

Generate a set of mock car records and seed them into your test database.

Frequently Asked Questions about mock-data

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

FAQPage Schema
How do I generate realistic mock data for testing without manually creating fixtures?

Generate realistic mock data using factory-based patterns with Faker.js to automatically produce diverse test fixtures across personas, locations, dates, and commerce data. This speeds up test setup and ensures reproducible, varied datasets for unit, integration, and end-to-end tests.

Can I seed a test database with mock data quickly?

Yes. Use seeding-ready patterns to populate test databases with generated mock records. The Skill provides factory patterns for common entities like cars and blog posts, enabling rapid database seeding for development and staging environments.

How do I create consistent, reusable test data across multiple tests?

Use overridable factories, class-based patterns, and sequence utilities to generate reproducible mock data. These mechanisms ensure data variety while maintaining consistency across test runs and different test scenarios.

What data types can I generate for API response mocking?

Mock realistic data across personas (names, emails), locations, dates, commerce, vehicle data, and lorem text. Faker.js locale-aware generation supports diverse datasets suitable for mocking API responses and staging scenarios.

Does this work for both unit tests and end-to-end tests?

Yes. The seeding patterns and factory approach apply across unit, integration, and end-to-end tests, as well as staging scenarios. A single factory can generate consistent mock data for all testing levels.