generate-data — Claude Code command: what it does, how to install
generate-data generates realistic mock datasets in CSV, JSON, or SQL using Python scripts with custom distributions and constraints.
MIT ★ 28,211 updated 2026-10-16
/plugin marketplace add phuryn/pm-skills
/plugin install pm-execution@pm-skillsWhat generate-data does
The /generate-data command converts natural language prompts or raw SQL schemas into structured test datasets. It preserves realistic relationships between tables, chronological ordering, and data constraints. Generated rows contain believable names, valid email formats, and realistic category distributions.
The workflow writes and executes a Python generator script inside your workspace. A working Python setup is required. Along with the generated CSV, JSON, or SQL insert statements, the command saves the generator script so you can re-run or adjust it later.
What it helps with
- build mock CSV or JSON datasets for API testing
- populate staging databases using SQL insert statements
- produce demo datasets with realistic distributions across tiers
Example prompts for the agent
- /generate-data 1000 users with names, emails, plan tier, signup date, and activity score
- /generate-data E-commerce orders dataset: products, customers, timestamps, amounts
- /generate-data Sample data matching this schema: CREATE TABLE users (id INT, email TEXT);
How to install generate-data
1Plugin marketplace
/plugin marketplace add phuryn/pm-skills/plugin install pm-execution@pm-skills2Manually: put the files in place
.claude/commands/generate-data.mdCall it with /generate-data. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/generate-data.mdCall it with /prompts:generate-data. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/generate-data.prompt.mdManually: put the files in place
.gemini/commands/generate-data.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about generate-data
How to install generate-data in Claude Code?
Run /plugin marketplace add phuryn/pm-skills and then install it with /plugin install pm-execution@pm-skills. Alternatively, add .claude/commands/generate-data.md to your project.
Which output formats does generate-data support?
It outputs CSV files, JSON payloads, SQL INSERT statements, and Python generator scripts.
Does generate-data require Python?
Yes. The workflow relies on running a Python script directly in your environment to build the dataset files.
Source text
generate-data.md · MIT
--- description: Generate realistic dummy datasets for testing — CSV, JSON, SQL inserts, or Python scripts argument-hint: "<description of the data you need>" --- # /generate-data -- Test Data Generator Create realistic dummy datasets for development, testing, demos, or prototyping. Outputs as ready-to-use files in your preferred format. ## Invocation ``` /generate-data 1000 users with names, emails, plan tier, signup date, and activity score /generate-data E-commerce orders dataset: products, customers, timestamps, amounts /generate-data Sample data matching this schema: [paste table definition] ``` ## Workflow ### Step 1: Define the Dataset Understand: - What entities? (users, orders, events, products, etc.) - What columns? (with data types and constraints) - How many rows? - Any relationships between tables? - Any specific distributions? (e.g., "80% should be on the free plan") - Any realistic constraints? (emails should be unique, dates should be chronological) ### Step 2: Generate the Data Apply the **dummy-dataset** skill: - Create a Python script that generates the dataset - Use realistic-looking data (not random strings): proper names, valid email formats, real-seeming dates - Respect constraints: unique IDs, foreign key relationships, chronological ordering - Apply specified distributions - Execute the script and produce the output file ### Step 3: Deliver Output in the requested format (or ask): - **CSV**: Most common, works everywhere - **JSON**: For API testing or frontend development - **SQL INSERT**: For populating test databases - **Python script**: For reproducible generation (user can tweak and re-run) ``` ## Generated Dataset: [Description] **Rows**: [count] **Columns**: [list] **Format**: [CSV / JSON / SQL / Python] ### Schema | Column | Type | Constraints | Distribution | |--------|------|-----------|-------------| ### Sample (first 5 rows) [Preview of the data] ### Files - [data file] - [generator script, if applicable] ``` Save data file and generator script to the user's workspace. ### Step 4: Offer Follow-ups - "Want me to **add more columns** or **increase the dataset size**?" - "Should I **create related tables** (e.g., orders for these users)?" - "Want me to **write test scenarios** that use this data?" - "Should I **create SQL queries** to analyze this dataset?" ## Notes - Always provide the generator script so the user can regenerate with different parameters - For demo datasets, make the data tell a story (e.g., seasonal trends, a retention problem, a power user segment) - Respect realistic cardinality: 1000 users don't have 1000 unique cities - For financial data, use realistic price distributions — not uniform random - Never include real personal data — all names, emails, and identifiers must be fake
© Paweł Huryn · MIT · phuryn/pm-skills