MockData — Mock Data Generator
Generate realistic random data for testing, development, and prototyping. Outputs names, emails, phone numbers, addresses, UUIDs, CSV files, and JSON records.
Commands
| Command |
Description |
name [count] |
Generate random full names (first + last, from 160+ name pool) |
email [count] |
Generate random email addresses (realistic patterns with varied domains) |
phone [count] |
Generate random US phone numbers (+1-XXX-XXX-XXXX format) |
address [count] |
Generate random US street addresses with city, state, ZIP |
uuid [count] |
Generate random UUID v4 values (from /dev/urandom) |
csv <rows> <cols> |
Generate CSV with auto-typed columns (id, name, email, phone, city, score) |
json [count] |
Generate JSON array of records with id, name, email, phone, age, city |
Examples
# Generate 5 random names
mockdata name 5
# Generate 10 email addresses
mockdata email 10
# Generate UUIDs
mockdata uuid 3
# Generate a CSV file with 100 rows and 4 columns
mockdata csv 100 4 > test-data.csv
# Generate JSON records
mockdata json 5 > users.json
# Combine for seeding
mockdata json 50 > seed.json
Data Sources
- Names: 80+ first names × 80+ last names (10,000+ combinations)
- Emails: Varied patterns —
first.last@, firstlast42@, flast@ across 10 domains
- Phones: Random US format with valid area code ranges
- Addresses: 20 street types × 20 cities × 20 states
- UUIDs: Generated from
/dev/urandom with proper v4 formatting
CSV Column Types
Columns cycle through these types based on position:
id (sequential)
name (random full name)
email (random email)
phone (random phone)
city (random city)
score (random 0-99)
Notes
- All output goes to stdout — pipe to a file to save
- JSON output is valid JSON (array of objects)
- No external dependencies — uses bash builtins and
/dev/urandom
1---
2name: mockdata
3description: "Generate realistic fake data — names, emails, addresses — for testing and dev. Use when seeding databases, mocking API responses, creating sample records."
4version: "3.0.0"
5author: "BytesAgain"
6homepage: https://bytesagain.com
7source: https://github.com/bytesagain/ai-skills
8tags: ["mock","fake","data","generator","testing","development","faker","sample"]
9categories: ["Developer Tools", "Utility"]
10metadata:
11 source: https://skillmd.com/skills/bytesagain/mockdata
12---
13
14# MockData — Mock Data Generator
15
16Generate realistic random data for testing, development, and prototyping. Outputs names, emails, phone numbers, addresses, UUIDs, CSV files, and JSON records.
17
18## Commands
19
20| Command | Description |
21|---------|-------------|
22| `name [count]` | Generate random full names (first + last, from 160+ name pool) |
23| `email [count]` | Generate random email addresses (realistic patterns with varied domains) |
24| `phone [count]` | Generate random US phone numbers (+1-XXX-XXX-XXXX format) |
25| `address [count]` | Generate random US street addresses with city, state, ZIP |
26| `uuid [count]` | Generate random UUID v4 values (from /dev/urandom) |
27| `csv <rows> <cols>` | Generate CSV with auto-typed columns (id, name, email, phone, city, score) |
28| `json [count]` | Generate JSON array of records with id, name, email, phone, age, city |
29
30## Examples
31
32```bash
33# Generate 5 random names
34mockdata name 5
35
36# Generate 10 email addresses
37mockdata email 10
38
39# Generate UUIDs
40mockdata uuid 3
41
42# Generate a CSV file with 100 rows and 4 columns
43mockdata csv 100 4 > test-data.csv
44
45# Generate JSON records
46mockdata json 5 > users.json
47
48# Combine for seeding
49mockdata json 50 > seed.json
50```
51
52## Data Sources
53
54- **Names:** 80+ first names × 80+ last names (10,000+ combinations)
55- **Emails:** Varied patterns — `first.last@`, `firstlast42@`, `flast@` across 10 domains
56- **Phones:** Random US format with valid area code ranges
57- **Addresses:** 20 street types × 20 cities × 20 states
58- **UUIDs:** Generated from `/dev/urandom` with proper v4 formatting
59
60## CSV Column Types
61
62Columns cycle through these types based on position:
631. `id` (sequential)
642. `name` (random full name)
653. `email` (random email)
664. `phone` (random phone)
675. `city` (random city)
686. `score` (random 0-99)
69
70## Notes
71
72- All output goes to stdout — pipe to a file to save
73- JSON output is valid JSON (array of objects)
74- No external dependencies — uses bash builtins and `/dev/urandom`