Command Palette

Search for a command to run...

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

scenarios

Use this skill when a dataflow compares alternatives as scenarios, or when a task makes, reads or compares one. It says what a scenario's set…

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

Установить scenarios в Claude Code и Claude Desktop

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

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

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

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

Scenarios

A scenario is a named selection of a dataflow's nodes, in "dataflow"."scenarios", used to compare alternatives: the same analysis with buildings twice as tall, say. Its boundary splits the dataflow into three parts. Its scenario-specific nodes ("nodes") are the nodes in its box: what an alternative changes, such as a widget value, a line of code or a spec. Its shared context ("context") is every node upstream of it, outside every box, that it uses. Its shared outcomes ("outcomes") are every node downstream of it, outside every box, that it feeds: what gets compared. Every scenario names its scenario set in "set", one of "dataflow"."scenarioSets": the scenarios that answer one question, compared on the same shared context and shared outcomes; scenarios of different sets never mix, and a node of a set's shared context or shared outcomes can belong to some of its scenarios only. Curio puts each scenario a plan saves in a set, and fills its shared context and shared outcomes from the edges. A node belongs to one scenario at most, so a node two alternatives share sits outside both, in their shared context. An alternative is usually a copy of another scenario's nodes that reads the same context, with a value changed; each copy names the nodes it descends from in "metadata"."copiedFrom", which is how the nodes of two scenarios pair.

To compare scenarios, connect a node of each scenario's box to an input circle of its own, on a node outside the boxes: that node is a shared outcome of their set. A {{template.label:curio.builtin/vis-vega}} node whose spec reads its inputs stacked charts them: "data": {"name": "{{inputs.stacked}}"} is every input's rows stacked, each row with "scenario" and "scenario_name" from the scenario box its input comes from, and a column of those rows is named by its chip, as "field": {{inputs.stacked_column:scenario_name}}. A chart or a map draws exactly its spec, and its scenario chips write the boxes' colors and order, from the boxes its inputs come from: "scale": {{scenarios.chip:colors}} on a color, fill or stroke on "scenario_name" (on a text mark, "scale": {{scenarios.chip:text_colors}}, the same colors in shades that read on white), and "sort": {{scenarios.chip:order}} on an axis, an offset or a facet on it, for example "color": {"field": "scenario_name", "type": "nominal", "scale": {{scenarios.chip:colors}}} and "x": {"field": "scenario_name", "type": "nominal", "sort": {{scenarios.chip:order}}}. Each input whose node is in no box comes last, in a grey of its own, and when no input comes from a box the colors chips write the names alone, so the grammar's own palette colors them. In a map's layer, or a chart's mark, "{{scenarios.chip:input.1}}" inside quotes is the color of the box input_1 comes from: "color": "{{scenarios.chip:input.1}}". A spec without the chips draws in Vega-Lite's or Autark's own colors, and the chips are for a spec, not for Python or JavaScript code. A {{template.label:curio.builtin/python-computation}} node takes the difference of two tables or layers, joining their rows on a column both have, such as osm_id or building_id.

A scenario the user dragged in from another project, through the Scenario Catalog, keeps where it came from: dataflow.read names its source, that project and that scenario by their names, or says that the project, or that scenario in it, is gone.

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

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

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

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

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

  • evals/evals.json
  • evals/truth.json

FAQ

Что делает скилл scenarios?

Use this skill when a dataflow compares alternatives as scenarios, or when a task makes, reads or compares one. It says what a scenario's set, scenario-specific nodes, shared context and shared outcomes are, how a copy pairs with the scenario it comes from, how a chart stacks what each scenario's box hands it and colors it with the scenario chips, and how a scenario dragged in from another project names where it came from.

Как установить скилл scenarios?

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

Скилл scenarios запускает скрипты?

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

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

Сравнить scenarios с