Command Palette

Search for a command to run...

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

map-edits

Use this skill when a task changes an Autark map's features as a what-if in a Map Editor node, such as removing buildings, capping heights, reshaping or…

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

Установить map-edits в Claude Code и Claude Desktop

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

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

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

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

{{template.label:curio.builtin/edit-features}}

A {{template.label:curio.builtin/edit-features}} node edits an Autark map's layers, as a what-if: it removes features, puts them back, changes their values, reshapes or moves them, draws new ones, and adds properties and layers. Its code is its only state: one call of curio_edit_features, which the node writes from its list of edits and reads back. Code of another shape still runs, but the node cannot read it, list it or edit it on the map, and Curio refuses it from an agent.

The call

return curio_edit_features(input_0, [
    {"op": "remove", "ids": [119, 136]},
    {"op": "set", "where": "height > 100", "column": "height", "value": 100},
], key="building_id", layer="table_osm_buildings")
  • First the input: input_0, or, fed by several nodes, every circle's in order, [input_0, input_1, ...], with by_input=True.
  • Then the edits, in the order they are made, each a dict.
  • Then, by name, each at most once: key, the column whose values identify a feature (osm_id or building_id on OpenStreetMap layers); layer, the layer the edits apply to; keys, the column of each other layer an edit names; new_layers; crs; by_input.
  • new_layers lists the layers the node makes, each {"name": ..., "geometry": ..., "properties": [...]}: its geometry "Point", "LineString" or "Polygon", and each property {"name": ..., "type": ..., "required": ..., "choices": ..., "default": ...}, its type "text", "number", "boolean", "choice" or "date". A new layer starts empty: its features are the add edits whose layer names it, each identified by its id.
  • Every value is written out: texts in single or double quotes, numbers, True, False, None, lists and dicts. The call is the code's only statement, from the start of its line to the end of the code, with comment lines above it and none inside it. It holds no chip, whose value the node cannot know before a run.

The edits

An edit names its features by ids, values of its layer's key column, or by where, a condition on their properties (height > 100 and levels >= 30), never both. A where reads the features as the edits before it left them, a restore's as the input has them. ids names every row that holds the id: OpenStreetMap's buildings are a row per part, each with its building's building_id and an osm_id of its own, so an edit by building_id changes every part of a building.

op fields
remove ids or where
set ids or where, column, value
restore ids or where
scale ids or where, column, value
offset ids or where, column, value
expr ids or where, column, value
add id, geometry, crs, values
geometry ids or where, geometry, crs
add_column column, value

Every edit may also hold layer, label and enabled.

  • set writes a value: a text, a number, True, False or None. scale multiplies a number by value, offset adds value to it, and expr writes what an expression of the feature's properties makes (min(height, 60)).
  • A where or an expr value names a column by its name, or by any text in backticks ("Mean Acc shadow > 2"); writes true, false, null, and, or and not in lowercase, since True reads as a column; holds one comparison in each part (height > 10 and height < 60, never 10 < height < 60); and calls only abs, round, min and max.
  • geometry and add take a GeoJSON geometry, and add an id and its values; a run skips an add whose id its layer already holds.
  • The map's tools change a building's shape one part at a time, each part named by its own id, where its building_id and its osm_id both hold: {"op": "geometry", "where": "building_id == 29623484 and osm_id == 236608503", "geometry": ...}. The building's other parts keep their shapes. The node's form sets a value on one part the same way, {"op": "set", "where": "building_id == 29623484 and osm_id == 236608503", "column": "height", "value": 60}, and on all of them by ids.
  • add_column adds a property, with value, to every feature that has none.

The rule

  • What-if changes go in {{template.label:curio.builtin/edit-features}}: a building removed, a height capped, a park drawn. An analysis filter, such as the parks over a size or the roads of one kind, stays in the node that computes it.
  • An id is a value its layer's key column holds. A run prints each id no feature has, and Solve's round fails on that line.
  • An area a geometry or add edit gives is one the map can draw: an outline that encloses some area and does not cross or touch itself, holes inside their outline that do not overlap, touching it or each other only at single points that keep the area in one piece, and parts that do not overlap. A run skips an edit that would give a feature any other area and prints why, and Solve's round fails on that line.
  • Solve makes edits in an empty {{template.label:curio.builtin/e
Полный SKILL.md на GitHub

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

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

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

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

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

FAQ

Что делает скилл map-edits?

Use this skill when a task changes an Autark map's features as a what-if in a Map Editor node, such as removing buildings, capping heights, reshaping or moving features, or drawing new ones and adding layers. It gives the node's one curio_edit_features call, each edit with its fields, the areas a map can draw, the words that make Solve write edits, and the rule that an analysis filter stays in the node that computes it.

Как установить скилл map-edits?

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

Скилл map-edits запускает скрипты?

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

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

Сравнить map-edits с