/synthetic-data:check-diversityfrom synthetic-data
Measure 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".
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.
Stdlib-only scripts, run with uv run (no install).
uv run "${CLAUDE_PLUGIN_ROOT}/scripts/diversity.py" report items.jsonl --field text --group-field model
uv run "${CLAUDE_PLUGIN_ROOT}/scripts/diversity.py" dedupe items.jsonl --field text --out clean.jsonl --threshold 0.5
Targets for free text come from the overlay preferences.md (diversity_max_trigram_jaccard, default 0.07;
diversity_max_top3_share, default 0.4; dedupe_threshold, default 0.5). --field is the JSON key holding the
text; for records with several fields, concatenate them into one field first.
--group-field model, find the collapsing model and drop it from the rotation.evaluate-quality.Always read about 10 items by eye after the numbers: metrics miss shared structure (every item opening the same way, same length, same ending).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 skills in this plugin
/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./generate-text-dataGenerate 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.synthetic-data@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin synthetic-data