2.5k
GitHub Stars
3
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill openclaw/skills --skill mock-gen- _meta.json274 B
- README.md515 B
- SKILL.md2.7 KB
Overview
This skill generates realistic mock data from plain English descriptions, TypeScript types, or JSON schemas. It produces JSON, CSV, or SQL insert output with configurable record counts and optional file writing. Use it to get sensible, varied test data instantly without writing it by hand.
How this skill works
You provide a brief description, a TypeScript type file, or a JSON schema. The tool uses an AI-backed generator to infer fields, types, and plausible values, then formats the results as JSON, CSV, or SQL inserts. Specify record count and output file flags to control volume and destination.
When to use it
- Seeding a development database with realistic sample rows
- Creating frontend API mocks and prototypes quickly
- Generating varied inputs for unit or integration tests
- Preparing demo data for presentations or marketing
- Converting TypeScript types or JSON schemas into example records
Best practices
- Be specific in descriptions (e.g., 'US addresses' or 'ISO dates') to improve realism
- Provide TypeScript types or JSON schemas when you need exact field names and types
- Generate a small sample (5–10 records) first to verify structure and quality
- Choose output format that matches your use case: JSON for APIs, CSV for spreadsheets, SQL for seeding
- Scale up record count after confirming the sample meets expectations
Example use cases
- npx ai-mock-data "users with name, email, and signup date" to create API fixtures
- npx ai-mock-data "products with SKU, name, price, and category" -c 50 -f csv for spreadsheet imports
- npx ai-mock-data "fill this schema" -s ./types/User.ts -o mock-users.json to match TypeScript types
- Generate 100 realistic order records to load into a dev database for load testing
- Create varied test payloads for automated tests that require realistic edge cases
FAQ
No install is required—run it with npx and Node.js 18+ is recommended.
What input formats are supported?
You can use plain English descriptions, TypeScript type files, or JSON schemas as input.