/synthetic-data:tabular-from-realfrom synthetic-data
Fit a generative model on real tabular data and sample synthetic rows preserving correlations and distributions.
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.
Learn a probabilistic model from a real dataset, then sample synthetic rows that preserve statistical properties (marginals, correlations, constraints).
./synthetic-data-workspace/outputs/)GaussianCopula (fast, general), CTGAN (high-fidelity, slower), or TVAEDependencies: run scripts with uv run --with sdv --with sdmetrics script.py (or inline # /// script dependencies).
Load real data and detect metadata:
import pandas as pd
from sdv.metadata import SingleTableMetadata
from sdv.single_table import GaussianCopulaSynthesizer
# Load real data
real_data = pd.read_csv('real_data.csv')
print(real_data.head())
print(real_data.info())
# Auto-detect metadata (column types, constraints)
metadata = SingleTableMetadata.detect_from_dataframe(real_data)
metadata.validate()
print(metadata)
Fit the synthesizer:
# Option A: Fast general-purpose (GaussianCopula)
synthesizer = GaussianCopulaSynthesizer(metadata)
synthesizer.fit(real_data)
# Option B: High-fidelity mixed-type (CTGAN, slower)
# from sdv.single_table import CTGANSynthesizer
# synthesizer = CTGANSynthesizer(metadata, epochs=100)
# synthesizer.fit(real_data)
Sample synthetic data:
synthetic_data = synthesizer.sample(num_rows=1000)
print(synthetic_data.head())
# Save to CSV or Parquet
synthetic_data.to_csv('synthetic_data.csv', index=False)
# synthetic_data.to_parquet('synthetic_data.parquet', index=False)
Optional: Multi-table synthesis (HMA):
from sdv.metadata import MultiTableMetadata
from sdv.multi_table import HMASynthesizer
# If you have multiple related tables:
metadata = MultiTableMetadata.detect_from_dataframes({
'customers': customers_df,
'orders': orders_df
})
metadata.set_relationships([
{
'parent_table_name': 'customers',
'child_table_name': 'orders',
'foreign_key_columns': {'order_customer_id': 'customer_id'}
}
])
synthesizer = HMASynthesizer(metadata)
synthesizer.fit({'customers': customers_df, 'orders': orders_df})
synthetic_tables = synthesizer.sample()
num_rows rowssynthesizer.save('model.pkl')) and reusedevaluate-quality to checksynthesizer_kwargs={'epsilon': 1.0}) or use Synthcity insteadWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 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./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./instruction-and-eval-dataGenerate synthetic instruction/response pairs, fine-tuning examples, and eval inputs (test prompts, edge cases, adversarial or ambiguous requests) for AI models. Use on "make training pairs", "instruction dataset", "generate eval prompts", "test cases for my model", "fine-tuning data"./real-to-synth-llmTransform real text records into synthetic counterparts that preserve semantics while changing specifics, with any LLM route.synthetic-data@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin synthetic-data