К основному содержанию
скилл CX Codex

coordinated-data-views — скилл для Claude Code: таблица и карта

Скилл для ИИ-кодинга, который подсказывает, как связать таблицу с картой, диаграммой или графиком и синхронизировать выделение в обе стороны.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add dembrandt/dembrandt-skills --skill coordinated-data-views -a claude-code
Открыть на GitHub

Что делает coordinated-data-views

Скилл включается, когда одни и те же данные нужно показать в двух видах сразу: список адресов и карту, таблицу узлов и схему зависимостей, график и сырую таблицу. Он описывает модель, в которой состояние выделения живёт в одном общем хранилище, а не внутри каждой панели. Клик по строке подсвечивает элемент на карте, клик по элементу подсвечивает строку и прокручивает таблицу к ней. Наведение даёт мягкую подсветку в обоих видах.

Отдельный блок про цвет: одно и то же значение должно выглядеть одинаково в обеих панелях, поэтому палитра задаётся в одном месте и импортируется обоими рендерерами, а легенда выводится один раз на всю раскладку. Ещё скилл разбирает пропорции: таблица занимает 60–70% ширины, если она главная, визуальный вид — если главный, либо 50/50 с перетаскиваемой границей. На мобильном показывается один вид с переключателем.

Есть раздел про таймлайны и календарные сетки: метка ставится по времени, которое покрывает, а не по счёту единиц, иначе полоса начнёт расходиться с сеткой рядом. Управление зумом, прозрачностью слоёв и сбросом вида относится только к визуальной панели, а фильтры и выбор диапазона — к общим данным, поэтому их место над раскладкой. Скилл срабатывает по путям вроде components/** и **/*.tsx, так что в проекте без компонентов на React он просто не подхватится.

Какие задачи решает

  • связать карту со списком адресов и синхронизировать выделение
  • подсветить строку таблицы при клике по элементу диаграммы
  • прокрутить таблицу к строке, выбранной на графике
  • задать общую палитру для таблицы и визуального вида
  • выбрать пропорции раскладки для двух панелей

Примеры запросов агенту

  • сделай так, чтобы клик по строке подсвечивал объект на карте
  • таблица и список должны оставаться синхронными при выборе
  • покажи диаграмму и таблицу для одних данных, выбор — из любого вида

Как установить coordinated-data-views

1Через Skills CLI (Vercel)

npx skills add dembrandt/dembrandt-skills --skill coordinated-data-views -a claude-code

2Вручную: положить файлы

~/.claude/skills/coordinated-data-views/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/coordinated-data-views/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о coordinated-data-views

Как установить coordinated-data-views в Claude?

Выполните npx skills add dembrandt/dembrandt-skills --skill coordinated-data-views -a claude-code. Файл скилла появится по пути ~/.claude/skills/coordinated-data-views/SKILL.md.

Что делает coordinated-data-views?

Описывает, как показать таблицу и карту, диаграмму, таймлайн или график вместе и синхронизировать выделение в обе стороны. Помогает, когда данные нужны в двух представлениях одновременно.

Когда стоит включать этот скилл?

Когда два представления решают разные задачи: таблица нужна для поиска, а визуальный вид — чтобы понять расположение или связи. Если пользователи смотрят только таблицу, вторая панель добавит сложности без пользы.

Исходный текст

SKILL.md · MIT
---
name: coordinated-data-views
description: Show a table and its map, diagram, timeline or chart together, with selection synced both ways. Use when data appears in two representations at once.
metadata:
  priority: 6
  pathPatterns:
    - "components/**"
    - "src/components/**"
    - "**/*.tsx"
    - "**/*.jsx"
    - "app/**"
  promptSignals:
    phrases:
      - "map view"
      - "chart view"
      - "visualization"
      - "linked views"
      - "coordinated"
      - "highlight"
      - "synchronize"
      - "side by side"
      - "table and chart"
      - "diagram and list"
retrieval:
  aliases:
    - coordinated views
    - linked views
    - chart and table
    - map and list
    - linked visualization
    - synchronized views
    - two representations
    - dual view
    - visual and tabular
  intents:
    - synchronize a chart with a data table
    - link a map to a list
    - highlight items across two views
    - design a dual-view layout
    - coordinate a chart with a table
    - keep two views in sync
  examples:
    - clicking a row should highlight it in the map view
    - the map and the list should stay in sync
    - show a diagram and a table for the same data
    - how should a visual view and a table interact
    - the user should be able to select from either the chart or the list
---

# Coordinated Data Views

Some data has more than one natural representation. A set of locations has both a map and a list. A dependency network has both a diagram and a node table. A dataset has both a chart and a raw table. When both representations are genuinely useful for different tasks, show them simultaneously and keep them synchronized — this is called a coordinated view.

The core rule: **any selection or highlight made in one view is immediately reflected in the other.**

---

## When to Use Coordinated Views

Use coordinated views when:

1. The two representations serve different tasks — the table is for finding/scanning; the visual view is for understanding arrangement or relationships
2. Users will frequently move between the two — not just glance at one occasionally
3. The dataset is large enough that the visual view alone doesn't identify individual items, and the table alone doesn't communicate how they relate

Do not add a coordinated view purely for visual richness. If users only ever look at the table and ignore the visual view, it adds complexity without benefit.

---

## The Synchronized Selection Model

Selection state is owned by a single shared store, not by either view. Both views read from and write to the same state.

```
Table row clicked → shared highlight state updated → both views re-render

Visual element clicked → shared highlight state updated → both views re-render
```

**What synchronization covers:**

| Interaction | Effect in table | Effect in visual view |
|---|---|---|
| Click row | Row highlights | Corresponding element highlighted |
| Click visual element | Corresponding row highlighted, scrolled into view | Element highlighted |
| Hover row | Subtle row highlight | Subtle element highlight |
| Hover visual element | Subtle row highlight | Subtle element highlight |
| Clear selection | Row returns to default | Element returns to default |

**Scroll-into-view:** When a visual element is clicked, the table must scroll to bring the corresponding row into view. A row that is highlighted but off-screen is useless.

---

## Consistent Colour Coding

Colour meaning must be identical in both views. If a category is orange in the table badge, it is orange in the visual view. Never use different colour assignments for the same data in different representations.

Define colours centrally:

```ts
const CATEGORY_COLORS = {
  groupA: 'hsl(24, 80%, 55%)',
  groupB: 'hsl(210, 70%, 55%)',
} as const;
```

Both renderers import from the same source. A shared legend appears once in the layout, not in each view.

**Colour encodes state, the label encodes identity.** When every item already shows its own name, give all items of one kind the same colour and spend colour on state alone: planned, partly used, free, unavailable. Tints of one hue read as magnitude, not as different things, and a grey item collides with the grey that means empty. Show that one item recurs by highlighting all its occurrences on hover or selection. The legend then explains states and never lists items, because the labels already do.

---

## Layout

The split between views depends on which is primary:

**Table-primary (exploration, data management):** Table takes 60–70% of the width; visual view is a companion panel on the right or bottom.

**Visual-primary (understanding arrangement and relationships):** Visual view takes 60–70%; table is a supporting panel.

**Equal weight:** A 50/50 split with a draggable divider. Persist the user's preferred split.

```
┌─────────────────────┬────────────────┐
│                     │                │
│   Table (primary)   │  Visual view   │
│                     │                │
└─────────────────────┴────────────────┘
```

On mobile, show one view at a time with a tab or toggle to switch. Do not attempt to show both on a small screen.

### Timelines and Calendar Grids

Place every mark on a time axis by the time it covers, never by a count of units. When units per day vary, give each day the same width and divide the day among the units it actually has, so a mark that ends with the day's last unit ends on the day seam. A width derived from a share of the unit count drifts as soon as days hold different numbers, and the bar then contradicts the grid beside it, so the reader trusts neither.

Build a calendar or matrix from one unit, a square cell plus one gap, and put every row on that pitch, labels included. When the window changes, change how many columns show, not the size of the cell. Keep the grid packed against its row labels and leave the spare width at the far end; a flexible label column on a wide screen pushes the grid away from what it names.

---

## Visual View Controls

Controls that affect only the visual representation belong in the visual view panel, not in the table area.

Common visual-specific controls:
- **Zoom / pan** — navigation (usually handled by the rendering library)
- **Layer opacity** — reveal overlapping regions on a dense map or diagram
- **Layer toggle** — show/hide categories or types
- **Reset view** — fit all elements into view; extent reset for maps

These controls do not affect the table. Do not put them in the table toolbar.

Controls that affect the shared data (filters, time range, category selection) belong outside both views, above or beside the layout, since they affect what appears in both.

---

## Highlighting vs. Selection

These are distinct states:

**Highlight (hover):** Transient, shown while the pointer is over an element. Does not persist. Both views show a subtle version (e.g. 50% opacity overlay, or a faint row background). No interaction required to clear it — moving the pointer clears it.

**Selection (click):** Persistent until explicitly cleared. Both views show a strong, unambiguous visual (e.g. bright border, saturated colour, selected row background). Cleared by clicking elsewhere or pressing Escape.

Do not conflate these. A hover highlight that persists after the pointer leaves is confusing.

---

## Analysis Beside the Data

A panel that explains or summarises the data on screen is a coordinated view, not a dialog. Open it beside the table, non-modal, page still scrollable. The user checks each claim against the rows it came from. A modal hides exactly those rows.

---

## Performance Considerations

Coordinated views can trigger expensive re-renders if not carefully managed.

- Debounce hover highlights — do not update on every pointer-move event, only when the target element changes
- Use stable identity for items (a consistent ID) so React (or equivalent) can reconcile without re-creating elements
- For large datasets (1000+ items), virtualize the table regardless of the visual view
- For canvas- or WebGL-rendered views, avoid re-creating elements on each highlight — update style properties on the existing ones instead

---

## Review Checklist

- [ ] Is selection state shared between views via a single store — not duplicated?
- [ ] Does clicking a row highlight the corresponding visual element, and vice versa?
- [ ] Does clicking a visual element scroll the table to the corresponding row?
- [ ] Are colour assignments identical in both views, defined from a single source?
- [ ] Is the shared legend shown once, not duplicated per view?
- [ ] Are visual-specific controls (zoom, transparency, layer toggle) in the visual panel, not the table?
- [ ] Does any analysis or summary panel sit beside the data, non-modal, with the page still scrollable?
- [ ] Are hover highlight and click selection visually distinct states?
- [ ] On mobile, is there a clear way to switch between views?
- [ ] Are hover events debounced to avoid unnecessary re-renders?

© dembrandt · MIT · dembrandt/dembrandt-skills

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

Всё по теме «Фронтенд и UI» →
react-and-nextjs-data-visualization официальный OpenAI Инструкции по встраиванию графиков и диаграмм в React и Next.js: границы SSR, разделение состояния и отрисовки, адаптивность и защита от ошибок гидратации. CX Codex GP ChatGPT 13установок frontend-ui-engineering addyosmani Скилл задаёт правила для доступных адаптивных интерфейсов и компонентов. Пригодится при создании страниц, исправлении UI и работе с состоянием. CX Codex +1 67 400установок data-visualization Owl-Listener Помогает агенту выбрать тип графика и настроить оси, подписи и цвета так, чтобы диаграмма читалась без легенды. CX Codex +1 2 400установок frontend-design cline Скилл задаёт агенту смелое визуальное направление и заставляет доводить код до продакшн-уровня. Пригодится, когда интерфейс не должен выглядеть как типовой вывод нейросети. CX Codex +1 7 300установок ui-designer daniel-dan-conrad Скилл для сборки фронтенда с осознанным визуальным направлением: типографика, цвет, движение и композиция вместо дефолтных решений. CX Codex +1 3 600установок react-spring-physics freshtechbro Скилл для React-анимаций на физике пружин: React Spring и Popmotion. Пригодится, когда нужны жесты, инерция и прерываемые переходы. CX Codex +1 2 400установок

Из того же набора34

ui-context-and-scope Скилл задаёт правила ориентации пользователя в сложных интерфейсах: хлебные крошки, границы секций и баннеры имперсонации. Помогает проектировать глубокую навигацию. CX Codex +1 842установок real-world-metaphors Помогает выбрать между карточкой, каруселью, drawer и аккордеоном, когда проектируешь компоненты и навигацию. CX Codex +1 841установок global-toolbar-controls Скилл задаёт правила вёрстки переключателей валюты, языка и единиц измерения. Помогает аккуратно разместить глобальные настройки в шапке или подвале, не перегружая навигацию. CX Codex +1 834установок dembrandt Прогоняет задачу по интерфейсу через шесть этапов: бренд, токены, вёрстка, компоненты, полировка и доступность. Пригодится для дизайн-ревью или сборки UI с нуля. CX Codex +1 822установок layout-paradigms-and-consistency Помогает выбрать парадигму макета (лента, канбан, таблица, мастер-деталь) и выдержать единую структуру экранов или продающего лендинга. CX Codex +1 734установок operational-expert-tool-ui Задаёт правила интерфейса для диспетчерских, складских и логистических инструментов: плотность данных вместо воздуха, статус виден сразу. CX Codex +1 689установок repeated-component-alignment Скилл для ИИ-кодинга, который держит карточки, строки списков и плитки в одной сетке, когда тексты разной длины. Пригодится при вёрстке повторяющихся компонентов. CX Codex +1 678установок tab-navigation Скилл для проектирования вкладок: подсказывает, когда они уместны, как устроена полоса вкладок и как ведёт себя клавиатура. CX Codex +1 674установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой