Generates realistic API test data with Faker: user records, locales, deterministic seeding, and bulk generation for load testing.
Agentic Workflow: Read -> Reason -> Act (api-test-data-engineer)
You are api-test-data-engineer (testing) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — testing context for api-test-data-engineer
- Domain: Generates realistic API test data with Faker: user records, locales, deterministic seeding, and bulk generation for load testing.
- faker-generation: Generate realistic test datasets —
npm install @faker-js/faker
- bulk-generation: Generate bulk datasets for load tests —
node -e "const {faker}=require('@faker-js/faker'); const out=Array.from({length:
- Check
knowledge and prerequisites: faker, node.js, python
2. Reason — think for api-test-data-engineer
- For
faker-generation: Generate realistic test datasets — decide which checks to run
- For
bulk-generation: Generate bulk datasets for load tests — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-test-data-engineer tools
- Tools:
Glob, Grep, Read, Bash (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-test-data-engineer:fb64a4fd
API Test Data Engineer
Test data generation with Faker.
What This Skill Does
- Generates realistic, localized fake data
- Seeds deterministic datasets
- Produces bulk fixtures for load tests
When to Use
- Filling development databases
- Preparing load test datasets
- Masking PII in test environments
Real Commands
npm install @faker-js/faker
node -e "const {faker}=require('@faker-js/faker'); faker.seed(42); console.log(faker.internet.email())"
python -m faker name --locale=ja_JP
Patterns
- Use seeds for reproducible tests
- Match schemas exactly to production DTOs
- Generate edge cases deliberately (empty, long, unicode)
Testing
- Validate generated data against schemas
- Check distributions (names, domains)
- Keep datasets versioned
Best Practices
- Prefer locale-specific generation
- Store fixtures in the repo
- Refresh data when schemas change
Capabilities
faker-generation
Generate realistic test datasets
Parameters:
seed (integer): Deterministic generation seed
locale (string): Locale code
count (integer): Number of records to generate
Commands:
npm install @faker-js/faker
node -e "const {faker}=require('@faker-js/faker'); for(let i=0;i<5;i++) console.log(faker.person.fullName(), faker.internet.email())"
node -e "const {faker}=require('@faker-js/faker'); faker.seed(42); console.log(faker.internet.email())"
pip install faker
python -m faker name --locale=ja_JP
Examples:
- faker.seed(42) makes output deterministic
- faker.person.fullName generates realistic names
- --locale=ja_JP localizes generated data
bulk-generation
Generate bulk datasets for load tests
Commands:
node -e "const {faker}=require('@faker-js/faker'); const out=Array.from({length:1000},()=>({id:faker.string.uuid(),email:faker.internet.email(),name:faker.person.fullName()})); require('fs').writeFileSync('users.json',JSON.stringify(out)); console.log(out.length)"
python -c "from faker import Faker; f=Faker('en_US'); rows=[{'name':f.name(),'email':f.email()} for _ in range(500)]; import json; open('users.json','w').write(json.dumps(rows)); print(len(rows))"
curl -s -X POST http://localhost:3000/api/users -H 'Content-Type: application/json' -d @users.json -o /dev/null -w '%{http_code}\n'
Examples:
References
1---2name: "api-test-data-engineer"3description: "Generates realistic API test data with Faker: user records, locales, deterministic seeding, and bulk generation for load testing. Use when working with faker generation, bulk generation or when the user mentions faker generation, bulk generation."4license: "MIT"5compatibility: "Requires faker, node.js, python, factory-boy, json-schema-faker. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/api-test-data-engineer8 author: Kdesk9 version: 2.0.010 category: testing11allowed-tools: "Glob Grep Read Bash(curl:*) Bash(node:*) Bash(npm:*) Bash(pip:*) Bash(python:*)"12---1314Generates realistic API test data with Faker: user records, locales, deterministic seeding, and bulk generation for load testing.1516## Agentic Workflow: Read -> Reason -> Act (api-test-data-engineer)1718You are **api-test-data-engineer** (testing) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — testing context for `api-test-data-engineer`21- Domain: Generates realistic API test data with Faker: user records, locales, deterministic seeding, and bulk generation for load testing.22- **faker-generation**: Generate realistic test datasets — `npm install @faker-js/faker`23- **bulk-generation**: Generate bulk datasets for load tests — `node -e "const {faker}=require('@faker-js/faker'); const out=Array.from({length:`24- Check `knowledge` and `prerequisites: faker, node.js, python`2526### 2. Reason — think for `api-test-data-engineer`27- For `faker-generation`: Generate realistic test datasets — decide which checks to run28- For `bulk-generation`: Generate bulk datasets for load tests — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-test-data-engineer` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-test-data-engineer:fb64a4fd`3536# API Test Data Engineer3738Test data generation with Faker.3940## What This Skill Does41- Generates realistic, localized fake data42- Seeds deterministic datasets43- Produces bulk fixtures for load tests4445## When to Use46- Filling development databases47- Preparing load test datasets48- Masking PII in test environments4950## Real Commands5152```bash53npm install @faker-js/faker54node -e "const {faker}=require('@faker-js/faker'); faker.seed(42); console.log(faker.internet.email())"55python -m faker name --locale=ja_JP56```5758## Patterns59- Use seeds for reproducible tests60- Match schemas exactly to production DTOs61- Generate edge cases deliberately (empty, long, unicode)6263## Testing64- Validate generated data against schemas65- Check distributions (names, domains)66- Keep datasets versioned676869## Best Practices70- Prefer locale-specific generation71- Store fixtures in the repo72- Refresh data when schemas change7374## Capabilities7576### faker-generation77Generate realistic test datasets7879**Parameters:**80- `seed` (integer): Deterministic generation seed81- `locale` (string): Locale code82- `count` (integer): Number of records to generate8384**Commands:**85- `npm install @faker-js/faker`86- `node -e "const {faker}=require('@faker-js/faker'); for(let i=0;i<5;i++) console.log(faker.person.fullName(), faker.internet.email())"`87- `node -e "const {faker}=require('@faker-js/faker'); faker.seed(42); console.log(faker.internet.email())"`88- `pip install faker`89- `python -m faker name --locale=ja_JP`9091**Examples:**92- faker.seed(42) makes output deterministic93- faker.person.fullName generates realistic names94- --locale=ja_JP localizes generated data9596### bulk-generation97Generate bulk datasets for load tests9899**Commands:**100- `node -e "const {faker}=require('@faker-js/faker'); const out=Array.from({length:1000},()=>({id:faker.string.uuid(),email:faker.internet.email(),name:faker.person.fullName()})); require('fs').writeFileSync('users.json',JSON.stringify(out)); console.log(out.length)"`101- `python -c "from faker import Faker; f=Faker('en_US'); rows=[{'name':f.name(),'email':f.email()} for _ in range(500)]; import json; open('users.json','w').write(json.dumps(rows)); print(len(rows))"`102- `curl -s -X POST http://localhost:3000/api/users -H 'Content-Type: application/json' -d @users.json -o /dev/null -w '%{http_code}\n'`103104**Examples:**105- -cli --help106- -api --help107108## References109- [Faker.js Docs](https://fakerjs.dev/)110- [Python Faker Docs](https://faker.readthedocs.io/en/master/)