Command Palette

Search for a command to run...

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

sql-migration-waves-generator

БесплатноЗапускает вложенные скриптыНе проверен

Analyze SQL object dependencies and create deployment waves/partitions for database migrations. Use when working with SQL migration planning, SnowConvert…

sfc-gh-dflippoот sfc-gh-dflippo★ 35 звёзд на GitHub

Об этом скилле

Migration Waves/Partition Generator

Overview

This skill produces a deployment wave plan for database/ETL migrations by running the SCAI CLI command scai assessment waves from inside a SCAI project. The command builds the dependency graph directly from the project's registry, assigns priority tiers, partitions objects into dependency-ordered waves, and emits a single consolidated JSON file.

Use this skill when:

  • Planning SQL database and/or ETL migration deployment sequences
  • Creating deployment waves that respect object dependencies
  • Optimizing migration batch sizes for deployment

Sub-Agent Mode

When invoked from a parent skill (e.g., assessment/SKILL.md) as a sub-agent, the parent provides a context block with the fields below. Skip the prompts in Required User Interactions whenever the corresponding fields are present in the context block — sub-agents must not block on stdin.

Field Required Notes
project_dir yes absolute path to the SCAI project root
partition_min_size yes integer; maps to --min-size
partition_max_size yes integer; maps to --max-size
prioritization_globs yes list of glob strings; emit one --prioritize <glob> per entry; pass nothing if empty
wave_ordering yes category (default) or dependency (adds --no-category-waves)
output_dir yes typically <project_dir>/assessment

On entry: call the configure MCP tool with project_dir from the context block. Snowflake credentials are not required — scai assessment waves reads only the local registry.

Pass every required input as a CLI flag. If scai assessment waves still requests TTY input for any reason, fail fast and report the missing flag — do not block waiting for stdin.

On completion, return JSON only (no surrounding prose):

{
  "sub_skill": "waves-generator",
  "status": "ok",
  "output_json": "<abs path to waves_analysis_*.json>",
  "summary": "<one-line counts: partitions, sccs, objects>",
  "error": null
}

On failure: "status": "error", "output_json": null, "error": "<message>". The parent verifies the JSON path exists before continuing.

Prerequisites

  • The working directory must be a SCAI project (i.e. .scai/ exists and the registry is initialized).
  • scai assessment waves reads the registry produced by scai code convert. The parent assessment/SKILL.md ensures the project is bootstrapped before routing here — do not prompt the user for paths.

Inputs (auto-detected by parent)

The parent assessment skill has already set project_dir and verified the registry exists. This skill does not take any input paths — scai assessment waves reads the registry from the current project folder.

Required User Interactions

These steps are mandatory in inline (standalone) mode. When invoked as a sub-agent (see Sub-Agent Mode) and the corresponding context-block fields are present, skip the prompts and use the supplied values directly.

Before Generating Waves

You MUST confirm the following with the user before running scai assessment waves:

  1. Partition size — The default is 40-80 objects per wave. Ask:

    "The default wave size is 40-80 objects per wave. Would you like to keep these defaults, or set custom min/max limits?"

  2. Object prioritization — Some objects may need to be deployed first. Ask:

    "Would you like to prioritize specific objects to appear in the earliest waves? You can use name patterns, for example "*Payroll*" to prioritize all Payroll-related objects, or "dbo.Customer" for an exact match."

  3. Wave ordering strategy — Explain the default and offer the alternative. Ask:

    "By default, waves are grouped by category: TABLEs are deployed first, then VIEWs, then FUNCTIONs/PROCEDUREs, and ETL packages last. This ensures schema foundations exist before the code that depends on them. Alternatively, you can use a pure dependency-based approach that mixes all object types by dependency level. Would you like to keep the default category-based ordering, or switch to dependency-based?"

    If user chooses dependency-based, add --no-category-waves to the command.

After Generating Waves

  1. Return to parent workflow — After the waves JSON is written:

    "Wave generation is complete. Would you like to generate the HTML report now?"

    If yes, return to the parent skill (../SKILL.md) and follow its Report Generation section using generate_multi_report.py ONLY.

    If the assessment includes other sub-skills (Object Exclusion, Dynamic SQL, SSIS), continue with the parent workflow sequence.


Command Reference

Run scai assessment waves from inside the SCAI project root. The command must not be run from elsewhere, and it does not accept a --project-dir flag — change to the project directory first if needed.

Basi

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

Установить sql-migration-waves-generator в Claude Code и Claude Desktop

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

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

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

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

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

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

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

.skillignoreissues-estimation/issues-estimation.jsonscripts/generate_html_report.pyscripts/load_data_html_report.pyscripts/registry_support.py

FAQ

Что делает скилл sql-migration-waves-generator?

Analyze SQL object dependencies and create deployment waves/partitions for database migrations. Use when working with SQL migration planning, SnowConvert outputs, or deployment wave creation.

Как установить скилл sql-migration-waves-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sql-migration-waves-generator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить sql-migration-waves-generator с