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★ 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…