Tips and useful information when an user wants to visualize in a map as result
Ships in map-visualization. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill covers how to create map visualizations from workflow outputs using the native.createmap component and best practices for spatial data handling.
native.createmap ComponentThe native.createmap component creates a CARTO Builder map from workflow output. This is the recommended way to visualize workflow results.
Fetch the full schema with:
carto workflows components get native.createmap --connection <connection> --json
Key inputs:
| Input | Type | Description |
|---|---|---|
source | Table | The input table to visualize |
name | String | Name for the created map |
geo | Column | The geometry/spatial column to use for rendering |
{
"id": "create-map-1",
"type": "generic",
"data": {
"name": "native.createmap",
"label": "Create Map",
"inputs": [
{
"name": "source",
"type": "Table",
"value": ""
},
{
"name": "name",
"type": "String",
"value": "My Analysis Results"
},
{
"name": "geo",
"type": "Column",
"value": "geom"
}
],
"outputs": []
},
"position": { "x": 800, "y": 100 }
}
<critical_rule name="preserve-spatial-indices"> Do NOT convert H3 or Quadbin indices to geometry for map visualization.
CARTO Builder natively understands H3 and Quadbin spatial indices. When your workflow output contains these columns, leave them as-is:
h3, h3_index)quadbin, qb_index)Builder will automatically:
Only use native.h3boundary or native.quadbinboundary when:
Correct - Let Builder handle H3 visualization:
source -> h3frompoint -> groupby (count per cell) -> createmap
geo: "h3"
Unnecessary - Adding h3boundary just for visualization:
source -> h3frompoint -> groupby -> h3boundary -> createmap
geo: "h3_geo"
The second approach works but adds unnecessary computation. Builder can render H3 cells directly.
When using native.createmap, the geo input must reference a valid spatial column:
| Data Type | Column to Use |
|---|---|
| H3 | The H3 column directly (e.g., h3, index) - Builder renders cells natively |
| Quadbin | The Quadbin column directly (e.g., quadbin) - Builder renders cells natively |
| Point / Line / Polygon / MultiPolygon | The geometry column name (e.g., geom, geometry, geom_buffer) |
Check output schema before createmap: Validate the workflow and inspect available columns to ensure the geometry column exists
Name maps descriptively: The name input becomes the map title in Builder - use meaningful names
One map per workflow output: Each createmap component creates a separate map. For multiple layers, create multiple maps or use Builder to combine them
Spatial indices are preferred: For aggregated data (e.g., counts per H3 cell), spatial indices render faster than polygon geometries
| Issue | Cause | Solution |
|---|---|---|
| Map shows no data | Wrong geo column specified | Check output schema for correct geometry column name |
| Map renders slowly | Using extracted polygons instead of spatial indices | Use H3/Quadbin columns directly instead of boundary components |
| "Column not found" error | Geometry column was renamed or dropped | Trace the workflow to ensure geometry is preserved through all transformations |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/map-visualization:map-visualizationfrom map-visualization
npx claudepluginhub cartodb/workflows-assistant --plugin map-visualization