cbmockdata

Generate realistic mock seed and test data for ColdBox and BoxLang projects.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill cbmockdata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cbmockdata
Source: https://github.com/ColdBox/skills/tree/main/modules/cbmockdata
Command: npx skills add https://github.com/ColdBox/skills --skill cbmockdata

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate realistic, varied seed and test data for ColdBox and BoxLang projects to eliminate manual fixture creation and speed development, testing, and prototyping.

Core Features & Use Cases

  • Installation via box install and an injectable MockDataService for tight ColdBox integration.
  • A mock() API that produces arrays of structs with built-in types (uuid, name, email, num:min:max, sentence, datetime, boolean, oneof) and supports nested objects and arrays.
  • Production patterns and examples for TestBox seed helpers, database seeders, API prototypes, and bulk generation for performance testing.

Quick Start

Use the mockDataService mock() call to generate 50 realistic user records with uuid, name, email, and createdAt fields.

Frequently Asked Questions about cbmockdata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate realistic mock seed data for ColdBox and BoxLang projects?

You can generate realistic mock seed data for ColdBox and BoxLang projects by installing the cbmockdata module via box install and using the MockDataService mock() API to produce arrays of structs with built-in data types like uuid, name, email, and datetime.

Can I populate TestBox fixtures with bulk test data for performance testing?

Yes, you can populate TestBox fixtures with bulk test data for performance testing by using the configurable bulk count feature in the mock() API to generate large datasets of realistic records.

What built-in data types are available when generating mock data for ColdBox?

The built-in data types available when generating mock data for ColdBox include uuid, name, email, num:min:max, sentence, datetime, boolean, and oneof, along with support for nested objects and arrays.

Does generating mock data for ColdBox require any external dependencies?

Generating mock data for ColdBox requires no external dependencies, as the module installs cleanly via box install and provides an injectable MockDataService that integrates tightly with ColdBox and BoxLang workflows.

How do I prototype JSON APIs with realistic test data in a ColdBox application?

You can prototype JSON APIs with realistic test data in a ColdBox application by calling the MockDataService mock() API to generate varied struct data, populating your API responses with realistic records for development and prototyping.

What is the best way to create nested objects and arrays for ColdBox database seeders?

The best way to create nested objects and arrays for ColdBox database seeders is using the mock() API, which supports complex data generation with nested structures and configurable bulk counts to populate development databases.