mock-data
Generate realistic mock data from TypeScript types
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/ai-mock-dataMock Data Generator
Give it your types, get realistic fake data. Perfect for tests and development.
Quick Start
npx ai-mock-data ./src/types/User.ts
What It Does
- Reads TypeScript interfaces
- Generates realistic fake data
- Understands field names (email, phone, etc.)
- Creates arrays with varied data
Usage Examples
# Generate from type file
npx ai-mock-data ./src/types/Order.ts
# Generate specific count
npx ai-mock-data ./types/User.ts --count 50
# Output as JSON file
npx ai-mock-data ./types/Product.ts --out ./fixtures/products.json
# Generate for specific type
npx ai-mock-data ./types/index.ts --type Customer
Output Example
[
{
"id": "usr_8x7k2m",
"email": "[email protected]",
"name": "Sarah Chen",
"createdAt": "2024-01-15T09:23:00Z"
}
]
Smart Field Detection
email→ realistic emailsphone→ formatted phone numbersaddress→ real-looking addressesprice→ appropriate currency values
Requirements
Node.js 18+. OPENAI_API_KEY required.
License
MIT. Free forever.
Built by LXGIC Studios
- GitHub: github.com/lxgicstudios/ai-mock-data
- Twitter: @lxgicstudios
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-ai-mock-data": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.