Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 dataops skill by stable name and read its synthetic-data operation contract.
  • Require a SYNTHETIC_DATA_OPERATION_V1 preflight record before creating a project, installing packages, creating a notebook, accessing a source, or generating data.
  • Run the dataops validate command. 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 createJupyterNotebook in 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-output and create a versioned output without modifying an existing source.
  • If told to update or add to existing data, use replace-local only 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 dataops commit-local command, 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-original evidence. 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

Полный SKILL.md на GitHub

Установить synth-data-generate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/data-domain-patterns.mdreferences/distinguishability-and-comprehensiveness.mdreferences/notebook-code-template.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить synth-data-generate с