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★ 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, ...], withby_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_idorbuilding_idon 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_layerslists 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 theaddedits whoselayernames it, each identified by itsid.- 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.
setwrites a value: a text, a number, True, False or None.scalemultiplies a number byvalue,offsetaddsvalueto it, andexprwrites what an expression of the feature's properties makes (min(height, 60)).- A
whereor anexprvalue names a column by its name, or by any text in backticks ("Mean Acc shadow> 2"); writestrue,false,null,and,orandnotin lowercase, sinceTruereads as a column; holds one comparison in each part (height > 10 and height < 60, never10 < height < 60); and calls onlyabs,round,minandmax. geometryandaddtake a GeoJSON geometry, andaddanidand itsvalues; a run skips anaddwhoseidits layer already holds.- The map's tools change a building's shape one part at a time, each part named by its own id,
whereitsbuilding_idand itsosm_idboth 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 byids. add_columnadds a property, withvalue, 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
geometryoraddedit 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…