/qa-test-data:synthetic-data-toolkitfrom qa-test-data
Routes teams to the right test-data generator per language: FactoryBot (Ruby), Mimesis (Python), Bogus (.NET), or plain Faker. Shows side-by-side equivalents for polyglot projects.
Ships in qa-test-data. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Synthetic-data generation has the same conceptual job in every
language: produce realistic field values, optionally compose them
into typed object graphs. But the canonical library differs per
language. This umbrella routes the team to the right one, shows
side-by-side equivalents so a reviewer recognizes the patterns
regardless of language, and carries the full per-tool workflows
(install, authoring, seeding, anti-patterns) in references/.
If the project just needs plain field values in Python / JS / Ruby,
defer to faker-data - the default of the family. The per-tool
workflows this umbrella carries:
Faker<T> builders, StrictMode, Generate*, UseSeed).Project language?
├── Python
│ ├── Need typed-dict / schema-based bulk generation?
│ │ └── Yes → references/mimesis.md (faster + typed schema-Field pattern)
│ └── No → faker-data (Python `faker`, larger ecosystem)
├── JavaScript / TypeScript
│ ├── Browser or Node? → faker-data (`@faker-js/faker`)
│ └── Need factory orchestration with referential integrity?
│ └── Hand-rolled with Faker as the engine; no canonical factory library yet.
├── Ruby
│ ├── Need factory orchestration? → references/factory-bot.md (FactoryBot + Faker as engine)
│ └── Just values? → faker-data (`faker-ruby` gem)
├── .NET (C# / F# / VB.NET)
│ └── references/bogus.md (only canonical option in the ecosystem)
└── JVM (Java / Kotlin / Scala)
└── Multiple options (datafaker, easy-random, instancio); not covered here.
| Job | Tool |
|---|---|
| Random field value (one name, one email) | Faker (any language) or mimesis (Python). |
| Typed-object factory with referential integrity | FactoryBot (Ruby) / Bogus (.NET) / hand-roll (Python+factory_boy, JS+fishery). |
| Locale-aware data (Japanese names, German addresses) | mimesis (Python; 46 locales) or Faker (any; 70+ locales). |
| Bulk generation (10k+ rows for DB seeding) | mimesis Schema/Field (Python) or Bogus GenerateLazy (.NET). |
| Realistic but deterministic (seed-driven for repro) | All four - every library supports a seed; pin the version. |
| Adversarial / security payloads | None of these - use malicious-payload-bank. |
| Realistic-but-fake PII for non-prod | synthetic-pii-generator (sibling skill that wraps Faker / mimesis). |
Each tool's full workflow (install, authoring, test-framework integration, anti-patterns, limitations) lives in its reference page; the shape at a glance:
The canonical Ruby fixture-factory library
(factory_bot-readme).
Define one base factory per model, add trait blocks for variants,
wire Faker into attribute blocks for values, and pick the weakest
build strategy that still tests what you need (build_stubbed >>
build >> create):
FactoryBot.define do
factory :user do
name { Faker::Name.name }
trait :admin do role { "admin" } end
end
end
user = create(:user, :admin)
Fast, type-hinted, 46-locale Python generator
(mimesis-readme). Use
Generic for multi-provider fixtures and the Schema / Field
pattern for typed-dict bulk generation (10k+ rows):
from mimesis import Generic, Locale
g = Generic(Locale.EN, seed=42)
user = {"name": g.person.full_name(), "email": g.person.email()}
The canonical .NET generator
(bogus-readme): typed
Faker<T> builders with fluent .RuleFor per property. Always use
.StrictMode(true) (fails when a property lacks a rule) and
UseSeed for reproducibility; GenerateLazy streams large batches:
var faker = new Faker<User>().StrictMode(true).UseSeed(42)
.RuleFor(u => u.Name, f => f.Name.FullName())
.RuleFor(u => u.Email, f => f.Internet.Email());
var user = faker.Generate();
Generate a single user with name + email + a date of birth in [1980, 2000]. Canonical example (Python / Faker):
from faker import Faker
Faker.seed(42)
fake = Faker()
user = {
"name": fake.name(),
"email": fake.email(),
"dob": fake.date_of_birth(minimum_age=23, maximum_age=43),
}
The pattern is identical across libraries; only the API style differs
(method calls vs. RuleFor builders). The same fixture in mimesis,
faker-js, FactoryBot, and Bogus:
references/language-variants.md.
Every library supports a seed. The convention is:
42) so failures
reproduce locally.All four libraries change their PRNG sequence across major versions. Pin the dependency version in CI; document the version in a seeding-conventions doc; revisit on intentional library bumps.
Reset the seed in per-test setup (beforeEach / autouse fixture) so
each test starts with the same baseline:
| Language | Reset call |
|---|---|
| JS / TS (Jest / Vitest) | faker.seed(42) in beforeEach |
| Python (pytest) | Faker.seed(42) in an autouse fixture |
| Ruby (RSpec) | Faker::Config.random = Random.new(42) in before(:each) |
| .NET (xUnit) | new Faker<T>().UseSeed(42) per test |
Full reset snippets per language: references/language-variants.md.
| Scenario | Use this instead |
|---|---|
| Security testing (SQL injection / XSS) | malicious-payload-bank. |
| Production-shaped PII (real-looking SSN, credit card) | synthetic-pii-generator. |
| Boundary cases (off-by-one, type-min/max) | boundary-value-generator. |
| Negative-path coverage (error responses, malformed input) | negative-test-generator. |
| Persistent E2E seed sets | seed-data-curator. |
Faker / FactoryBot / mimesis / Bogus generate realistic-looking positive-path data. The related skills above handle the adversarial, boundary, and persistent cases.
Faker<T>, RuleFor, StrictMode, generation modes, seeding).faker-data - the family default for
plain field values (Python / JS / Ruby).malicious-payload-bank,
synthetic-pii-generator,
boundary-value-generator,
negative-test-generator,
seed-data-curator - sibling
skills for the cases this umbrella does NOT cover.What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/boundary-value-generatorUse when writing or extending tests for a function, form field or endpoint with limits (min/max values, string length in characters or bytes, collection size), or after a bug at a limit, such as a maximum-length value rejected or a too-short one accepted: generates the boundary-value cases, one below, at and above each bound, plus one representative per equivalence class, and emits them as parameterized tests (pytest @parametrize, Jest test.each, xUnit InlineData)./faker-dataFixes test data that breaks tests - factory values in a shape the code under test rejects (a phone number that is not E.164), fixtures that only pass when the whole suite runs in order, and random values that make an assertion pass or fail depending on the run. Authors test-data factories with Faker: the Python `faker` library, the `@faker-js/faker` JS port, and the `faker-ruby` gem - install per language, the provider catalogue (person / internet / location / date / finance / lorem), locale selection and multi-locale mode, and seed-based determinism for reproducible runs. Scope is generating fresh values for tests that start from nothing, not replacing values inside a dataset that already holds real records - that goes to pii-masking-pipeline-builder. Use when fixtures need realistic values, a stable shape, or a fixed seed./golden-file-conventionsUse when snapshot or golden-file tests are noisy or untrusted: snapshots accepted without review, diffs full of timestamps, IDs or PII, baselines that differ per OS or runtime, or no rule for where snapshots live. Sets naming and directory layout, when to add, update or remove a baseline, sanitization, per-OS and per-runtime variants, and the PR review workflow for snapshot diffs./malicious-payload-bankUse when writing negative tests for input validation, fuzz targets or security tests that need real attack strings: SQL injection, XSS, SSRF, path traversal, command injection, XXE, prototype pollution, ReDoS, Unicode confusables and header injection, with which payloads fit each input context./msw-handlersUse when JavaScript or TypeScript tests need to mock fetch or XHR calls to an HTTP API, such as replacing hand-rolled fetch mocks or testing loading and error responses, in Vitest or Jest and in Cypress or Playwright: writes Mock Service Worker handlers (`http.get`, `http.post`, `HttpResponse.json`), wires `setupServer` (Node) or `setupWorker` (browser), and manages the `listen` / `resetHandlers` / `close` lifecycle./negative-test-generatorUse when code has deliberate error paths but the tests only prove the success case. For each happy-path test, generates parameterized tests for validation errors, missing fields, wrong types, authorization failures, rate limits, conflicts and attack payloads in the project's test runner format.2 plugins ship this exact skill · first indexed Nov 12, 2026
npx claudepluginhub testland/qa --plugin qa-test-dataOther plugins' skills for the same job