/kx-dashboards-knowledge:kx-accordionfrom kx-dashboards-knowledge
Creates collapsible/expandable sections in KX Dashboards layouts. Use for section-based content organization instead of tabs or flex panels.
Ships in kx-dashboards-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Also read kx-dashboard-core for: envelope, screen/widget wrapper, data sources, ViewState, actions.
key: "Accordion" · definitionId: "56" · version: "4.7.7"
This skill uses progressive disclosure: the component identity, the SectionId hazard, the workflow, and the output checklist are here; the bulky JSON schema, field tables, and worked examples live in reference/. Read only the reference file relevant to your current step.
| File | Read it when you need… |
|---|---|
| reference/component-schema.md | The canonical options object, full Basics and Sections field tables, the Flex vs Weight rule, the complete accordion component object (with child widgets[]), and the section-generation rules. |
| reference/examples.md | Copy-ready worked examples — two-section vertical, three-column horizontal, and Flex-toolbar + weighted content accordions. |
| Field | Value |
|---|---|
key | "Accordion" |
definitionId | "56" |
version | "4.7.7" |
hasOnSettingsChange | true |
The componentDefinition.ts default section template does NOT include SectionId:
// ❌ This is what componentDefinition.ts shows — DO NOT copy this for chat output
{
"Title": "Section",
"TitleAlign": "Left",
"Expanded": true,
"Weight": 1,
"Resizeable": false,
"HideTitle": false,
"Flex": false
}
Generating sections without SectionId will produce EMPTY sections.
Here is why. At runtime (app.ts > onSettingsChange):
sectionId = section["SectionId"];
if (!sectionId) {
// SectionId was absent → auto-generate a UNPREDICTABLE value
sectionId = _.uniqueId("section_"); // "section_1", "section_7", "section_23" …
}
sectionOptions["sectionId"] = sectionId; // stored on the section view-model
Then SectionDropView.addWidget assigns each widget to its section by matching:
widgetModel.get("sectionId") === this.section.viewModel.get("sectionId")
Because _.uniqueId uses a global counter, the auto-generated IDs are unpredictable. Any sectionId value on a widget entry will fail to match → the widget never appears in the section.
SectionId explicitly// ✅ Always use this form in chat output — SectionId is REQUIRED
{
"SectionId": "section_1001",
"Title": "Section",
"TitleAlign": "Left",
"Expanded": true,
"Weight": 1,
"Resizeable": false,
"HideTitle": false,
"Flex": false
}
And every widget entry that belongs to this section must carry the same value as a lowercase sectionId field:
{
"id": "...",
"layout": { ... },
"component": { ... },
"sectionId": "section_1001" ← must exactly match section's SectionId
}
Summary rule: Every section → explicit SectionId. Every widget entry → matching lowercase sectionId.
Direction ("Vertical" or "Horizontal"), how many sections, and which are Flex (auto-size) vs Weight (ratio). Component identity (key, definitionId, version) is in the table above.SectionIds. Give every section a "section_<int>" id (see the SectionId Trap above) — never rely on the auto-generated value.options. Use the Canonical Options Structure and the Basics/Sections field tables in reference/component-schema.md, respecting the Flex-vs-Weight rule.widgets[] entry per section. Each entry is a full child component object plus a lowercase sectionId matching its section's SectionId. See the complete component object and Rules for Generating Sections in reference/component-schema.md.reference/examples.md (vertical, horizontal, or Flex-toolbar) and adapt it.Before returning the JSON, verify:
Basics.Sections entry has an explicit SectionId (e.g. "section_1001")widgets[] has the same number of entries as Basics.Sections"sectionId" (lowercase) exactly matches its section's "SectionId" (capital SI)"sectionId" appears after "component" in each widget entrywidgets[] is a sibling of options on the accordion component object — not inside optionscomponent object is complete: id, key, options, containerId, components, widgets, definitionId, hasOnSettingsChangedefinitionId on the accordion is the string "56"id fields are unique UUIDs across the entire dashboardFlex: false sections have Weight + Resizeable; Flex: true sections have MinSize + MaxSizeWhat SKILL.md sets; muted values are Claude Code's defaults
32 skills in this plugin
/kx-actionsUse this alongside a component skill when adding KX Dashboards interactions such as clicks, hovers, row selection, navigation, or data-source re-execution. It defines how actions are attached and triggered, not the base component itself./kx-basiccomponents-containersUse this for KX Dashboards layout containers and navigation primitives such as panels, navigation menus, and overlay drawers. Use it for structural layout needs; use kx-tabs for tabbed switching, kx-accordion for collapsible sections, and kx-flex-panel for fixed-plus-flex layouts./kx-breadcrumbsnpx claudepluginhub kxsystems/kx-skills --plugin kx-dashboards-knowledgeOther plugins' skills for the same job