dashboard-variables-v2-wire-shape
Use when expanding/flattening coralogix_dashboard variables_v2, or editing static values[].label defaults. Build typed SDK VariableV2 structs from flat TF…
от coralogix★ 22 звезды на GitHub
Установить dashboard-variables-v2-wire-shape в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Dashboard variables_v2 wire shape
Trigger: Editing variables_v2 expand/flatten (variables_v2.go) or static values[].label schema/plan modifier (dashboard_schema/variables_v2.go).
Fix: Keep Terraform UX flat, then build typed SDK models (not map[string]any JSON):
- value arms →
SingleStringValue{Value: &StringValueLabel{...}}(same for regex/lucene/interval/numeric) idstring ↔UUID{Value: ...}viaExpandDashboardUUID- promql
querystring ↔PromQlQuery{Value: ...}viaExpandPromqlQuery - dataprime
querystring ↔CommonDataprimeQuery{Text: ...} - observation
scopeshort name ↔DATASET_SCOPE_*via existing enum maps - spans
value = { type, value }↔SpanFieldviaExpandSpansField/FlattenSpansField - metrics operator
{type, selected_values}↔{equals|notEquals: {selection: {list: ...}}} - empty metrics
label_filters→ omit/nil (avoid null↔[] drift) - empty
value_display_options: schemaAtLeastOneOfChildrenrejects{}(Framework cannot plan null when config keeps the block; omit the block or set a regex) - empty
multi_string.list.values→ flatten known empty list, not null (values is Required) - enums (
display_type, order, refresh, data_mode) →OptionalEnumPointer(never pointer-to-empty) - OpenAPI-required fields (
VariableV2id/name/display_name/display_type/source/value, static/query all_option + values_order_direction, ValueLabel value/label, AllOption.include_all, logs FieldValue.observation_field, metrics LabelValue.label_name) are non-pointer SDK values — expand withrequiredEnumValue/derefOrZero/ValueString(), flatten by address (&variable.Source) andtypes.StringValue/types.BoolValue. TF schema stays Optional+Computed+Default where already defaulted; do not re-mark schema Required just because the Go type lost*. - static
values[].label: Optional+Computed +StaticValueLabelFromValue(omit → plan=value). Flatten always stores API label (incl. label==value). NeverUseStateForUnknown— needed for omit→set→omit and omit→value-change. Expand still copiesvalueif label null/unknown. On flatten, fill missing oneof siblings as null from schema AttrTypes (API omits unset arms).
Why: OpenAPI types nest wrappers and proto enums; flat TF fields must be wrapped into typed SDK structs or the API returns 400 / ObjectValueFrom fails. Label defaults via plan (not flatten-to-null) so omit, custom, explicit label=value, and value changes all round-trip without drift.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dashboard-variables-v2-wire-shape?
Use when expanding/flattening coralogix_dashboard variables_v2, or editing static values[].label defaults. Build typed SDK VariableV2 structs from flat TF models; wrap value/label, promql, dataprime, scope, and spans shapes.
Как установить скилл dashboard-variables-v2-wire-shape?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dashboard-variables-v2-wire-shape запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…