mock-generate

Generate mock data and test fixtures from TypeScript, JSON Schema, Prisma, OpenAPI, and GraphQL schemas.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/manastalukdar/claude-devstudio --skill mock-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mock-generate
Source: https://github.com/manastalukdar/claude-devstudio/tree/main/skills/mock-generate
Command: npx skills add https://github.com/manastalukdar/claude-devstudio --skill mock-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of realistic mock data and test fixtures, saving developers significant time and effort in setting up testing and development environments.

Core Features & Use Cases

  • Mock Data Generation: Creates mock data from various schema types (TypeScript, JSON Schema, Prisma, OpenAPI, GraphQL).
  • Test Fixture Creation: Generates factory functions for common testing frameworks.
  • Database Seeding: Provides scripts to populate databases with mock data.
  • Use Case: When developing a new API endpoint, use this Skill to generate a comprehensive set of mock user and post data to test your API's responses and database interactions thoroughly.

Quick Start

Use the mock-generate skill to create mock user data based on your TypeScript types.

Frequently Asked Questions about mock-generate

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

FAQPage Schema
How do I generate mock data from TypeScript types and JSON schemas?

This skill generates mock data from TypeScript types and JSON schemas by automating the creation of type-safe mock functions and test fixtures. It reads your schema definitions to produce realistic data structures matching your exact types.

What is the best way to create test fixtures for Prisma and GraphQL schemas?

The best way to create test fixtures for Prisma and GraphQL schemas is to use factory functions generated directly from the schema definitions. This approach ensures your fixtures remain type-safe and automatically align with your database and API structures.

Can I use this to generate database seeding scripts for OpenAPI definitions?

Yes, you can generate database seeding scripts from OpenAPI definitions. It provides automated scripts that populate databases with mock data derived directly from your API schema structures.

Does mock data generation work without external dependencies?

Yes, mock data generation works without external dependencies. The skill operates independently to generate data from TypeScript, JSON Schema, Prisma, OpenAPI, and GraphQL inputs without requiring external packages or libraries.

How does this approach optimize token usage when generating test data?

Token usage is optimized through caching, grep-based discovery, and template-based generation. These mechanisms minimize redundant processing by reusing existing mock structures and only generating the necessary data increments.

What are the limitations of using schema-based mock data generation?

The main limitation of schema-based mock data generation is that output realism depends entirely on the provided schema definitions. While it automates structurally accurate data, complex business logic constraints may require manual fixture adjustments.