synth-data-generate
БесплатноБез исполняемых скриптовНе проверенGenerate synthetic datasets in a Jupyter notebook after the dataops synthetic-data preflight passes. Use when creating new synthetic data or preparing a…
от microsoft★ 1 654 звезды на GitHubОб этом скилле
Synthetic Data Generator
Goal
Generate realistic, comprehensive synthetic data for subject in a Jupyter notebook only after the applicable dataops synthetic-data operation preflight passes. Use example_data when the user supplies an existing data source, schema, or file to use as a strict reference for structure and patterns.
Inputs
subject: Required. User query describing the subject for synthetic data generation.example_data: Optional. Free-form input describing an existing data source, schema, or file to use as a reference for structure and patterns.
Required steps
Step 0: Validate synthetic-data operation preflight
- Activate the
dataopsskill by stable name and read its synthetic-data operation contract. - Require a
SYNTHETIC_DATA_OPERATION_V1preflight record before creating a project, installing packages, creating a notebook, accessing a source, or generating data. - Run the
dataopsvalidatecommand. Continue only when the gate passes with a current approved applicable classification decision carrying data-owner authority. - Treat protected-attribute generation and subgroup evaluation as inactive unless current qualified decision references explicitly mark them applicable. Protected-attribute generation requires privacy, Responsible AI or fairness, and domain-owner roles. Subgroup evaluation requires Responsible AI or fairness and domain-owner roles plus every activated subgroup reference.
- For
replace-local, require one existing regular local file under a caller-approved root, a matching expected SHA-256 source digest, and current approved applicable data-owner replacement authority. Reject directories, links, remote stores, network shares, databases, APIs, and multi-target operations. - If validation fails, stop before any write or source access. Report only stable categories, record identifiers, counts, and digests, plus the smallest qualified-owner action needed to resume. Do not reproduce source values in chat or records.
Step 1: Perform mandatory project setup
- After validated preflight, create the project folder and notebook using the file naming convention.
- Create the project folder.
- Create the notebook file with the host's notebook tool, such as
createJupyterNotebookin VS Code. - Stop and confirm both are created before proceeding.
Step 2: Validate data source
Skip this step when the user does not mention an existing data source, schema, or file.
- If the user mentions an existing data source, schema, or file, first attempt to locate and access it.
- Write inspection code in a separate cell to load and examine the existing data.
- If the data source cannot be found, opened, or accessed, inform the user:
The specified data source '[name]' cannot be accessed. Please verify the file exists and is accessible. Cannot proceed with synthetic data generation.Then stop all processing. - If the source is found, use it as the strict reference for structure, schema, and patterns.
Step 3: Select data operation mode
- Default to
new-outputand create a versioned output without modifying an existing source. - If told to update or add to existing data, use
replace-localonly when Step 0 authorized it. Generate one candidate file beside the confirmed local target. Notebook code must never write the original source directly. - After generation, produce a separate result record linked to the exact preflight revision. Record observed source and output digests, actual field lineage, activated subgroup results, validation evidence, and the proposed commit state.
- Recheck the target digest and obtain separate runtime overwrite confirmation immediately before commit. Route the final replacement through the
dataopscommit-localcommand, which creates a recoverable predecessor, validates synchronized staging, and performs one replacement. - On stale source, predecessor failure, staged-validation failure, denied confirmation, or interruption before replacement, stop and retain
unchanged-originalevidence. Do not create a variant target or retry silently. - If told to create new synthetic data, follow the normal generation process.
- When working with an existing schema, adhere strictly to all fields, data types, and relationships.
Step 4: Protect PII
- Do not decide whether data or fields are sensitive. Use the qualified classification and protected-attribute applicability references from the validated preflight.
- Generate protected attributes only when the applicable qualified decision activates them. Use the approved generator reference and record field-level lineage without placing generated values in operation records or chat diagnostics.
- Use Faker or a similar generator only when permitted by the preflight and record the generator and seed references.
Step 5: Set up image processing
Skip this step
Установить synth-data-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл synth-data-generate?
Generate synthetic datasets in a Jupyter notebook after the dataops synthetic-data preflight passes. Use when creating new synthetic data or preparing a guarded local replacement candidate from an approved source.
Как установить скилл synth-data-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл synth-data-generate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic