/synthetic-data:generate-text-datafrom synthetic-data
Generate varied, non-repetitive synthetic text in bulk (support tickets, reviews, notes, personas, scenarios, fake messages, training pairs) with any LLM route, using the seed-then-write recipe with model rotation, dedupe and diversity checks. Use on "synthetic data", "generate examples", "make training data", "fake records", "it's too repetitive", or when a generated set looks samey.
Ships in synthetic-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.
None: SKILL.md is the whole skill.
Works with any chat-completions route: OpenRouter or any OpenAI-compatible API, Anthropic, Gemini, or a local server (Ollama, vLLM, llama.cpp). A batch API is one optional route, not a requirement.
An 11-model probe (2026-10-31): the same prompt run 10 times on each model gave near-identical content (over 80% of outputs shared the same two or three everyday topics). Every vendor converges on the same "typical" item, and switching model does not fix it. Mixing models cuts wording overlap about 3x (mean trigram Jaccard 0.068 inside one model, 0.023 across models) but not topic overlap. Variety comes from the seed.
"${CLAUDE_PLUGIN_ROOT}/scripts/overlay-paths.sh" # where the user's data lives
"${CLAUDE_PLUGIN_ROOT}/scripts/overlay-paths.sh" recipe instruction-pairs # user copy wins over built-in
Read <overlay>/preferences.md (route, key_env, seed_model, writer_models, budget_cap_usd, pilot_size, diversity
targets, output_dir) and model-notes.md if present. If there is no overlay, run the setup skill or ask for
route and models. Built-in recipes: instruction-pairs, personas, asr-sentences, support-tickets.
Anything not covered: write a recipe in the same format and offer to save it to the overlay.
recipes/<name>.md)Sections: ## Axes (a JSON block of name to list of values), ## Seed prompt (placeholders {k}, {n}, axis
names), ## Item prompt (placeholders for axes and {seed}, asks for JSON or plain text), ## Output fields.
uv run "${CLAUDE_PLUGIN_ROOT}/scripts/axes.py" axes.json --n 40 --seed 1 > combos.jsonlseed_model. Dedupe the seed list too.jobs.jsonl ({"id","prompt","system"?}) with the recipe's item prompt filled per seed.i % 3), from writer_models. Record the writer model on
every row (the runner does). Don't use one model for both seeds and every item if the set will train a model:
its habits become the dataset's habits.pilot_size, default 30), read 10 items, run the diversity check
(check-diversity), only then scale. Estimate cost before a bulk run and respect budget_cap_usd.check-diversity: content-word Jaccard of 0.5 or more to an earlier item is dropped) and report how
many were dropped. Parse and validate JSON outputs; drop and count failures.uv run "${CLAUDE_PLUGIN_ROOT}/scripts/llm_generate.py" jobs.jsonl --out out.jsonl \
--route openrouter --models "<writer1>,<writer2>,<writer3>" --workers 8 --limit 30 # pilot
uv run "${CLAUDE_PLUGIN_ROOT}/scripts/llm_generate.py" jobs.jsonl --out out.jsonl --dry-run # inspect request only
Routes: openrouter, openai, gemini, anthropic, ollama, openai-compat (--base-url). The key is read from
the environment variable named by --key-env (or the route default); never put a key in a file or a prompt. The
runner is resumable (finished ids are skipped) and retries on 429/5xx. For a batch API, write the same
jobs.jsonl into that API's request format, one batch per model, and join on id; seeds and items are two
batches because the second depends on the first. Models that reject a "no reasoning" option: turn reasoning off
only where the route supports it, otherwise raise --max-tokens.
<overlay>/model-notes.md.real-to-synth-llm.JSONL of items plus axes values, seed, writer model, id, in output_dir; a short report: counts, dropped
(failed, duplicate), diversity numbers, cost. Publish only if publish_to is set or the user asks.
What SKILL.md sets; muted values are Claude Code's defaults
synthetic-data@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin synthetic-data13 skills in this plugin
/check-diversityMeasure how repetitive a generated text set is (trigram Jaccard, top-word share, per-model breakdown) and remove near-duplicates. Use on "is this too samey", "dedupe the generated data", "diversity check", "check the pilot before scaling"./complementary-pluginsList and install plugins that complement synthetic-data: custom-model-planning, data-annotation. Use on "related plugins"./evaluate-qualityRun fidelity, utility, and privacy diagnostics on a synthetic dataset against the real source, generating a markdown report.Other plugins' skills for the same job