test-data-generator

test-data-generator is a skill for Claude Code, Codex from tahirraufkeeyu/software-development-agent-stack--sdas. It costs 79 tokens per session (2,305 once invoked), scanned A, original, MIT.

A skill that creates repeatable test records from a JSON Schema, OpenAPI schema, or SQL database definition. It can output SQL inserts, JSON files, or CSV files while following constraints such as unique values, ranges, lists, and relationships.

In plain words
What is it for?
Use it to seed integration tests, create end-to-end fixtures, populate a local database, or prepare CSV imports. It is for synthetic data, not real production personal information.
Why use it?
It removes the manual work of inventing test data and reduces invalid fixtures that do not match the application's schema.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import schema from '../schemas/user.json' assert { type: 'json' };.

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tahirraufkeeyu/software-development-agent-stack--sdas
agentmods
npx agentmods add skills/tahirraufkeeyu/software-development-agent-stack--sdas/test-data-generator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-data-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/tahirraufkeeyu/software-development-agent-stack--sdas/test-data-generator.svg)](https://agentmods.dev/skills/tahirraufkeeyu/software-development-agent-stack--sdas/test-data-generator)
Your own site
<a href="https://agentmods.dev/skills/tahirraufkeeyu/software-development-agent-stack--sdas/test-data-generator"><img src="https://agentmods.dev/badge/skills/tahirraufkeeyu/software-development-agent-stack--sdas/test-data-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.02305
Opus 5 $0.00039 $0.01153
Sonnet 5 $0.00016 $0.00461
Haiku 4.5 $0.00008 $0.00231

Measured 6d ago against content hash 8826703d0959, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test-data-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

departments/qa/skills/test-data-generator/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to use

Invoke this skill when:

  • A new integration test needs seeded rows in staging.
  • An e2e test needs JSON fixtures matching a schema.
  • A developer wants bulk data for a local DB (1k–100k rows).
  • CSV import flows need test payloads at multiple sizes.

Do NOT use when: the data must be genuine PII from production (never; mask at source instead); the schema does not exist (write it first).

Inputs

  • schema (required): Path to JSON Schema, OpenAPI component, or SQL DDL.
  • count (required): Number of records per entity.
  • format (required): sql, json, or csv.
  • seed (optional): Integer seed for faker. Default 42.
  • locale (optional): Faker locale, e.g. en, de, ja. Default en.
  • relations (optional): Explicit FK order, e.g. ["users", "orders", "order_items"].
  • overrides (optional): Per-field generators, e.g. { "users.email": "{{internet.email}}" }.

Outputs

  • Generated data file(s):
    • sql: one .sql file per table with INSERT statements wrapped in a transaction.
    • json: one .json file per entity (array of records).
    • csv: one .csv per entity with header row.
  • A manifest.json recording the seed, locale, counts, and hash of the output for reproducibility.

Tool dependencies

  • Read, Write, Glob, Grep (always).
  • JS: @faker-js/faker (v8+), ajv for post-generation validation.
  • Python: Faker (pip install faker), jsonschema.
  • Optional mimesis (Python) for faster bulk generation.

Procedure

  1. Parse the schema.
    • JSON Schema / OpenAPI: use $ref resolution; collect required, enum, format, pattern, minLength/maxLength, minimum/maximum, uniqueItems.
    • SQL DDL: extract CREATE TABLE, column types, NOT NULL, UNIQUE, CHECK, REFERENCES (FK), defaults.
  2. Topologically sort tables by FK so parents are generated before children.
  3. Set the seed. faker.seed(seed) (Python) or faker.seed(seed) (JS). Document in manifest.
  4. Pick generators. Map column name + type + format to a faker call. Apply overrides last.
  5. Honor constraints.
    • unique: generate into a Set and retry on collision; if after 10× count tries still colliding, widen the pool (e.g. append an index suffix).
    • enum: pick from the enum list.
    • min/max: clamp the faker output.
    • pattern: regenerate until matching; if pattern is too narrow, use a randexp-style generator.
    • foreign key: pick a random parent row id from already-generated parents.
  6. Validate. Run each record through ajv (JSON/OpenAPI) or a DDL-derived check (SQL) before emitting. Fail loudly on any validation error.
  7. Emit output.
    • SQL: BEGIN; INSERT INTO ...; COMMIT; per file; chunk inserts at 1,000 rows per INSERT for speed.
    • JSON: JSON.stringify(data, null, 2); keep under 50 MB per file (split if larger).
    • CSV: RFC 4180 quoting; UTF-8 with BOM only if the target tool needs it.
  8. Write manifest.
    { "seed": 42, "locale": "en", "counts": { "users": 1000, "orders": 5000 }, "hash": "sha256:..." }
    
  9. Report. List files, row counts, any constraints that were widened (e.g. unique pool exhaustion).

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 199 lines · 79 tokens per session scan A 8826703d0959

Subscribe to this mod's changes

test-data-generator is a skill published in the GitHub repository tahirraufkeeyu/software-development-agent-stack--sdas (18 stars, last pushed 4mo ago), licensed MIT. It adds 79 tokens to every session and 2,305 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens