Mock Gen for Openclaw

A high-speed utility to generate realistic mock data from natural language descriptions, TypeScript types, or existing schemas.

lxgicstudios
v1.0.0
Jan 28, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mock-gen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mock-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Mock Gen?

Mock Gen is a developer-focused tool designed to eliminate the manual labor of creating test data. By leveraging AI, it allows developers to transform plain English descriptions, TypeScript types, or JSON schemas into high-quality datasets. This utility is a core part of the Openclaw Skills ecosystem, ensuring that developers can focus on building features rather than hand-writing JSON records.

The tool is built to be zero-configuration, meaning it works right out of the box without complex setup. It intelligently understands context—for example, knowing that a user needs a realistic US address rather than just a random string—making it an essential asset for anyone looking to populate applications with meaningful data.

Mock Gen Use Cases

  • Seeding development databases with realistic SQL inserts for local testing.
  • Creating frontend prototypes that require varied and realistic API responses.
  • Generating edge-case test data for QA and automated testing pipelines.
  • Preparing high-quality sample data for product demonstrations and client presentations.

How Mock Gen Works

  1. The user provides a natural language description, a TypeScript file path, or a JSON schema via the CLI.
  2. The tool processes the input through an AI model that understands data structures and semantic requirements.
  3. Realistic, varied records are generated that strictly adhere to the provided schema or the inferred context.
  4. The resulting data is formatted into the user's choice of JSON, CSV, or SQL insert statements.
  5. The output is printed to the terminal or saved directly to a file via the output flag.

Mock Gen Setup

No permanent installation is required to use this tool. You can run it directly using npx. Node.js 18+ is recommended for best results.

npx ai-mock-data "your description here"

To see all available options and flags, run:

npx ai-mock-data --help

Mock Gen Data Schema & Taxonomy

Mock Gen organizes its output based on the provided schema or description. It can handle various data structures and map them to the following output taxonomy:

Input Source Output Formats Organization Method
Natural Language JSON, CSV, SQL Contextual inference based on text descriptions.
TypeScript Types JSON, CSV, SQL Mapping fields directly from .ts type definitions.
JSON Schema JSON, CSV, SQL Strict adherence to defined keys and data types.

Mock Gen Advanced Features

  • Direct file output support using the --output flag for seamless local storage.
  • Adjustable record counts to generate everything from a single record to large datasets for performance testing.
  • Schema-aware generation that allows for exact field matching using existing codebase types.
  • Support for multiple output formats including SQL for database seeding and CSV for spreadsheet analysis.
  • Optimized for integration into Openclaw Skills automated developer workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*