Command Palette

Search for a command to run...

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

interaction-edges

Use this skill when linking views so a selection in one shows in another, when a table or several views must show a selection, or when selections must be…

БесплатноБез исполняемых скриптов
urban-toolkitот urban-toolkit★ 37 звёзд на GitHub

Установить interaction-edges в Claude Code и Claude Desktop

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

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

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

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

Interactions

An edge of type: "Interaction" (in the Trill specification) carries selections between two visualizations, never data, and node code reads a selection through a selection tag, never through an edge. Link two visualizations directly when at least one of them is a {{template.label:curio.builtin/vis-vega}} or an {{template.label:curio.builtin/autk-grammar}} node: each of those highlights the rows the other one selects, and a {{template.label:curio.builtin/vis-vega}} node marks them in a column called "interacted", "1" for a selected row and "0" otherwise.

A {{template.label:curio.builtin/data-pool}} goes between visualizations only when a {{template.label:curio.builtin/vis-simple}} must show the selection, when selections are merged (AND or OR), when a {{template.label:curio.builtin/vis-vega}} chart colors its own selection through "interacted", or when three or more visualizations share one selection. Each visualization is then linked to the {{template.label:curio.builtin/data-pool}}, which marks the selected rows in its column "interacted" and passes them to every node it feeds. Two linked pools exchange no selection: each passes a row's mark to the rows of the other that the row's column "linked" lists by position.

A {{template.label:curio.builtin/data-pool}} starts at OVERWRITE, keeping the newest selection only. A plan or a node.create sets how the selections combine in the pool's "dataPool", shaped as a node's "metadata"."dataPool" in the Trill schema: "insideChart" combines the selects of one chart, and "betweenCharts" the latest selection of each chart linked to the pool. MERGE_AND keeps the rows every active selection picked, MERGE_OR the rows any of them picked, and OVERWRITE the newest selection's. So a pool that shows the rows selected in both charts has "betweenCharts": "MERGE_AND". A pool already on the canvas changes its modes through node.settings.write: its "dataPool" names each mode to pick, and a mode it leaves out stays.

A visualization shows a selection it receives through the column "interacted", and a chart shows its own through its selection's name. For example, this Vega-Lite specification defines a scatterplot with an interval selection that colors red the points it selects and the points another visualization selects.

{ 
  "$schema": "{{vega.schema_url}}", 
  "params": [ {"name": "clickSelect", "select": "interval"} ], 
  "mark": { "type": "point", "cursor": "pointer" }, 
  "encoding": { 
    "x": {"field": "gt_65", "type": "quantitative"},
    "y": {"field": "mean", "type": "quantitative"},
    "opacity": {
        "condition": {"param": "clickSelect", "value": 0.7},
        "value": 0.3 
    }, 
    "color": {
      "condition": [
        {"param": "clickSelect", "empty": false, "value": "red"},
        {"test": "datum.interacted === '1'", "value": "red"}
      ],
      "value": "blue" }
  }
} 

A point selection over key columns matches rows by their values, so the two visualizations may read different rows that share those columns: a Vega-Lite point select with "fields": ["unit_id"], or an Autark map layer (the one with "isPick": true) or plot with "selectFields": ["unit_id"], whose table must come from the node's input. A point selection without them matches rows by position, so both visualizations must read the same rows in the same order; an interval selection matches by column name. A {{template.label:curio.builtin/vis-vega}} chart with several inputs sends and highlights rows of its first input only.

A {{template.label:curio.builtin/vis-simple}} playing a video or audio sends an interval on the column its "time_column" widget names ("t_s" by default), seconds from the file's start to where its player stands, and a linked view marks rows whose value there lies in it. Set the widget in a plan or a node.create, or with node.settings.write's widgets; clock times need seconds from a {{template.label:curio.builtin/python-computation}} node. An {{template.label:curio.builtin/autk-grammar}} map marks such a selection, or a chart's, on its first input table, on the layer with "isPick": true.

An {{template.label:curio.builtin/autk-grammar}} node of several views (maps and plots, each with an "id") has a dot per view with an "id" beside its own. An Interaction edge on a view's dot carries that view's selection alone and lights that view alone, and the node's "links" carry what the view receives on to the views they join; an edge on the node's own dot carries every view's selection to every view. A plan names a view by its id: "fromView" at the edge's "from" node, "toView" at its "to" node, on interaction edges only. A node of one view has its own dot alone, and a view without an "id" has no dot of its own. When the plan adds the Autark node, its intent names the ids its edges use.

A {{template.label:curio.builtin/edit-features}} node feeds the {{template.label:curio.builtin/autk-grammar}} map it edits on, and an Interaction edge links the two, so fea

Полный SKILL.md на GitHub

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

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

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

Вложенные файлы

  • evals/evals.json
  • evals/files/buildings-map-and-heights.json
  • evals/truth.json

FAQ

Что делает скилл interaction-edges?

Use this skill when linking views so a selection in one shows in another, when a table or several views must show a selection, or when selections must be merged. It says when two views link directly by an Interaction edge and when a Data Pool goes between them, how a pool combines selections, how a chart shows the rows it receives as selected, and how a point or an interval selection matches rows.

Как установить скилл interaction-edges?

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

Скилл interaction-edges запускает скрипты?

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

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

Сравнить interaction-edges с