Agent skill

generate-test-data

Generate realistic test data with Bogus or Faker.js

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/generate-test-data

SKILL.md

Generate Test Data

Generate realistic test data matching your domain models.

For .NET (Bogus 9.6K stars)

bash
dotnet add package Bogus
csharp
var faker = new Faker<CandidateProfile>("fr")
    .RuleFor(c => c.Id, f => Guid.NewGuid().ToString())
    .RuleFor(c => c.FirstName, f => f.Name.FirstName())
    .RuleFor(c => c.LastName, f => f.Name.LastName())
    .RuleFor(c => c.Email, (f, c) => f.Internet.Email(c.FirstName, c.LastName))
    .RuleFor(c => c.Skills, f => f.Make(3, () => f.PickRandom(skills)));
var candidates = faker.Generate(100);

For TypeScript (Faker.js 15K stars)

typescript
import { faker } from '@faker-js/faker/locale/fr';
const candidates = Array.from({ length: 100 }, () => ({
  firstName: faker.person.firstName(),
  lastName: faker.person.lastName(),
  email: faker.internet.email(),
  skills: faker.helpers.arrayElements(['CSharp', 'Azure', 'React'], 3),
}));

Arguments

  • <entity-name>: Domain entity to generate data for
  • --count=<n>: Number of records (default: 100)
  • --locale=<code>: Locale for names/addresses (default: fr)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results