Command Palette

Search for a command to run...

Назад к скиллам
скилл № 36471

generated-state-upgrade-empty-collections

Use when a generated resource upgrades old state by refresh and the first plan shows labels or lists changing from [] or {} to null. Covers readEmptyAs and a…

БесплатноБез исполняемых скриптов
coralogixот coralogix★ 22 звезды на GitHub

Установить generated-state-upgrade-empty-collections в Claude Code и Claude Desktop

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

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

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

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

A refresh upgrade has no prior value, so empty collections read as []

Trigger: the upgraded state holds [] or {} where the plan (configuration without the attribute) holds null, and the first plan after the upgrade is not empty. A read with a prior value does not show it, because keepPriorEmpty keeps the null of the prior state.

Fix: state the null on the field: readEmptyAs: "null" for a list, a set, or a list of objects. A plain string map has no such key, so set it null in AfterFlatten when the attribute rejects an empty value (sizeAtLeast: 1), so the empty map cannot be configured. Test it: upgrade a raw state of every prior version through the protocol harness (UpgradeFrom), compare it with a read of the same alert, and plan the configuration on it (internal/provider/alert_state_upgrade_test.go).

Why: the upgrade passes no prior state to the flatten step, and the API answers an empty collection for a field that the user never set.

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

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

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

FAQ

Что делает скилл generated-state-upgrade-empty-collections?

Use when a generated resource upgrades old state by refresh and the first plan shows labels or lists changing from [] or {} to null. Covers readEmptyAs and a flatten hook.

Как установить скилл generated-state-upgrade-empty-collections?

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

Скилл generated-state-upgrade-empty-collections запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить generated-state-upgrade-empty-collections с