widgets
Use this skill when a node declares, places or changes a widget, such as a threshold, a year or a dataset the user sets without editing code, or when several…
от urban-toolkit★ 37 звёзд на GitHub
Установить widgets в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Widgets
A widget is a value a node's code reads that the user sets in the node's Widgets tab without editing the code: a threshold, a factor, a season, a list of years. A node declares at most {{widgets.max}} widgets in "metadata"."widgets", shaped as the Trill schema shows. Each has a "name" matching {{widgets.name_pattern}}, unique, never inputs or input_; a "type" ({{widgets.kinds}}); a "label" of up to {{widgets.label_chars}} characters; a "default"; and "options" where its type takes them: "choices" for a choice, a checkbox group or a multi-select, "display" ("dropdown" or "radio") for a choice, and "min", "max", "step" and "units" for a number or a slider, which needs "min" and "max". A date is "YYYY-MM-DD", a datetime "YYYY-MM-DDTHH:mm:ss", a location {"lat": ..., "lon": ...}, a range [low, high], and a value up to {{widgets.value_chars}} characters as JSON.
The node's code or spec places each widget where its value is used, as its reference: {{widgets.reference:threshold}} for the widget named threshold. A run replaces the reference with the widget's value ("value" once the user set one, else "default"). On its own a reference becomes a value of the code's language: a number, a quoted text, a list, true or false. Inside a quoted text it becomes the value's text. Never type a widget's value into the code in its place, and never place a reference to a widget the node does not declare.
A dataset widget's value is the id of a Data Catalog dataset, layer group or collection, empty until a file or a dataset is dropped on its node; its reference becomes that id as a quoted text, so curio_load_data({{widgets.reference:data}}) loads it. A run refuses code that reads an empty one. An input can pick the id, never code: "pickedBy" is input_0, or input_0.key for a key of its dict, and "choices" maps each text to an id.
A value several nodes read is a widget on one {{template.label:curio.builtin/python-computation}} node that returns it, wired into each reader.
A new node of a template that declares widgets starts with them: in a plan or a node.create, give one its name, its type and its value, and it keeps the template's default, choices, minimum, maximum and step, which the value must fit. A duplicate's values may set them too.
A node already on the canvas takes new widget values through node.settings.write: its "widgets" maps each widget's name to the new value, which must fit the widget's type and options as a value typed in the Widgets tab must. The node's code stays as it was. Only the user adds a widget to a node already on the canvas, in its Widgets tab; a {{template.label:curio.builtin/vis-simple}} lacking "time_column" takes it with the value.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- evals/truth.json
FAQ
Что делает скилл widgets?
Use this skill when a node declares, places or changes a widget, such as a threshold, a year or a dataset the user sets without editing code, or when several nodes share one value. It says how a node declares its widgets, how its code or spec places each by its reference, what a dataset widget holds, and how new values reach a node already on the canvas.
Как установить скилл widgets?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл widgets запускает скрипты?
Нет, скилл состоит только из инструкций (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…