vega-lite-maps
Use this skill when the user wants a map, choropleth or shapes in a Vega-Lite chart, or asks why such a map draws nothing, even if they never say geoshape or…
от urban-toolkit★ 37 звёзд на GitHub
Установить vega-lite-maps в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Maps in Vega-Lite
A node that returns a GeoDataFrame can be charted as a map directly. Do NOT
write a conversion helper: no shapely.geometry.mapping, no manual x/y centroid
columns, no flattening the GeoDataFrame into a plain DataFrame. Just
return gdf, and in the Vega-Lite spec use "mark": "geoshape".
Attribute columns are addressed by their bare pandas names, exactly as for a bar chart over the same frame.
{
"$schema": "{{vega.schema_url}}",
"mark": "geoshape",
"encoding": { "color": {"field": "pop", "type": "quantitative"} }
}
Curio fills in two things, and only when the spec does not already have them:
the shape encoding for the frame's active geometry column, and a projection
fitted to the data, on each geoshape unit and on each unit reading its input
that encodes longitude or latitude (mercator for lon/lat, {"type": "identity", "reflectY": true} for a projected CRS). Do not write these yourself unless you
want a specific projection; if you do write one, it is respected.
A map of several inputs draws an input's own dataset, such as input_1, never
{{inputs.stacked}}, whose rows carry no geometry.
A GeoDataFrame may have MORE THAN ONE geometry column, and each keeps its own pandas name. The active column is wired automatically; any other must be named explicitly, because with several present there is no single right answer:
{
"layer": [
{"mark": "geoshape"},
{"mark": "geoshape",
"encoding": {"shape": {"field": "centroid", "type": "geojson"}}}
]
}
A geoshape mark draws a Point as a small circle, so a centroid layer needs no
special mark type.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- evals/files/zip-areas-centroids.json
- evals/truth.json
FAQ
Что делает скилл vega-lite-maps?
Use this skill when the user wants a map, choropleth or shapes in a Vega-Lite chart, or asks why such a map draws nothing, even if they never say geoshape or GeoDataFrame. It says to hand the chart the GeoDataFrame as it is, with no conversion to coordinates, which mark and encodings draw polygons, points or a second geometry column, and what Curio fills in. A map drawn by an Autark node is not this skill.
Как установить скилл vega-lite-maps?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vega-lite-maps запускает скрипты?
Нет, скилл состоит только из инструкций (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…